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