diff options
author | jan Iversen <jan@casacondor.com> | 2020-01-21 12:24:40 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-25 17:13:20 -0800 |
commit | e55c740d84cd11813e6d7e5bf7aa0a2f5f9a6784 (patch) | |
tree | 68e15aafdb111f679054e9a0f87a8967c8c27e6e /backend-shared/plannershared.cpp | |
parent | ff18de053f338d0f100e7994db6ef5a2cac6280a (diff) | |
download | subsurface-e55c740d84cd11813e6d7e5bf7aa0a2f5f9a6784.tar.gz |
diveplanner: call planner model directly for simple variables.
Variables without conversion, do not need to pass plannerShared
(due to the QML interface).
Simple variables do not pass plannerShared, but diveplanner
in desktop-widgets and qmlinterface in mobile-widgets call the
implementation directly.
Signed-off-by: jan Iversen <jan@casacondor.com>
Diffstat (limited to 'backend-shared/plannershared.cpp')
-rw-r--r-- | backend-shared/plannershared.cpp | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/backend-shared/plannershared.cpp b/backend-shared/plannershared.cpp index 631893d3e..113b0f7e2 100644 --- a/backend-shared/plannershared.cpp +++ b/backend-shared/plannershared.cpp @@ -31,42 +31,6 @@ void plannerShared::set_reserve_gas(int value) DivePlannerPointsModel::instance()->setReserveGas(value); } -bool plannerShared::safetystop() -{ - return qPrefDivePlanner::safetystop(); -} -void plannerShared::set_safetystop(bool value) -{ - DivePlannerPointsModel::instance()->setSafetyStop(value); -} - -int plannerShared::gflow() -{ - return qPrefTechnicalDetails::gflow(); -} -void plannerShared::set_gflow(int value) -{ - DivePlannerPointsModel::instance()->setGFLow(value); -} - -int plannerShared::gfhigh() -{ - return qPrefTechnicalDetails::gflow(); -} -void plannerShared::set_gfhigh(int value) -{ - DivePlannerPointsModel::instance()->setGFHigh(value); -} - -int plannerShared::vpmb_conservatism() -{ - return qPrefTechnicalDetails::vpmb_conservatism(); -} -void plannerShared::set_vpmb_conservatism(int value) -{ - DivePlannerPointsModel::instance()->setVpmbConservatism(value); -} - bool plannerShared::dobailout() { return qPrefDivePlanner::dobailout(); @@ -77,33 +41,6 @@ void plannerShared::set_dobailout(bool value) DivePlannerPointsModel::instance()->emitDataChanged(); } -bool plannerShared::drop_stone_mode() -{ - return qPrefDivePlanner::drop_stone_mode(); -} -void plannerShared::set_drop_stone_mode(bool value) -{ - DivePlannerPointsModel::instance()->setDropStoneMode(value); -} - -bool plannerShared::last_stop() -{ - return qPrefDivePlanner::last_stop(); -} -void plannerShared::set_last_stop(bool value) -{ - DivePlannerPointsModel::instance()->setLastStop6m(value); -} - -bool plannerShared::switch_at_req_stop() -{ - return qPrefDivePlanner::switch_at_req_stop(); -} -void plannerShared::set_switch_at_req_stop(bool value) -{ - DivePlannerPointsModel::instance()->setSwitchAtReqStop(value); -} - bool plannerShared::doo2breaks() { return qPrefDivePlanner::doo2breaks(); @@ -144,16 +81,6 @@ void plannerShared::set_decosac(double value) DivePlannerPointsModel::instance()->setDecoSac(value); } -int plannerShared::problemsolvingtime() -{ - return qPrefDivePlanner::problemsolvingtime(); -} -void plannerShared::set_problemsolvingtime(int value) -{ - // NO conversion, this is done in the planner model. - DivePlannerPointsModel::instance()->setProblemSolvingTime(value); -} - double plannerShared::sacfactor() { return qPrefDivePlanner::sacfactor() / 100.0; |