summaryrefslogtreecommitdiff
path: root/noncore/settings/mediummount/mediumglobal.h
Side-by-side diff
Diffstat (limited to 'noncore/settings/mediummount/mediumglobal.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/mediummount/mediumglobal.h59
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 @@
+
+
+#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