diff options
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/diveplanner.cpp | 15 | ||||
-rw-r--r-- | desktop-widgets/plannerSettings.ui | 8 |
2 files changed, 19 insertions, 4 deletions
diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp index 2f3fd49c5..38d41d59a 100644 --- a/desktop-widgets/diveplanner.cpp +++ b/desktop-widgets/diveplanner.cpp @@ -250,13 +250,18 @@ void PlannerSettingsWidget::decoSacChanged(const double decosac) void PlannerSettingsWidget::disableDecoElements(int mode) { if (mode == RECREATIONAL) { + ui.label_gflow->setDisabled(false); + ui.label_gfhigh->setDisabled(false); ui.gflow->setDisabled(false); ui.gfhigh->setDisabled(false); ui.lastStop->setDisabled(true); ui.backgasBreaks->setDisabled(true); ui.bottompo2->setDisabled(false); ui.decopo2->setDisabled(true); + ui.safetystop->setDisabled(false); + ui.label_reserve_gas->setDisabled(false); ui.reserve_gas->setDisabled(false); + ui.label_vpmb_conservatism->setDisabled(true); ui.vpmb_conservatism->setDisabled(true); ui.switch_at_req_stop->setDisabled(true); ui.min_switch_duration->setDisabled(true); @@ -270,13 +275,18 @@ void PlannerSettingsWidget::disableDecoElements(int mode) ui.problemsolvingtime->blockSignals(false); } else if (mode == VPMB) { + ui.label_gflow->setDisabled(true); + ui.label_gfhigh->setDisabled(true); ui.gflow->setDisabled(true); ui.gfhigh->setDisabled(true); ui.lastStop->setDisabled(false); ui.backgasBreaks->setDisabled(false); ui.bottompo2->setDisabled(false); ui.decopo2->setDisabled(false); + ui.safetystop->setDisabled(true); + ui.label_reserve_gas->setDisabled(true); ui.reserve_gas->setDisabled(true); + ui.label_vpmb_conservatism->setDisabled(false); ui.vpmb_conservatism->setDisabled(false); ui.switch_at_req_stop->setDisabled(false); ui.min_switch_duration->setDisabled(false); @@ -286,13 +296,18 @@ void PlannerSettingsWidget::disableDecoElements(int mode) ui.problemsolvingtime->setValue(prefs.problemsolvingtime); } else if (mode == BUEHLMANN) { + ui.label_gflow->setDisabled(false); + ui.label_gfhigh->setDisabled(false); ui.gflow->setDisabled(false); ui.gfhigh->setDisabled(false); ui.lastStop->setDisabled(false); ui.backgasBreaks->setDisabled(false); ui.bottompo2->setDisabled(false); ui.decopo2->setDisabled(false); + ui.safetystop->setDisabled(true); + ui.label_reserve_gas->setDisabled(true); ui.reserve_gas->setDisabled(true); + ui.label_vpmb_conservatism->setDisabled(true); ui.vpmb_conservatism->setDisabled(true); ui.switch_at_req_stop->setDisabled(false); ui.min_switch_duration->setDisabled(false); diff --git a/desktop-widgets/plannerSettings.ui b/desktop-widgets/plannerSettings.ui index 44cc45e27..78fca43e4 100644 --- a/desktop-widgets/plannerSettings.ui +++ b/desktop-widgets/plannerSettings.ui @@ -273,7 +273,7 @@ </widget> </item> <item row="1" column="1"> - <widget class="QLabel" name="label_3"> + <widget class="QLabel" name="label_reserve_gas"> <property name="text"> <string>Reserve gas</string> </property> @@ -338,7 +338,7 @@ </spacer> </item> <item row="8" column="1"> - <widget class="QLabel" name="label_15"> + <widget class="QLabel" name="label_gflow"> <property name="text"> <string>GFLow</string> </property> @@ -355,7 +355,7 @@ </widget> </item> <item row="9" column="1"> - <widget class="QLabel" name="label_16"> + <widget class="QLabel" name="label_gfhigh"> <property name="text"> <string>GFHigh</string> </property> @@ -490,7 +490,7 @@ </spacer> </item> <item row="12" column="1"> - <widget class="QLabel" name="label_5"> + <widget class="QLabel" name="label_vpmb_conservatism"> <property name="text"> <string>Conservatism level</string> </property> |