Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bstpreferences.hh
Go to the documentation of this file.
1  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
2 #ifndef __BST_PREFERENCES_H__
3 #define __BST_PREFERENCES_H__
4 
5 #include "bstparamview.hh"
6 
7 /* --- Gtk+ type macros --- */
8 #define BST_TYPE_PREFERENCES (bst_preferences_get_type ())
9 #define BST_PREFERENCES(object) (GTK_CHECK_CAST ((object), BST_TYPE_PREFERENCES, BstPreferences))
10 #define BST_PREFERENCES_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), BST_TYPE_PREFERENCES, BstPreferencesClass))
11 #define BST_IS_PREFERENCES(object) (GTK_CHECK_TYPE ((object), BST_TYPE_PREFERENCES))
12 #define BST_IS_PREFERENCES_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), BST_TYPE_PREFERENCES))
13 #define BST_PREFERENCES_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), BST_TYPE_PREFERENCES, BstPreferencesClass))
14 
15 
16 /* --- structures & typedefs --- */
17 typedef struct _BstPreferences BstPreferences;
18 typedef struct _BstPreferencesClass BstPreferencesClass;
20 {
21  GtkVBox parent_object;
22 
23  GtkNotebook *notebook;
24  GtkWidget *apply;
25 
26  SfiRec *rec_gconfig;
27  SfiRing *params_gconfig;
28 
29  GtkWidget *box_piano_keys;
30  GtkWidget *box_generic_keys;
31 
32  GtkWidget *box_msg_absorb_config;
33 
34  SfiRec *rec_skin;
35  SfiRing *params_skin;
36 
37  GParamSpec *bsepspec;
38  SfiRec *bserec;
39  SfiRing *bseparams;
40 };
42 {
43  GtkVBoxClass parent_class;
44 };
45 
46 
47 /* --- prototypes --- */
48 GtkType bst_preferences_get_type (void);
49 void bst_preferences_apply (BstPreferences *prefs);
50 void bst_preferences_load_rc_files (void);
51 void bst_preferences_save (BstPreferences *prefs);
52 gboolean bst_preferences_saved (void);
53 void bst_preferences_revert (BstPreferences *prefs);
54 void bst_preferences_default_revert (BstPreferences *prefs);
55 void bst_preferences_create_buttons (BstPreferences *prefs,
56  GxkDialog *dialog);
57 
58 #endif /* __BST_PREFERENCES_H__ */
Definition: bstpreferences.hh:19
Definition: bstpreferences.hh:41
Definition: sfiring.hh:21