#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
{
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