mainwindow: update environment variable http_proxy to qt_http_proxy
[apps/thermostat-demo.git] / settingscreen.h
1 #ifndef SETTINGSCREEN_H
2 #define SETTINGSCREEN_H
4 #include <qglobal.h>
5 #include <QtGui>
7 #if QT_VERSION >= 0x050000
9 #include <QComboBox>
10 #include <QLabel>
11 #include <QPushButton>
12 #include <QVBoxLayout>
13 #include <QGroupBox>
14 #include <QHBoxLayout>
15 #include <QFormLayout>
17 #endif
19 class GlobalSettings;
20 class QKeyboardLineEdit;
22 class SettingScreen : public QWidget
23 {
24     Q_OBJECT
25 public:
26     explicit SettingScreen(QWidget *parent = 0);
28     void setLicenseString(QString licenseString);
29     
30 signals:
31     void valueChanged();
32     void cityChanged();
33     
34 public slots:
35     void setTempFormatF();
36     void setTempFormatC();
38     void setTimeFormat12h();
39     void setTimeFormat24h();
41     void commitChanges();
42     void fillSettingValues();
44 protected:
45     void showEvent(QShowEvent *);
47 private:
48     QComboBox *cityBox;
49     QLabel *licenseStringLabel;
51     QPushButton *FButton;
52     QPushButton *CButton;
54     QPushButton *Button12h;
55     QPushButton *Button24h;
57     QKeyboardLineEdit* m_proxyHostLineEdit;
58     QKeyboardLineEdit* m_proxyPortLineEdit;
59     QKeyboardLineEdit* m_remoteListenPortLineEdit;
61     GlobalSettings* m_globalSettings;
63     QWidget* buildNetworkSettingsWidget();
64     QWidget* buildGeneralSettingsWidget();
65     QWidget* buildFormatSettingsWidget();
66     
67 };
69 #endif // SETTINGSCREEN_H