Fix forward navigation control on Linux.
[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 {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     void closeEvent(QCloseEvent *e);
39
40 private:
41     QSlider *zoomSlider;
42     QLabel *zoomLabel;
43     QFontComboBox *fontButton;
44 };
45
46 #endif // SETTINGSWINDOW_H