Error fixes
[irwi] / src / settingsdlg.h
1 #ifndef SETTINGSDLG_H
2 #define SETTINGSDLG_H
3
4 #include <QDialog>
5 #include <QSettings>
6
7 class QWidget;
8 class QHBoxLayout;
9 class QVBoxLayout;
10 class QPushButton;
11 class QLabel;
12 class Remote;
13
14 class SettingsDlg : public QDialog
15 {
16     Q_OBJECT
17 public:
18     SettingsDlg(QWidget *parent = 0);
19     ~SettingsDlg();
20
21 private slots:
22     void showAdvSettingsDlg();
23     void showSelectRemoteDlg();
24     void showAboutDlg();
25     void changeRemote();
26     void updateRemoteInfo();
27     void rateUpClicked();
28     void rateDownClicked();
29
30 private:
31     void enableRateBtns(bool enable = true);
32
33 private:
34     QSettings settings;
35
36     QVBoxLayout *layout;
37     QHBoxLayout *btnLayout;
38     QHBoxLayout *remoteNameLayout;
39     QPushButton *advSettingsBtn;
40     QPushButton *selectRemoteBtn;
41     QPushButton *rateUpBtn;
42     QPushButton *rateDownBtn;
43     QPushButton *aboutBtn;
44     QLabel *remoteNameLabel;
45     QLabel *ratingLabel;
46     Remote *remote;
47 };
48
49 #endif
50