mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
plannerShared: add variables from plannerModel
the variables are set through set functions in DivePlannerPointsModel, but read via getters from qPrefDivePlanner. Variables: drop_stone_mode last_stop switch_at_req_stop Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
df6f01a6f6
commit
6f3d1d3747
2 changed files with 39 additions and 0 deletions
|
@ -123,3 +123,30 @@ void plannerShared::set_dobailout(bool value)
|
|||
qPrefDivePlanner::set_dobailout(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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue