blob: ea1f0df4e16423e972de34bc72a64b01ec688da9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
#ifndef MediumGlobalWidget_H
#define MediumGlobalWidget_H
#include <qwidget.h>
class Config;
class QCheckBox;
class QGroupBox;
class QFrame;
class QLineEdit;
class QVBoxLayout;
class QGridLayout;
class QLabel;
namespace MediumMountSetting {
enum States { GLOBAL_ENABLED = 0, GLOBAL_DISABLED };
enum Checks { ENABLE_CHECKS = 0, DISABLE_CHECKS };
class MediumGlobalWidget : public QWidget {
Q_OBJECT
public:
MediumGlobalWidget(QWidget *parent = 0, const char *name =0 );
~MediumGlobalWidget();
void writeConfig();
signals:
// the global status changed
void globalStateChanged( int );
void enableStateChanged( int );
private slots:
void slotGlobalChanged();
void slotEnableChecking();
void slotAllChanged();
private:
void initGUI();
void readConfig();
Config *m_config;
QCheckBox *m_check;
QCheckBox *m_useglobal;
QGroupBox *m_global;
QCheckBox *m_all;
QCheckBox *m_audio;
QCheckBox *m_video;
QCheckBox *m_text;
QCheckBox *m_image;
QFrame *m_frame;
QGridLayout *m_frameLay;
QVBoxLayout *m_layout;
QVBoxLayout *m_box;
QLabel *m_label;
};
};
#endif
|