mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
c976385aed
commit
55d856b0fd
2 changed files with 73 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue