From 37953d163efd7741bb328b23952df97b01f65a55 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Thu, 3 Sep 2015 00:00:00 +0200 Subject: Enable the configuration of more OSTC3 settings This enables enables you to configure a couple of new settings in the OSTC3 devices. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/configuredivecomputerdialog.cpp | 16 ++ qt-ui/configuredivecomputerdialog.ui | 330 +++++++++++++++++++++++----------- 2 files changed, 241 insertions(+), 105 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/configuredivecomputerdialog.cpp b/qt-ui/configuredivecomputerdialog.cpp index 0ac8ff701..6e01202a7 100644 --- a/qt-ui/configuredivecomputerdialog.cpp +++ b/qt-ui/configuredivecomputerdialog.cpp @@ -432,6 +432,14 @@ void ConfigureDiveComputerDialog::populateDeviceDetailsOSTC3() deviceDetails->calibrationGas = ui.calibrationGasSpinBox->value(); deviceDetails->flipScreen = ui.flipScreenCheckBox->isChecked(); deviceDetails->setPointFallback = ui.setPointFallbackCheckBox->isChecked(); + deviceDetails->leftButtonSensitivity = ui.leftButtonSensitivity->value(); + deviceDetails->rightButtonSensitivity = ui.rightButtonSensitivity->value(); + deviceDetails->bottomGasConsumption = ui.bottomGasConsumption->value(); + deviceDetails->decoGasConsumption = ui.decoGasConsumption->value(); + deviceDetails->modWarning = ui.modWarning->isChecked(); + deviceDetails->dynamicAscendRate = ui.dynamicAscendRate->isChecked(); + deviceDetails->graphicalSpeedIndicator = ui.graphicalSpeedIndicator->isChecked(); + deviceDetails->alwaysShowppO2 = ui.alwaysShowppO2->isChecked(); //set gas values gas gas1; @@ -796,6 +804,14 @@ void ConfigureDiveComputerDialog::reloadValuesOSTC3() ui.calibrationGasSpinBox->setValue(deviceDetails->calibrationGas); ui.flipScreenCheckBox->setChecked(deviceDetails->flipScreen); ui.setPointFallbackCheckBox->setChecked(deviceDetails->setPointFallback); + ui.leftButtonSensitivity->setValue(deviceDetails->leftButtonSensitivity); + ui.rightButtonSensitivity->setValue(deviceDetails->rightButtonSensitivity); + ui.bottomGasConsumption->setValue(deviceDetails->bottomGasConsumption); + ui.decoGasConsumption->setValue(deviceDetails->decoGasConsumption); + ui.modWarning->setChecked(deviceDetails->modWarning); + ui.dynamicAscendRate->setChecked(deviceDetails->dynamicAscendRate); + ui.graphicalSpeedIndicator->setChecked(deviceDetails->graphicalSpeedIndicator); + ui.alwaysShowppO2->setChecked(deviceDetails->alwaysShowppO2); //load gas 1 values ui.ostc3GasTable->setItem(0, 1, new QTableWidgetItem(QString::number(deviceDetails->gas1.oxygen))); diff --git a/qt-ui/configuredivecomputerdialog.ui b/qt-ui/configuredivecomputerdialog.ui index 22450f2f6..d5381cb89 100644 --- a/qt-ui/configuredivecomputerdialog.ui +++ b/qt-ui/configuredivecomputerdialog.ui @@ -224,6 +224,44 @@ Basic settings + + + + + English + + + + + German + + + + + French + + + + + Italian + + + + + + + + + m/°C + + + + + ft/°F + + + + @@ -297,26 +335,26 @@ - - + + - English + OC - German + CC - French + Gauge - Italian + Apnea @@ -331,26 +369,21 @@ - - - - - OC - - + + - CC + MMDDYY - Gauge + DDMMYY - Apnea + YYMMDD @@ -365,21 +398,21 @@ - - + + - MMDDYY + Eco - DDMMYY + Medium - YYMMDD + High @@ -394,25 +427,6 @@ - - - - - Eco - - - - - Medium - - - - - High - - - - @@ -423,20 +437,6 @@ - - - - - m/°C - - - - - ft/°F - - - - @@ -457,14 +457,18 @@ - - - - Compass gain - - - compassGainComboBox - + + + + + 2s + + + + + 10s + + @@ -540,30 +544,6 @@ - - - - - 2s - - - - - 10s - - - - - - - - Dive mode color - - - diveModeColour - - - @@ -595,6 +575,16 @@ + + + + Dive mode color + + + diveModeColour + + + @@ -612,6 +602,16 @@ + + + + Compass gain + + + compassGainComboBox + + + @@ -619,6 +619,20 @@ Advanced settings + + + + Left button sensitivity + + + + + + + Always show ppO2 + + + @@ -712,7 +726,7 @@ - + Qt::Vertical @@ -777,16 +791,6 @@ - - - - min - - - 9 - - - @@ -804,6 +808,16 @@ + + + + min + + + 9 + + + @@ -830,6 +844,13 @@ + + + + Alt GFLow + + + @@ -849,6 +870,13 @@ + + + + Alt GFHigh + + + @@ -859,24 +887,116 @@ - - + + - Alt GFLow + Flip screen - - + + - Alt GFHigh + Right button sensitivity - + - Flip screen + Mod warning + + + + + + + Graphical speed indicator + + + + + + + Dynamic acend rate + + + + + + + Bottom gas consumption + + + + + + + Deco gas consumption + + + + + + + % + + + 20 + + + 100 + + + 40 + + + + + + + % + + + 20 + + + 100 + + + 40 + + + + + + + l/m + + + 5 + + + 50 + + + 20 + + + + + + + l/m + + + 5 + + + 50 + + + 20 -- cgit v1.2.3-70-g09d2