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