aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-06-10 17:40:02 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-12 09:30:46 -0700
commit708f19830e2a64c3ab9ef6bfd12a40d7c326870f (patch)
tree17f05eae8695d6432effb6cabda46fc998c2477c /qt-ui/diveplanner.h
parent1644be22ac56a716d04b52a5fec47938cdffa89a (diff)
downloadsubsurface-708f19830e2a64c3ab9ef6bfd12a40d7c326870f.tar.gz
Planner: New plannerSettingsWidget
In planner mode, this replaces the globe with the dive plan and introduces a new plannerSettingsWidget in the diveListPane. All new fields are still disfunctional. This is WIP. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r--qt-ui/diveplanner.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h
index e513eff6e..4a504ead7 100644
--- a/qt-ui/diveplanner.h
+++ b/qt-ui/diveplanner.h
@@ -143,6 +143,25 @@ private:
Ui::DivePlanner ui;
};
+#include "ui_plannerSettings.h"
+
+class PlannerSettingsWidget : public QWidget {
+ Q_OBJECT
+public:
+ explicit PlannerSettingsWidget(QWidget *parent = 0, Qt::WindowFlags f = 0);
+
+public
+slots:
+ void settingsChanged();
+ void atmPressureChanged(const QString &pressure);
+ void bottomSacChanged(const QString &bottomSac);
+ void decoSacChanged(const QString &decosac);
+ void printDecoPlan();
+
+private:
+ Ui::plannerSettingsWidget ui;
+};
+
QString dpGasToStr(const divedatapoint &p);
#endif // DIVEPLANNER_H