New architecture
[irwi] / src / settingsdlg.h
1 #ifndef SETTINGSDLG_H
2 #define SETTINGSDLG_H
3
4 #include <QDialog>
5 #include <QSettings>
6
7 #include "remote.h"
8
9 class QWidget;
10 class QHBoxLayout;
11 class QVBoxLayout;
12 class QPushButton;
13 class QLabel;
14 class Remote;
15
16 class SettingsDlg : public QDialog
17 {
18     Q_OBJECT
19 public:
20     SettingsDlg(QWidget *parent = 0);
21     ~SettingsDlg();
22
23 private slots:
24     void showAdvSettingsDlg();
25     void showSelectRemoteDlg();
26     void showAboutDlg();
27     void setRemote(Remote);
28     void updateRemoteInfo();
29     void rateUpClicked();
30     void rateDownClicked();
31
32 private:
33     void enableRateBtns(bool enable = true);
34     void initRemote();
35
36 private:
37     Remote m_remote;
38
39     QVBoxLayout *m_layout;
40     QHBoxLayout *m_btnLayout;
41     QHBoxLayout *m_remoteNameLayout;
42     QPushButton *m_advSettingsBtn;
43     QPushButton *m_selectRemoteBtn;
44     QPushButton *m_rateUpBtn;
45     QPushButton *m_rateDownBtn;
46     QPushButton *m_aboutBtn;
47     QLabel *m_remoteNameLabel;
48     QLabel *m_ratingLabel;
49 };
50
51 #endif
52