Scaled icon's master image down.
[weightgraph] / weightgraph / settingswindow.h
1 #ifndef SETTINGSWINDOW_H
2 #define SETTINGSWINDOW_H
3
4 #include <QMainWindow>
5 #include <QTabWidget>
6 #include <QPushButton>
7 #include <QList>
8 #ifdef Q_WS_MAEMO_5
9 # include <QtMaemo5>
10 #else
11 # include <QComboBox>
12 #endif
13 #include "weightspinbox.h"
14
15 class GraphSettingsWidget;
16
17 class SettingsWindow : public QMainWindow
18 {
19   Q_OBJECT
20 public:
21   explicit SettingsWindow(QWidget *parent = 0);
22 protected:
23   void closeEvent(QCloseEvent *);
24 signals:
25
26 public slots:
27 private:
28 #ifdef Q_WS_MAEMO_5
29   QMaemo5ValueButton *weightUnit;
30 #else
31   QComboBox *weightUnit;
32 #endif
33   WeightSpinBox *goalMin;
34   WeightSpinBox *goalMax;
35   QPushButton *grabZoomKeys;
36   QList<GraphSettingsWidget*> *graphSettingsList;
37 };
38
39 class GraphSettingsWidget : public QWidget {
40   Q_OBJECT
41 public:
42   GraphSettingsWidget(QString graphId, QWidget *parent);
43 private slots:
44   void weightIntervalModeChanged(QString mode);
45 public:
46   QString graphId;
47   QPushButton *goalWeightEnabled;
48 #ifdef Q_WS_MAEMO_5
49   QMaemo5ValueButton *weightIntervalMode;
50   QMaemo5ValueButton *defaultTimeInterval;
51 #else
52   QComboBox *weightIntervalMode;
53   QComboBox *defaultTimeInterval;
54 #endif
55
56   WeightSpinBox *weightIntervalMin;
57   WeightSpinBox *weightIntervalMax;
58 };
59
60 #endif // SETTINGSWINDOW_H