De-fuzzyed some msgs...
[midnight-commander.git] / gnome / gmain.h
blob54a1014547d23c9a4f5ce287332743b9474fc0bc
1 #ifndef __GMC_MAIN_H
2 #define __GMC_MAIN_H
3 #include "dlg.h"
4 #include "panel.h"
5 #include "widget.h"
6 #include "info.h"
8 int xtoolkit_init (int *argc, char *argv []);
9 void xtoolkit_end (void);
11 extern Dlg_head *desktop_dlg;
12 extern int nowindows, nodesktop, twopanel;
13 extern int corba_have_server;
14 extern int use_magic;
16 /* Required by the standard code */
17 widget_data xtoolkit_create_dialog (Dlg_head *h, int with_grid);
18 widget_data xtoolkit_get_main_dialog (Dlg_head *h);
19 void x_dlg_set_window (Dlg_head *h, GtkWidget *win);
20 widget_data x_create_panel_container (int which);
21 void x_panel_container_show (widget_data wdata);
22 void x_destroy_cmd (void *);
23 int x_create_radio (Dlg_head *h, widget_data parent, WRadio *r);
24 int x_create_check (Dlg_head *h, widget_data parent, WCheck *c);
25 int x_create_label (Dlg_head *h, widget_data parent, WLabel *l);
26 int x_create_input (Dlg_head *h, widget_data parent, WInput *in);
27 int x_create_listbox (Dlg_head *h, widget_data parent, WListbox *l);
28 int x_create_buttonbar (Dlg_head *h, widget_data parent, WButtonBar *bb);
29 void x_filter_changed (WPanel *panel);
30 void x_list_insert (WListbox *l, WLEntry *p, WLEntry *e);
31 void x_redefine_label (WButtonBar *bb, int idx);
32 void x_add_widget (Dlg_head *h, Widget_Item *w);
33 int translate_gdk_keysym_to_curses (GdkEventKey *event);
34 void gnome_init_panels ();
35 void bind_gtk_keys (GtkWidget *w, Dlg_head *h);
36 WPanel *new_panel_at (const char *dir);
37 WPanel *new_panel_with_geometry_at (const char *dir, const char *geometry);
38 void set_current_panel (WPanel *panel);
39 void layout_panel_gone (WPanel *panel);
40 void gtkrundlg_event (Dlg_head *h);
41 int gmc_open (file_entry *fe);
42 int gmc_open_with (char *filename);
43 int gmc_open_filename (char *fname, GList *args);
44 int gmc_edit (char *fname);
45 int gmc_can_view_file (char *filename);
46 int gmc_view (char *filename, int start_line);
47 void x_show_info (WInfo *info, struct my_statfs *s, struct stat *b);
48 void x_create_info (Dlg_head *h, widget_data parent, WInfo *info);
49 void gnome_check_super_user (void);
50 gint create_new_menu_from (char *file, GtkWidget *shell, gint pos);
51 int rename_file_with_context (char *source, char *dest);
54 * stuff from gaction.c
56 int gmc_open (file_entry *fe);
57 int gmc_open_filename (char *fname, GList *args);
58 int gmc_edit_filename (char *fname);
59 int gmc_view (char *filename, int start_line);
61 void gmc_window_setup_from_panel (GnomeDialog *dialog, WPanel *panel);
63 struct gmc_color_pairs_s {
64 GdkColor *fore, *back;
67 void gmc_do_quit (void);
68 #if 0
69 extern GnomeClient *session_client;
70 #endif
72 extern struct gmc_color_pairs_s gmc_color_pairs [];
73 #endif