aboutsummaryrefslogtreecommitdiffstats
path: root/backend-shared/plannershared.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-23 18:16:55 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-26 09:59:19 -0800
commit55d856b0fd9dd0b42d230aefae17f714dd8e9383 (patch)
treedbb2567dad5eb96e4a150a2b63610f24c762f015 /backend-shared/plannershared.cpp
parentc976385aed32421dc6df92e8d47c832d692966cd (diff)
downloadsubsurface-55d856b0fd9dd0b42d230aefae17f714dd8e9383.tar.gz
plannerShared: add notes variables
Add display_runtime display_duration display_transitions verbatim_plan display_variations Get is direct from qPrefDivePlanner and set is plannerModel Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'backend-shared/plannershared.cpp')
-rw-r--r--backend-shared/plannershared.cpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/backend-shared/plannershared.cpp b/backend-shared/plannershared.cpp
index d331f9d2b..4de4fd80a 100644
--- a/backend-shared/plannershared.cpp
+++ b/backend-shared/plannershared.cpp
@@ -256,3 +256,48 @@ void plannerShared::set_bestmixend(int value)
qPrefDivePlanner::set_bestmixend(units_to_depth(value).mm);
CylindersModel::instance()->updateBestMixes();
}
+
+bool plannerShared::display_runtime()
+{
+ return qPrefDivePlanner::display_runtime();
+}
+void plannerShared::set_display_runtime(bool value)
+{
+ DivePlannerPointsModel::instance()->setDisplayRuntime(value);
+}
+
+bool plannerShared::display_duration()
+{
+ return qPrefDivePlanner::display_duration();
+}
+void plannerShared::set_display_duration(bool value)
+{
+ DivePlannerPointsModel::instance()->setDisplayDuration(value);
+}
+
+bool plannerShared::display_transitions()
+{
+ return qPrefDivePlanner::display_transitions();
+}
+void plannerShared::set_display_transitions(bool value)
+{
+ DivePlannerPointsModel::instance()->setDisplayTransitions(value);
+}
+
+bool plannerShared::verbatim_plan()
+{
+ return qPrefDivePlanner::verbatim_plan();
+}
+void plannerShared::set_verbatim_plan(bool value)
+{
+ DivePlannerPointsModel::instance()->setSacFactor(value);
+}
+
+bool plannerShared::display_variations()
+{
+ return qPrefDivePlanner::display_variations();
+}
+void plannerShared::set_display_variations(bool value)
+{
+ DivePlannerPointsModel::instance()->setDisplayVariations(value);
+}