aboutsummaryrefslogtreecommitdiffstats
path: root/backend-shared/plannershared.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2020-01-20 20:10:35 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-24 20:20:42 -0800
commitb0e46c208dd4fb13d5c3e6010c56cbc50742b4ec (patch)
treec60317a91592a80949816e84fc5660d39a61c807 /backend-shared/plannershared.cpp
parente22943fa21027917cd8d2de98cd13ae7d12d751a (diff)
downloadsubsurface-b0e46c208dd4fb13d5c3e6010c56cbc50742b4ec.tar.gz
mobile: move dive planner notes access to pure interface
Make notes rates available to QML through the Backend interface. Remove the corresponding variables from plannerShared. Getters are from prefs. while setters are linked to diveplan model. Remark: signals from qPrefDivePlanner is used, because the diveplanner model sets qPrefDivePlanner but do not issue special signals. 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, 0 insertions, 45 deletions
diff --git a/backend-shared/plannershared.cpp b/backend-shared/plannershared.cpp
index bf92f21a2..622953dfd 100644
--- a/backend-shared/plannershared.cpp
+++ b/backend-shared/plannershared.cpp
@@ -214,51 +214,6 @@ void plannerShared::set_bestmixend(int value)
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()->setVerbatim(value);
-}
-
-bool plannerShared::display_variations()
-{
- return qPrefDivePlanner::display_variations();
-}
-void plannerShared::set_display_variations(bool value)
-{
- DivePlannerPointsModel::instance()->setDisplayVariations(value);
-}
-
// Handle when user changes length measurement type
void plannerShared::unit_lengthChangedSlot(int value)
{