summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/configuredivecomputerdialog.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2017-04-27 21:25:04 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-04 10:50:15 -0700
commitf14ad7f183f0422ad09c455212e1822bd7bdd3ee (patch)
treef724ed6b540829fb697f35333a8d8c946f2cdef6 /desktop-widgets/configuredivecomputerdialog.cpp
parent5a4e1a55866ac943eecbd32c52583142d4e8921e (diff)
downloadsubsurface-f14ad7f183f0422ad09c455212e1822bd7bdd3ee.tar.gz
Implement OSTC4 specific settings
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Diffstat (limited to 'desktop-widgets/configuredivecomputerdialog.cpp')
-rw-r--r--desktop-widgets/configuredivecomputerdialog.cpp6
1 files changed, 6 insertions, 0 deletions
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);