From 7e09a6c7bcb135d65b3e48f2aee44791dd080443 Mon Sep 17 00:00:00 2001 From: Rick Walsh Date: Sat, 24 Sep 2016 18:02:08 +1000 Subject: Separate VPM-B conservatism preference for planner and profile Separate the VPM-B conservatism preference into diveplan.vpmb_conservatism for planning dives and prefs.vpmb_conservatism for profile ceiling display of saved dives. Signed-off-by: Rick Walsh Signed-off-by: Dirk Hohndel --- desktop-widgets/preferences/preferences_graph.cpp | 2 ++ desktop-widgets/preferences/preferences_graph.ui | 36 ++++++++++++++++++----- 2 files changed, 30 insertions(+), 8 deletions(-) (limited to 'desktop-widgets/preferences') diff --git a/desktop-widgets/preferences/preferences_graph.cpp b/desktop-widgets/preferences/preferences_graph.cpp index 36951ef22..c13915e37 100644 --- a/desktop-widgets/preferences/preferences_graph.cpp +++ b/desktop-widgets/preferences/preferences_graph.cpp @@ -27,6 +27,7 @@ void PreferencesGraph::refreshSettings() ui->gflow->setValue(prefs.gflow); ui->gfhigh->setValue(prefs.gfhigh); + ui->vpmb_conservatism->setValue(prefs.vpmb_conservatism); ui->gf_low_at_maxdepth->setChecked(prefs.gf_low_at_maxdepth); ui->show_ccr_setpoint->setChecked(prefs.show_ccr_setpoint); ui->show_ccr_sensors->setChecked(prefs.show_ccr_sensors); @@ -55,6 +56,7 @@ void PreferencesGraph::syncSettings() tech->setRedceiling(ui->red_ceiling->isChecked()); tech->setGflow(ui->gflow->value()); tech->setGfhigh(ui->gfhigh->value()); + tech->setVpmbConservatism(ui->vpmb_conservatism->value()); tech->setGfLowAtMaxDepth(ui->gf_low_at_maxdepth->isChecked()); tech->setShowCCRSetpoint(ui->show_ccr_setpoint->isChecked()); tech->setShowCCRSensors(ui->show_ccr_sensors->isChecked()); diff --git a/desktop-widgets/preferences/preferences_graph.ui b/desktop-widgets/preferences/preferences_graph.ui index e0d0cda54..b8d6a4656 100644 --- a/desktop-widgets/preferences/preferences_graph.ui +++ b/desktop-widgets/preferences/preferences_graph.ui @@ -168,13 +168,33 @@ + + + VPM-B Conservatism + + + + + + + + + + + 0 + + + 4 + + + + Default CCR set-point for dive planning - + bar @@ -190,14 +210,14 @@ - + pSCR O₂ metabolism rate - + ℓ/min @@ -207,14 +227,14 @@ - + pSCR ratio - + @@ -224,21 +244,21 @@ - + GFLow at max depth - + CCR: show setpoints when viewing pO₂ - + CCR: show individual O₂ sensor values when viewing pO₂ -- cgit v1.2.3-70-g09d2