Update debian/control to point to garage.
[weightgraph] / weightgraph / editwindow.h
1 #ifndef EDITWINDOW_H
2 #define EDITWINDOW_H
3
4 #include <QMainWindow>
5 #include <QPushButton>
6 #include <QDateEdit>
7 #ifdef Q_WS_MAEMO_5
8 #include <QMaemo5ValueButton>
9 #endif
10 #include <QGridLayout>
11 #include <QDialog>
12 #include "weightview.h"
13 #include "weightdata.h"
14
15 class EditWindow : public QMainWindow
16 {
17   Q_OBJECT
18 public:
19   explicit EditWindow(QWidget *parent = 0);
20 public slots:
21   void updateButtons();
22   void addWeight();
23   void removeSelected();
24   void editSelected();
25 private:
26   WeightView weightView;
27   QPushButton addButton, removeButton, editButton;
28 };
29
30 class AddWeightDialog : public QDialog
31 {
32   Q_OBJECT
33 public:
34   AddWeightDialog(QWidget *parent=0);
35   WeightDataModel::DateWeight getDateWeight();
36
37 private:
38 #ifdef Q_WS_MAEMO_5
39   QMaemo5ValueButton *date;
40 #else
41   QDateEdit *date;
42 #endif
43   WeightSpinBox *weight;
44 };
45
46
47 #endif // EDITWINDOW_H