1 /*
2 ** 1998-05-31 -	Header for the GUI configuration main module.
3 */
4 
5 #if !defined CONFIGURE_H
6 #define	CONFIGURE_H
7 
8 /* These are flags useful in calls to cfg_set_flags(). */
9 enum {
10 	CFLG_RESCAN_LEFT	= (1 << 0),
11 	CFLG_RESCAN_RIGHT	= (1 << 1),
12 	CFLG_RESCAN_BOTH	= (CFLG_RESCAN_LEFT | CFLG_RESCAN_RIGHT),
13 	CFLG_REDISP_LEFT	= (1 << 2),
14 	CFLG_REDISP_RIGHT	= (1 << 3),
15 	CFLG_FLUSH_ICONS	= (1 << 4),
16 	CFLG_REBUILD_TOP	= (1 << 5),
17 	CFLG_REBUILD_MIDDLE	= (1 << 6),
18 	CFLG_REBUILD_BOTTOM	= (1 << 7),
19 	CFLG_RESET_MOUNT	= (1 << 8),
20 	CFLG_RESET_KEYBOARD	= (1 << 9),
21 };
22 
23 /* These are flags returned by cfg_load_config(). */
24 enum {
25 	CLDF_NONE_FOUND		= (1 << 0)		/* There was no config available. */
26 };
27 
28 gint	cfg_configure(MainInfo *min);
29 
30 void	cfg_goto_page(const char *label);
31 
32 /* Config modules which have internal hierarchy use these from their init() function.
33 ** Simpler modules don't, they just return their single page and set the label, as
34 ** with the old tabs-based layout.
35 */
36 void	cfg_tree_level_begin(const gchar *label);
37 void	cfg_tree_level_append(const gchar *label, GtkWidget *page);
38 void	cfg_tree_level_replace(GtkWidget *old, GtkWidget *new);
39 void	cfg_tree_level_end(void);
40 
41 void	cfg_save_all(MainInfo *min);
42 
43 guint32	cfg_load_config(MainInfo *min);
44 
45 void	cfg_set_flags(guint32 flags);
46 
47 void	cfg_modified_set(MainInfo *min);
48 void	cfg_modified_clear(MainInfo *min);
49 
50 #endif		/* CONFIGURE_H */
51