VPM-B: Add conservatism levels to the ui. Fix planner settings disabling.

Conservatism level can now be changed from gui, is saved in settings.
Also way of disabling the planner settings in the ui was improved
to support more deco models and be called at the widget creation.

Signed-off-by: Jan Darowski <jan.darowski@gmail.com>
This commit is contained in:
Jan Darowski 2015-08-15 15:16:51 +02:00
parent cad866013b
commit 6856e87689
5 changed files with 215 additions and 184 deletions

View file

@ -397,6 +397,12 @@ void DivePlannerPointsModel::triggerGFLow()
}
}
void DivePlannerPointsModel::setConservatism(int level)
{
prefs.conservatism_level = level;
emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS - 1));
}
void DivePlannerPointsModel::setSurfacePressure(int pressure)
{
diveplan.surface_pressure = pressure;