summaryrefslogtreecommitdiff
path: root/noncore/settings/mediummount/mediumglobal.h
blob: 7b3cea0ddc6610fa890e668914955492871c8ff2 (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


#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();
  signals:
    // the global status changed
    void globalStateChanged( int );
    void enableStateChanged( int );
  private slots:
    void slotGlobalChanged();
    void slotEnableChecking();
    void slotAllChanged();

  private:
    void initGUI();
    void readConfig();
    void writeConfig();
    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