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