Add new widget ToolButtonBox. Add setting to prevent display blanking.
[dorian] / settingswindow.h
1 #ifndef SETTINGSWINDOW_H
2 #define SETTINGSWINDOW_H
3
4 #include <QMainWindow>
5
6 class QPushButton;
7 class QFontComboBox;
8 class QFont;
9 class QSlider;
10 class QFontComboBox;
11 class ToolButtonBox;
12
13 class SettingsWindow: public QMainWindow
14 {
15     Q_OBJECT
16
17 public:
18     explicit SettingsWindow(QWidget *parent = 0);
19     enum {SchemeDefault, SchemeDay, SchemeNight, SchemeSand};
20     enum {OrientationPortrait, OrientationLandscape};
21
22 signals:
23
24 public slots:
25     void onSliderValueChanged(int value);
26     void onCurrentFontChanged(const QFont &);
27     void onSchemeButtonClicked(int id);
28     void onOrientationButtonClicked(int id);
29     void onLightsToggled(bool enable);
30
31 protected:
32 #ifdef Q_WS_MAEMO_5
33     void closeEvent(QCloseEvent *e);
34 #endif
35
36 private:
37     QSlider *zoomSlider;
38     QFontComboBox *fontButton;
39     ToolButtonBox *orientationBox;
40 };
41
42 #endif // SETTINGSWINDOW_H