BEAST/BSE - Better Audio System and Sound Engine  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 G_BEGIN_DECLS
8 
9 /* --- Gtk+ type macros --- */
10 #define BST_TYPE_PREFERENCES (bst_preferences_get_type ())
11 #define BST_PREFERENCES(object) (GTK_CHECK_CAST ((object), BST_TYPE_PREFERENCES, BstPreferences))
12 #define BST_PREFERENCES_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), BST_TYPE_PREFERENCES, BstPreferencesClass))
13 #define BST_IS_PREFERENCES(object) (GTK_CHECK_TYPE ((object), BST_TYPE_PREFERENCES))
14 #define BST_IS_PREFERENCES_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), BST_TYPE_PREFERENCES))
15 #define BST_PREFERENCES_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), BST_TYPE_PREFERENCES, BstPreferencesClass))
16 
17 
18 /* --- structures & typedefs --- */
19 typedef struct _BstPreferences BstPreferences;
20 typedef struct _BstPreferencesClass BstPreferencesClass;
22 {
23  GtkVBox parent_object;
24 
25  GtkNotebook *notebook;
26  GtkWidget *apply;
27 
28  SfiRec *rec_gconfig;
29  SfiRing *params_gconfig;
30 
31  GtkWidget *box_piano_keys;
32  GtkWidget *box_generic_keys;
33 
34  GtkWidget *box_msg_absorb_config;
35 
36  SfiRec *rec_skin;
37  SfiRing *params_skin;
38 
39  GParamSpec *bsepspec;
40  SfiRec *bserec;
41  SfiRing *bseparams;
42 };
44 {
45  GtkVBoxClass parent_class;
46 };
47 
48 
49 /* --- prototypes --- */
50 GtkType bst_preferences_get_type (void);
51 void bst_preferences_apply (BstPreferences *prefs);
52 void bst_preferences_load_rc_files (void);
53 void bst_preferences_save (BstPreferences *prefs);
54 gboolean bst_preferences_saved (void);
55 void bst_preferences_revert (BstPreferences *prefs);
56 void bst_preferences_default_revert (BstPreferences *prefs);
57 void bst_preferences_create_buttons (BstPreferences *prefs,
58  GxkDialog *dialog);
59 
60 G_END_DECLS
61 
62 #endif /* __BST_PREFERENCES_H__ */
Definition: bstpreferences.hh:21
Definition: bstpreferences.hh:43
Definition: sfiring.hh:23