Diffstat (limited to 'noncore/settings/mediummount/mediumglobal.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/mediummount/mediumglobal.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/noncore/settings/mediummount/mediumglobal.h b/noncore/settings/mediummount/mediumglobal.h new file mode 100644 index 0000000..7b3cea0 --- a/dev/null +++ b/noncore/settings/mediummount/mediumglobal.h | |||
@@ -0,0 +1,59 @@ | |||
1 | |||
2 | |||
3 | #ifndef MediumGlobalWidget_H | ||
4 | #define MediumGlobalWidget_H | ||
5 | |||
6 | #include <qwidget.h> | ||
7 | |||
8 | class Config; | ||
9 | class QCheckBox; | ||
10 | class QGroupBox; | ||
11 | class QFrame; | ||
12 | class QLineEdit; | ||
13 | class QVBoxLayout; | ||
14 | class QGridLayout; | ||
15 | class QLabel; | ||
16 | |||
17 | namespace MediumMountSetting { | ||
18 | enum States { GLOBAL_ENABLED = 0, GLOBAL_DISABLED }; | ||
19 | enum Checks { ENABLE_CHECKS = 0, DISABLE_CHECKS }; | ||
20 | |||
21 | class MediumGlobalWidget : public QWidget { | ||
22 | Q_OBJECT | ||
23 | public: | ||
24 | MediumGlobalWidget(QWidget *parent = 0, const char *name =0 ); | ||
25 | ~MediumGlobalWidget(); | ||
26 | signals: | ||
27 | // the global status changed | ||
28 | void globalStateChanged( int ); | ||
29 | void enableStateChanged( int ); | ||
30 | private slots: | ||
31 | void slotGlobalChanged(); | ||
32 | void slotEnableChecking(); | ||
33 | void slotAllChanged(); | ||
34 | |||
35 | private: | ||
36 | void initGUI(); | ||
37 | void readConfig(); | ||
38 | void writeConfig(); | ||
39 | Config *m_config; | ||
40 | QCheckBox *m_check; | ||
41 | QCheckBox *m_useglobal; | ||
42 | |||
43 | QGroupBox *m_global; | ||
44 | |||
45 | QCheckBox *m_all; | ||
46 | QCheckBox *m_audio; | ||
47 | QCheckBox *m_video; | ||
48 | QCheckBox *m_text; | ||
49 | QCheckBox *m_image; | ||
50 | |||
51 | QFrame *m_frame; | ||
52 | QGridLayout *m_frameLay; | ||
53 | QVBoxLayout *m_layout; | ||
54 | QVBoxLayout *m_box; | ||
55 | QLabel *m_label; | ||
56 | }; | ||
57 | }; | ||
58 | |||
59 | #endif | ||