diff options
author | Robert C. Helling <helling@atdotde.de> | 2014-11-25 21:22:02 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-01 14:19:03 -0800 |
commit | 96a94f1a19d22fa0432e10495315ce3e98b35c4f (patch) | |
tree | 120471db57a8b0bdad99b2bab32390b6adc8f3e3 /qt-ui/simplewidgets.h | |
parent | 584775cbc053d8b471f5a5d3ea232857f056e628 (diff) | |
download | subsurface-96a94f1a19d22fa0432e10495315ce3e98b35c4f.tar.gz |
A widget to add a set-point change
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/simplewidgets.h')
-rw-r--r-- | qt-ui/simplewidgets.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/qt-ui/simplewidgets.h b/qt-ui/simplewidgets.h index f9a6fdad3..c5631fd75 100644 --- a/qt-ui/simplewidgets.h +++ b/qt-ui/simplewidgets.h @@ -9,11 +9,13 @@ class QAbstractButton; #include <stdint.h> #include "ui_renumber.h" +#include "ui_setpoint.h" #include "ui_shifttimes.h" #include "ui_shiftimagetimes.h" #include "ui_divecomponentselection.h" #include "ui_listfilter.h" #include "exif.h" +#include <dive.h> class MinMaxAvgWidget : public QWidget { Q_OBJECT @@ -56,6 +58,22 @@ private: bool selectedOnly; }; +class SetpointDialog : public QDialog { + Q_OBJECT +public: + static SetpointDialog *instance(); + void setpointData(struct divecomputer *divecomputer, int time); +private +slots: + void buttonClicked(QAbstractButton *button); + +private: + explicit SetpointDialog(QWidget *parent); + Ui::SetpointDialog ui; + struct divecomputer *dc; + int time; +}; + class ShiftTimesDialog : public QDialog { Q_OBJECT public: |