source: src-qt4/pc-mounttray/settingsDialog.h @ 891636a

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

Get the mountTray saving/loading it's settings properly, and integrate those settings with the new Settings dlialog. You can now turn the disk space watcher off/on and set the refresh times/flags within the settings dialog.

  • Property mode set to 100644
File size: 1.0 KB
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#include <QDebug>
17
18class SettingsDialog : public QDialog{
19        Q_OBJECT
20       
21public:
22        SettingsDialog();
23        ~SettingsDialog();
24       
25        bool SettingsChanged; //if settings should be applied (I.E. changed)
26        bool useDiskWatcher; //use system disk space monitor
27          bool useDiskAutoTimer; //use devd prompting to check system
28          int diskRefreshMS; //max time between checks (milliseconds)
29         
30         
31        void showDialog();
32       
33private:
34        //Disk Watcher settings
35        QGroupBox *groupDiskWatch;
36        QCheckBox *checkDiskAutoTimer;
37        QSpinBox *spinDiskRefreshMin;
38        //save/close buttons
39        QPushButton *closeButton,  *applyButton;
40       
41private slots:
42        void slotApply();
43        void slotCloseDialog();
44       
45        void slotUpdateUI(bool checked=FALSE);
46        void slotUpdateUI(int);
47
48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.