From f14ad7f183f0422ad09c455212e1822bd7bdd3ee Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Thu, 27 Apr 2017 21:25:04 +0200 Subject: Implement OSTC4 specific settings Signed-off-by: Anton Lundin --- desktop-widgets/configuredivecomputerdialog.cpp | 6 ++ desktop-widgets/configuredivecomputerdialog.ui | 132 ++++++++++++++++++------ 2 files changed, 105 insertions(+), 33 deletions(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/configuredivecomputerdialog.cpp b/desktop-widgets/configuredivecomputerdialog.cpp index db7249f83..41e3ed386 100644 --- a/desktop-widgets/configuredivecomputerdialog.cpp +++ b/desktop-widgets/configuredivecomputerdialog.cpp @@ -811,9 +811,12 @@ void ConfigureDiveComputerDialog::populateDeviceDetailsOSTC4() deviceDetails->decoType = ui.decoTypeComboBox_4->currentIndex(); deviceDetails->aGFHigh = ui.aGFHighSpinBox_4->value(); deviceDetails->aGFLow = ui.aGFLowSpinBox_4->value(); + deviceDetails->vpmConservatism = ui.vpmConservatismSpinBox->value(); deviceDetails->setPointFallback = ui.setPointFallbackCheckBox_4->isChecked(); + deviceDetails->buttonSensitivity = ui.buttonSensitivity_4->value(); deviceDetails->bottomGasConsumption = ui.bottomGasConsumption_4->value(); deviceDetails->decoGasConsumption = ui.decoGasConsumption_4->value(); + deviceDetails->travelGasConsumption = ui.travelGasConsumption_4->value(); deviceDetails->alwaysShowppO2 = ui.alwaysShowppO2_4->isChecked(); deviceDetails->tempSensorOffset = lrint(ui.tempSensorOffsetDoubleSpinBox_4->value() * 10); deviceDetails->safetyStopLength = ui.safetyStopLengthSpinBox_4->value(); @@ -1316,9 +1319,12 @@ void ConfigureDiveComputerDialog::reloadValuesOSTC4() ui.decoTypeComboBox_4->setCurrentIndex(deviceDetails->decoType); ui.aGFHighSpinBox_4->setValue(deviceDetails->aGFHigh); ui.aGFLowSpinBox_4->setValue(deviceDetails->aGFLow); + ui.vpmConservatismSpinBox->setValue(deviceDetails->vpmConservatism); ui.setPointFallbackCheckBox_4->setChecked(deviceDetails->setPointFallback); + ui.buttonSensitivity_4->setValue(deviceDetails->buttonSensitivity); ui.bottomGasConsumption_4->setValue(deviceDetails->bottomGasConsumption); ui.decoGasConsumption_4->setValue(deviceDetails->decoGasConsumption); + ui.travelGasConsumption_4->setValue(deviceDetails->travelGasConsumption); ui.alwaysShowppO2_4->setChecked(deviceDetails->alwaysShowppO2); ui.tempSensorOffsetDoubleSpinBox_4->setValue((double)deviceDetails->tempSensorOffset / 10.0); ui.safetyStopLengthSpinBox_4->setValue(deviceDetails->safetyStopLength); diff --git a/desktop-widgets/configuredivecomputerdialog.ui b/desktop-widgets/configuredivecomputerdialog.ui index 8757c3639..6e0b65b3c 100644 --- a/desktop-widgets/configuredivecomputerdialog.ui +++ b/desktop-widgets/configuredivecomputerdialog.ui @@ -3261,14 +3261,37 @@ Advanced settings - - + + - Always show pO₂ + Travel gas consumption - + + + + % + + + 50 + + + 100 + + + 70 + + + + + + + Button sensitivity + + + + Future TTS @@ -3282,14 +3305,14 @@ - + GFLow - + % @@ -3305,14 +3328,14 @@ - + GFHigh - + % @@ -3328,20 +3351,7 @@ - - - - Qt::Vertical - - - - 20 - 40 - - - - - + m @@ -3361,7 +3371,7 @@ - + % @@ -3412,7 +3422,7 @@ - + min @@ -3422,7 +3432,7 @@ - + Last deco @@ -3432,14 +3442,14 @@ - + Alt GFLow - + % @@ -3455,21 +3465,21 @@ - + Alt GFHigh - + Bottom gas consumption - + Deco gas consumption @@ -3477,7 +3487,7 @@ - + ℓ/min @@ -3493,6 +3503,22 @@ + + + ℓ/min + + + 5 + + + 50 + + + 20 + + + + ℓ/min @@ -3508,14 +3534,54 @@ - + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Always show pO₂ + + + + + + + VPM conservatism + + + + + + + + + + + 5 + + + 3 + + + + Temperature sensor offset - + °C -- cgit v1.2.3-70-g09d2