mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
VPM-B: add deco choice to the ui.
Removed recreational mode from ui and pref and replaced it with new deco_mode enum. Added radio button ui selection. Set default deco_mode to Buehlmann algorithm. Signed-off-by: Jan Darowski <jan.darowski@gmail.com>
This commit is contained in:
parent
2435d79c0e
commit
500fbe4994
8 changed files with 53 additions and 15 deletions
|
@ -449,10 +449,10 @@ void DivePlannerPointsModel::setDisplayTransitions(bool value)
|
|||
emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS - 1));
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::setRecreationalMode(bool value)
|
||||
void DivePlannerPointsModel::setDecoMode(int mode)
|
||||
{
|
||||
prefs.recreational_mode = value;
|
||||
emit recreationChanged(value);
|
||||
prefs.deco_mode = deco_mode(mode);
|
||||
emit recreationChanged(mode == int(RECREATIONAL));
|
||||
emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS -1));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue