source: src-qt4/pc-mounttray/settingsDialog.h @ 92b4ba0

9.1-release9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since 92b4ba0 was 92b4ba0, checked in by Ken Moore <ken@…>, 17 months ago

Add a new mount tray widget for changing configuration settings, and add some new icons. The new widget works great, I just need to tie it in to actually be used now.

  • Property mode set to 100644
File size: 1015 bytes
Line 
1#ifndef _SETTINGS_DIALOG_H
2#define _SETTINGS_DIALOG_H
3
4#include <QDialog>
5#include <QString>
6#include <QStringList>
7#include <QVBoxLayout>
8#include <QHBoxLayout>
9#include <QFormLayout>
10#include <QPushButton>
11#include <QGroupBox>
12#include <QCheckBox>
13#include <QSpinBox>
14#include <QLabel>
15#include <QIcon>
16
17class SettingsDialog : public QDialog{
18        Q_OBJECT
19       
20public:
21        SettingsDialog();
22        ~SettingsDialog();
23       
24        bool SettingsChanged; //if settings should be applied (I.E. changed)
25        bool useDiskWatcher; //use system disk space monitor
26          bool useDiskAutoTimer; //use devd prompting to check system
27          int diskRefreshMS; //max time between checks (milliseconds)
28         
29         
30        void showDialog();
31       
32private:
33        //Disk Watcher settings
34        QGroupBox *groupDiskWatch;
35        QCheckBox *checkDiskAutoTimer;
36        QSpinBox *spinDiskRefreshMin;
37        //save/close buttons
38        QPushButton *closeButton,  *applyButton;
39       
40private slots:
41        void slotApply();
42        void slotCloseDialog();
43       
44        void slotUpdateUI(bool checked=FALSE);
45        void slotUpdateUI(int);
46
47};
48
49#endif
Note: See TracBrowser for help on using the repository browser.