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: bottomsac decosac problemsolvingtime sacfactor Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
53958a50c6
commit
d8780fdd89
2 changed files with 64 additions and 0 deletions
|
@ -170,3 +170,43 @@ void plannerShared::set_min_switch_duration(int value)
|
|||
// NO conversion, this is done in the planner model.
|
||||
DivePlannerPointsModel::instance()->setMinSwitchDuration(value);
|
||||
}
|
||||
|
||||
double plannerShared::bottomsac()
|
||||
{
|
||||
return qPrefDivePlanner::bottomsac() / 1000.0;
|
||||
}
|
||||
void plannerShared::set_bottomsac(double value)
|
||||
{
|
||||
// NO conversion, this is done in the planner model.
|
||||
DivePlannerPointsModel::instance()->setBottomSac(value);
|
||||
}
|
||||
|
||||
double plannerShared::decosac()
|
||||
{
|
||||
return qPrefDivePlanner::decosac() / 1000.0;
|
||||
}
|
||||
void plannerShared::set_decosac(double value)
|
||||
{
|
||||
// NO conversion, this is done in the planner model.
|
||||
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;
|
||||
}
|
||||
void plannerShared::set_sacfactor(double value)
|
||||
{
|
||||
// NO conversion, this is done in the planner model.
|
||||
DivePlannerPointsModel::instance()->setSacFactor(value);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue