1998-02-27 07:54:42 +03:00
|
|
|
#ifndef __GMC_MAIN_H
|
|
|
|
#define __GMC_MAIN_H
|
|
|
|
#include "dlg.h"
|
1998-03-06 09:42:43 +03:00
|
|
|
#include "panel.h"
|
1998-02-27 07:54:42 +03:00
|
|
|
#include "widget.h"
|
1999-01-14 04:10:32 +03:00
|
|
|
#include "info.h"
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
int xtoolkit_init (int *argc, char *argv []);
|
1998-12-07 00:01:30 +03:00
|
|
|
void xtoolkit_end (void);
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-04-17 04:21:53 +04:00
|
|
|
extern Dlg_head *desktop_dlg;
|
1998-05-05 00:25:27 +04:00
|
|
|
extern int nowindows;
|
1999-03-30 10:09:56 +04:00
|
|
|
extern int corba_have_server;
|
1998-04-17 04:21:53 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
/* Required by the standard code */
|
1998-04-17 04:21:53 +04:00
|
|
|
widget_data xtoolkit_create_dialog (Dlg_head *h, int with_grid);
|
1998-02-27 07:54:42 +03:00
|
|
|
widget_data xtoolkit_get_main_dialog (Dlg_head *h);
|
1998-04-17 04:21:53 +04:00
|
|
|
void x_dlg_set_window (Dlg_head *h, GtkWidget *win);
|
1998-02-27 07:54:42 +03:00
|
|
|
widget_data x_create_panel_container (int which);
|
1998-04-17 04:21:53 +04:00
|
|
|
void x_panel_container_show (widget_data wdata);
|
|
|
|
void x_destroy_cmd (void *);
|
|
|
|
int x_create_radio (Dlg_head *h, widget_data parent, WRadio *r);
|
|
|
|
int x_create_check (Dlg_head *h, widget_data parent, WCheck *c);
|
|
|
|
int x_create_label (Dlg_head *h, widget_data parent, WLabel *l);
|
|
|
|
int x_create_input (Dlg_head *h, widget_data parent, WInput *in);
|
|
|
|
int x_create_listbox (Dlg_head *h, widget_data parent, WListbox *l);
|
|
|
|
int x_create_buttonbar (Dlg_head *h, widget_data parent, WButtonBar *bb);
|
|
|
|
void x_filter_changed (WPanel *panel);
|
|
|
|
void x_list_insert (WListbox *l, WLEntry *p, WLEntry *e);
|
|
|
|
void x_redefine_label (WButtonBar *bb, int idx);
|
|
|
|
void x_add_widget (Dlg_head *h, Widget_Item *w);
|
1998-04-17 04:59:58 +04:00
|
|
|
int translate_gdk_keysym_to_curses (GdkEventKey *event);
|
|
|
|
void gnome_init_panels ();
|
|
|
|
void bind_gtk_keys (GtkWidget *w, Dlg_head *h);
|
1999-06-23 01:02:08 +04:00
|
|
|
WPanel *new_panel_at (const char *dir);
|
|
|
|
WPanel *new_panel_with_geometry_at (const char *dir, const char *geometry);
|
1999-03-11 05:40:53 +03:00
|
|
|
void set_current_panel (WPanel *panel);
|
1998-04-17 04:59:58 +04:00
|
|
|
void layout_panel_gone (WPanel *panel);
|
1999-01-14 04:10:32 +03:00
|
|
|
void gtkrundlg_event (Dlg_head *h);
|
1999-03-11 05:40:53 +03:00
|
|
|
int gmc_open (file_entry *fe);
|
|
|
|
int gmc_open_with (char *filename);
|
|
|
|
int gmc_open_filename (char *fname, GList *args);
|
|
|
|
int gmc_edit (char *fname);
|
|
|
|
int gmc_can_view_file (char *filename);
|
|
|
|
int gmc_view (char *filename, int start_line);
|
1999-01-14 04:10:32 +03:00
|
|
|
void x_show_info (WInfo *info, struct my_statfs *s, struct stat *b);
|
|
|
|
void x_create_info (Dlg_head *h, widget_data parent, WInfo *info);
|
1999-03-30 10:09:56 +04:00
|
|
|
void gnome_check_super_user (void);
|
|
|
|
gint create_new_menu_from (char *file, GtkWidget *shell, gint pos);
|
1999-08-14 02:45:07 +04:00
|
|
|
int rename_file_with_context (char *source, char *dest);
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1999-02-26 10:17:51 +03:00
|
|
|
/*
|
|
|
|
* stuff from gaction.c
|
|
|
|
*/
|
|
|
|
int gmc_open (file_entry *fe);
|
|
|
|
int gmc_open_filename (char *fname, GList *args);
|
|
|
|
int gmc_edit_filename (char *fname);
|
|
|
|
int gmc_view (char *filename, int start_line);
|
|
|
|
|
1999-01-23 23:43:36 +03:00
|
|
|
void gmc_window_setup_from_panel (GnomeDialog *dialog, WPanel *panel);
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
struct gmc_color_pairs_s {
|
|
|
|
GdkColor *fore, *back;
|
|
|
|
};
|
|
|
|
|
1999-02-24 05:26:11 +03:00
|
|
|
void gmc_do_quit (void);
|
1999-03-30 10:09:56 +04:00
|
|
|
#if 0
|
1999-02-24 05:26:11 +03:00
|
|
|
extern GnomeClient *session_client;
|
1999-03-30 10:09:56 +04:00
|
|
|
#endif
|
1999-02-24 05:26:11 +03:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
extern struct gmc_color_pairs_s gmc_color_pairs [];
|
|
|
|
#endif
|