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