aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-10-18 00:33:43 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-18 15:21:38 -0700
commitb2a66eab14a8475d6541aef7342f5b28a9a8c2b9 (patch)
tree88b0f9f6e0108d0bc16d323dacaeb228e40ade49
parentc06a7d6e6db9eee6d918175b781a21aa9742c500 (diff)
downloadsubsurface-b2a66eab14a8475d6541aef7342f5b28a9a8c2b9.tar.gz
Wire up more settings in the OSTC3 settings
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/configuredivecomputerdialog.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/qt-ui/configuredivecomputerdialog.cpp b/qt-ui/configuredivecomputerdialog.cpp
index f4c5a6123..8a47e018d 100644
--- a/qt-ui/configuredivecomputerdialog.cpp
+++ b/qt-ui/configuredivecomputerdialog.cpp
@@ -182,6 +182,21 @@ void ConfigureDiveComputerDialog::populateDeviceDetailsOSTC3()
deviceDetails->setDateFormat(ui.dateFormatComboBox->currentIndex());
deviceDetails->setCompassGain(ui.compassGainComboBox->currentIndex());
deviceDetails->setSyncTime(ui.dateTimeSyncCheckBox->isChecked());
+ deviceDetails->setSafetyStop(ui.safetyStopCheckBox->isChecked());
+ deviceDetails->setGfHigh(ui.gfHighSpinBox->value());
+ deviceDetails->setGfLow(ui.gfLowSpinBox->value());
+ deviceDetails->setPressureSensorOffset(ui.pressureSensorOffsetSpinBox->value());
+ deviceDetails->setPpO2Min(ui.ppO2MinSpinBox->value());
+ deviceDetails->setPpO2Max(ui.ppO2MaxSpinBox->value());
+ deviceDetails->setFutureTTS(ui.futureTTSSpinBox->value());
+ deviceDetails->setCcrMode(ui.ccrModeComboBox->currentIndex());
+ deviceDetails->setDecoType(ui.decoTypeComboBox->currentIndex());
+ deviceDetails->setAGFSelectable(ui.aGFSelectableCheckBox->isChecked());
+ deviceDetails->setAGFHigh(ui.aGFHighSpinBox->value());
+ deviceDetails->setAGFLow(ui.aGFLowSpinBox->value());
+ deviceDetails->setCalibrationGas(ui.calibrationGasSpinBox->value());
+ deviceDetails->setFlipScreen(ui.flipScreenCheckBox->isChecked());
+ deviceDetails->setSetPointFallback(ui.setPointFallbackCheckBox->isChecked());
//set gas values
gas gas1;
@@ -393,6 +408,21 @@ void ConfigureDiveComputerDialog::reloadValuesOSTC3()
ui.languageComboBox->setCurrentIndex(deviceDetails->language());
ui.dateFormatComboBox->setCurrentIndex(deviceDetails->dateFormat());
ui.compassGainComboBox->setCurrentIndex(deviceDetails->compassGain());
+ ui.safetyStopCheckBox->setChecked(deviceDetails->safetyStop());
+ ui.gfHighSpinBox->setValue(deviceDetails->gfHigh());
+ ui.gfLowSpinBox->setValue(deviceDetails->gfLow());
+ ui.pressureSensorOffsetSpinBox->setValue(deviceDetails->pressureSensorOffset());
+ ui.ppO2MinSpinBox->setValue(deviceDetails->ppO2Min());
+ ui.ppO2MaxSpinBox->setValue(deviceDetails->ppO2Max());
+ ui.futureTTSSpinBox->setValue(deviceDetails->futureTTS());
+ ui.ccrModeComboBox->setCurrentIndex(deviceDetails->ccrMode());
+ ui.decoTypeComboBox->setCurrentIndex(deviceDetails->decoType());
+ ui.aGFSelectableCheckBox->setChecked(deviceDetails->aGFSelectable());
+ ui.aGFHighSpinBox->setValue(deviceDetails->aGFHigh());
+ ui.aGFLowSpinBox->setValue(deviceDetails->aGFLow());
+ ui.calibrationGasSpinBox->setValue(deviceDetails->calibrationGas());
+ ui.flipScreenCheckBox->setChecked(deviceDetails->flipScreen());
+ ui.setPointFallbackCheckBox->setChecked(deviceDetails->setPointFallback());
//load gas 1 values
ui.ostc3GasTable->setItem(0,1, new QTableWidgetItem(QString::number(deviceDetails->gas1().oxygen)));