Add settings for navigating with volume keys.
[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     void onGrabVolumeToggled(bool enable);
31
32 protected:
33 #ifdef Q_WS_MAEMO_5
34     void closeEvent(QCloseEvent *e);
35 #endif
36
37 private:
38     QSlider *zoomSlider;
39     QFontComboBox *fontButton;
40     ToolButtonBox *orientationBox;
41 };
42
43 #endif // SETTINGSWINDOW_H