Set zoom level in steps. Add icons to some buttons. Adjust dialog box layout accordin...
[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 QLabel;
12 class ToolButtonBox;
13
14 class SettingsWindow: public QMainWindow
15 {
16     Q_OBJECT
17
18 public:
19     explicit SettingsWindow(QWidget *parent = 0);
20     enum {SchemeDefault, SchemeDay, SchemeNight, SchemeSand};
21     enum {OrientationPortrait, OrientationLandscape};
22
23 signals:
24
25 public slots:
26     void onSliderValueChanged(int value);
27     void onCurrentFontChanged(const QFont &);
28     void onSchemeButtonClicked(int id);
29     void onOrientationButtonClicked(int id);
30     void onLightsToggled(bool enable);
31     void onGrabVolumeToggled(bool enable);
32
33 protected:
34 #ifdef Q_WS_MAEMO_5
35     void closeEvent(QCloseEvent *e);
36 #endif
37
38 private:
39     QSlider *zoomSlider;
40     QLabel *zoomLabel;
41     QFontComboBox *fontButton;
42     ToolButtonBox *orientationBox;
43 };
44
45 #endif // SETTINGSWINDOW_H