Revert "settingscreen: Added a button to the bottom of the network tab to invoke...
[apps/thermostat-demo.git] / settingscreen.h
1 #ifndef SETTINGSCREEN_H
2 #define SETTINGSCREEN_H
4 #include <QtGui>
6 class GlobalSettings;
7 class QKeyboardLineEdit;
9 class SettingScreen : public QWidget
10 {
11     Q_OBJECT
12 public:
13     explicit SettingScreen(QWidget *parent = 0);
15     void setLicenseString(QString licenseString);
16     
17 signals:
18     void valueChanged();
19     void cityChanged();
20     
21 public slots:
22     void setTempFormatF();
23     void setTempFormatC();
25     void setTimeFormat12h();
26     void setTimeFormat24h();
28     void commitChanges();
29     void fillSettingValues();
31 protected:
32     void showEvent(QShowEvent *);
34 private:
35     QComboBox *cityBox;
36     QLabel *licenseStringLabel;
38     QPushButton *FButton;
39     QPushButton *CButton;
41     QPushButton *Button12h;
42     QPushButton *Button24h;
44     QKeyboardLineEdit* m_proxyHostLineEdit;
45     QKeyboardLineEdit* m_proxyPortLineEdit;
46     QKeyboardLineEdit* m_remoteListenPortLineEdit;
48     GlobalSettings* m_globalSettings;
50     QWidget* buildNetworkSettingsWidget();
51     QWidget* buildGeneralSettingsWidget();
52     QWidget* buildFormatSettingsWidget();
53     
54 };
56 #endif // SETTINGSCREEN_H