New architecture
[irwi] / src / settingsdlg.h
index 574cb78..25fbab9 100644 (file)
@@ -2,10 +2,13 @@
 #define SETTINGSDLG_H
 
 #include <QDialog>
-#include <QString>
 
+class QWidget;
 class QHBoxLayout;
-class QListWidget;
+class QVBoxLayout;
+class QPushButton;
+class QLabel;
+class Remote;
 
 class SettingsDlg : public QDialog
 {
@@ -14,14 +17,30 @@ public:
     SettingsDlg(QWidget *parent = 0);
     ~SettingsDlg();
 
-    QString& getRemoteName();
+private slots:
+    void showAdvSettingsDlg();
+    void showSelectRemoteDlg();
+    void showAboutDlg();
+    void changeRemote(const QString &name);
+    void updateRemoteInfo();
+    void rateUpClicked();
+    void rateDownClicked();
 
 private:
-    QHBoxLayout *layout;
-    QString remoteName;
-    QListWidget *alphabetList;
-    QListWidget *mfgList;
-    QListWidget *modelList;
+    void enableRateBtns(bool enable = true);
+
+private:
+    QVBoxLayout *layout;
+    QHBoxLayout *btnLayout;
+    QHBoxLayout *remoteNameLayout;
+    QPushButton *advSettingsBtn;
+    QPushButton *selectRemoteBtn;
+    QPushButton *rateUpBtn;
+    QPushButton *rateDownBtn;
+    QPushButton *aboutBtn;
+    QLabel *remoteNameLabel;
+    QLabel *ratingLabel;
+    Remote *remote;
 };
 
 #endif