diff options
author | Robert C. Helling <helling@atdotde.de> | 2014-11-04 12:15:27 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-04 07:21:34 -0800 |
commit | 20a9db779d3a7ba1591e8d336c6b99b80aef71de (patch) | |
tree | 9fa678ed3da32dc3b0e6006c11c78eb4a272adcf /qt-ui/diveplanner.h | |
parent | 06ddfc01222879ee0463affe796dba05de33b368 (diff) | |
download | subsurface-20a9db779d3a7ba1591e8d336c6b99b80aef71de.tar.gz |
Offer to save to a copy in replan mode
When replannig a dive, offer another button that creates a new
dive rather than overwriting the old. This should help in creating
several versions of a planned dive (longer/shorter, deeper/shallower
etc). Note that this makes dives that start at the same time not
influcence each other's deco.
Also, only the first of a row of simultaneous dives contributes to
the tissue loadings of later dives.
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.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index da2f6526b..c613ae210 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -3,6 +3,7 @@ #include <QGraphicsPathItem> #include <QAbstractTableModel> +#include <QAbstractButton> #include <QDateTime> #include "dive.h" @@ -80,7 +81,8 @@ slots: void setDisplayRuntime(bool value); void setDisplayDuration(bool value); void setDisplayTransitions(bool value); - void createPlan(); + void savePlan(); + void saveDuplicatePlan(); void remove(const QModelIndex &index); void cancelPlan(); void createTemporaryPlan(); @@ -97,6 +99,7 @@ signals: private: explicit DivePlannerPointsModel(QObject *parent = 0); bool addGas(struct gasmix mix); + void createPlan(bool replanCopy); struct diveplan diveplan; Mode mode; bool recalc; @@ -136,6 +139,7 @@ class DivePlannerWidget : public QWidget { Q_OBJECT public: explicit DivePlannerWidget(QWidget *parent = 0, Qt::WindowFlags f = 0); + void setReplanButton(bool replan); public slots: void setupStartTime(QDateTime startTime); @@ -146,6 +150,7 @@ slots: private: Ui::DivePlanner ui; + QAbstractButton *replanButton; }; #include "ui_plannerSettings.h" |