From 9212458f23a0a35629020984e43e47a0e40425b4 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Thu, 3 Sep 2015 00:00:01 +0200 Subject: Enable the configuration of more OSTC settings This enables enables you to configure a couple more settings in the OSTC devices, roughly corresponding to the new ones that can be configured in the OSTC3 devices. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/configuredivecomputerdialog.cpp | 6 ++ qt-ui/configuredivecomputerdialog.ui | 147 +++++++++++++++++++++++----------- 2 files changed, 106 insertions(+), 47 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/configuredivecomputerdialog.cpp b/qt-ui/configuredivecomputerdialog.cpp index 6e01202a7..04c15b1b4 100644 --- a/qt-ui/configuredivecomputerdialog.cpp +++ b/qt-ui/configuredivecomputerdialog.cpp @@ -566,6 +566,9 @@ void ConfigureDiveComputerDialog::populateDeviceDetailsOSTC() deviceDetails->aGFSelectable = ui.aGFSelectableCheckBox_3->isChecked(); deviceDetails->aGFHigh = ui.aGFHighSpinBox_3->value(); deviceDetails->aGFLow = ui.aGFLowSpinBox_3->value(); + deviceDetails->bottomGasConsumption = ui.bottomGasConsumption_3->value(); + deviceDetails->decoGasConsumption = ui.decoGasConsumption_3->value(); + deviceDetails->graphicalSpeedIndicator = ui.graphicalSpeedIndicator_3->isChecked(); //set gas values gas gas1; @@ -932,6 +935,9 @@ setNumberOfDives ui.aGFHighSpinBox_3->setValue(deviceDetails->aGFHigh); ui.aGFLowSpinBox_3->setValue(deviceDetails->aGFLow); ui.numberOfDivesSpinBox_3->setValue(deviceDetails->numberOfDives); + ui.bottomGasConsumption_3->setValue(deviceDetails->bottomGasConsumption); + ui.decoGasConsumption_3->setValue(deviceDetails->decoGasConsumption); + ui.graphicalSpeedIndicator_3->setChecked(deviceDetails->graphicalSpeedIndicator); //load gas 1 values ui.ostcGasTable->setItem(0, 1, new QTableWidgetItem(QString::number(deviceDetails->gas1.oxygen))); diff --git a/qt-ui/configuredivecomputerdialog.ui b/qt-ui/configuredivecomputerdialog.ui index d5381cb89..69a74ee93 100644 --- a/qt-ui/configuredivecomputerdialog.ui +++ b/qt-ui/configuredivecomputerdialog.ui @@ -1954,14 +1954,7 @@ - - - - Future TTS - - - - + Desaturation @@ -1971,7 +1964,14 @@ - + + + + Future TTS + + + + % @@ -1987,7 +1987,7 @@ - + Qt::Vertical @@ -2020,35 +2020,6 @@ - - - - min - - - 9 - - - - - - - false - - - % - - - 5 - - - 255 - - - 30 - - - @@ -2091,6 +2062,35 @@ + + + + min + + + 9 + + + + + + + false + + + % + + + 5 + + + 255 + + + 30 + + + @@ -2101,7 +2101,7 @@ - + % @@ -2150,7 +2150,7 @@ - + Saturation @@ -2160,6 +2160,13 @@ + + + + GFHigh + + + @@ -2176,6 +2183,13 @@ + + + + GFLow + + + @@ -2192,17 +2206,56 @@ - - + + - GFHigh + Graphical speed indicator - - + + + + l/m + + + 5 + + + 50 + + + 20 + + + + + + + l/m + + + 5 + + + 50 + + + 20 + + + + + - GFLow + Bottom gas consumption + + + + + + + Deco gas consumption -- cgit v1.2.3-70-g09d2