Improvements to structure and behavior of AdvSettingsDlg.
[irwi] / src / advsettingsdlg.h
1 #ifndef _ADVSETTINGSDLG_H_
2 #define _ADVSETTINGSDLG_H_
3
4 #include <QDialog>
5 #include <QObject>
6
7 class QSettings;
8 class QPushButton;
9 class QVBoxLayout;
10 class QHBoxLayout;
11 class SettingsTable;
12
13 class AdvSettingsDlg : public QDialog
14 {
15     Q_OBJECT
16
17 public:
18     AdvSettingsDlg(QDialog *parent = 0);
19     ~AdvSettingsDlg();
20
21 private:
22     void refreshList();
23
24 private slots:
25     void resetToDefaults();
26     void save();
27
28 private:
29     QHBoxLayout *layout;
30     QVBoxLayout *btnLayout;
31     QSettings *settings;
32     QPushButton *resetBtn;
33     QPushButton *saveBtn;
34     SettingsTable *table;
35 };
36
37 #endif // _ADVSETTINGSDLG_H_
38