diff options
-rw-r--r-- | qt-ui/configuredivecomputerdialog.cpp | 292 | ||||
-rw-r--r-- | qt-ui/configuredivecomputerdialog.h | 2 | ||||
-rw-r--r-- | qt-ui/configuredivecomputerdialog.ui | 1039 |
3 files changed, 1331 insertions, 2 deletions
diff --git a/qt-ui/configuredivecomputerdialog.cpp b/qt-ui/configuredivecomputerdialog.cpp index fd1edfe31..ed044f29f 100644 --- a/qt-ui/configuredivecomputerdialog.cpp +++ b/qt-ui/configuredivecomputerdialog.cpp @@ -76,6 +76,28 @@ ConfigureDiveComputerDialog::ConfigureDiveComputerDialog(QWidget *parent) : ui.ostc3SetPointTable->setColumnWidth(i, width.toInt()); } settings.endGroup(); + + settings.beginGroup("ostcGasTable"); + for (int i = 0; i < ui.ostcGasTable->columnCount(); i++) { + QVariant width = settings.value(QString("colwidth%1").arg(i)); + if (width.isValid()) + ui.ostcGasTable->setColumnWidth(i, width.toInt()); + } + settings.endGroup(); + settings.beginGroup("ostcDilTable"); + for (int i = 0; i < ui.ostcDilTable->columnCount(); i++) { + QVariant width = settings.value(QString("colwidth%1").arg(i)); + if (width.isValid()) + ui.ostcDilTable->setColumnWidth(i, width.toInt()); + } + settings.endGroup(); + settings.beginGroup("ostcSetPointTable"); + for (int i = 0; i < ui.ostcSetPointTable->columnCount(); i++) { + QVariant width = settings.value(QString("colwidth%1").arg(i)); + if (width.isValid()) + ui.ostcSetPointTable->setColumnWidth(i, width.toInt()); + } + settings.endGroup(); settings.endGroup(); } @@ -95,6 +117,19 @@ ConfigureDiveComputerDialog::~ConfigureDiveComputerDialog() for (int i = 0; i < ui.ostc3SetPointTable->columnCount(); i++) settings.setValue(QString("colwidth%1").arg(i), ui.ostc3SetPointTable->columnWidth(i)); settings.endGroup(); + + settings.beginGroup("ostcGasTable"); + for (int i = 0; i < ui.ostcGasTable->columnCount(); i++) + settings.setValue(QString("colwidth%1").arg(i), ui.ostcGasTable->columnWidth(i)); + settings.endGroup(); + settings.beginGroup("ostcDilTable"); + for (int i = 0; i < ui.ostcDilTable->columnCount(); i++) + settings.setValue(QString("colwidth%1").arg(i), ui.ostcDilTable->columnWidth(i)); + settings.endGroup(); + settings.beginGroup("ostcSetPointTable"); + for (int i = 0; i < ui.ostcSetPointTable->columnCount(); i++) + settings.setValue(QString("colwidth%1").arg(i), ui.ostcSetPointTable->columnWidth(i)); + settings.endGroup(); settings.endGroup(); } @@ -162,6 +197,9 @@ void ConfigureDiveComputerDialog::populateDeviceDetails() case 1: populateDeviceDetailsSuuntoVyper(); break; + case 2: + populateDeviceDetailsOSTC(); + break; } } @@ -304,6 +342,143 @@ void ConfigureDiveComputerDialog::populateDeviceDetailsOSTC3() deviceDetails->setSp5(sp5); } +void ConfigureDiveComputerDialog::populateDeviceDetailsOSTC() +{ + deviceDetails->setCustomText(ui.customTextLlineEdit_3->text()); + deviceDetails->setDiveMode(ui.diveModeComboBox_3->currentIndex()); + deviceDetails->setSaturation(ui.saturationSpinBox_3->value()); + deviceDetails->setDesaturation(ui.desaturationSpinBox_3->value()); + deviceDetails->setLastDeco(ui.lastDecoSpinBox_3->value()); + deviceDetails->setBrightness(ui.brightnessComboBox_3->currentIndex()); + deviceDetails->setUnits(ui.unitsComboBox_3->currentIndex()); + deviceDetails->setSamplingRate(ui.samplingRateComboBox_3->currentIndex()); + deviceDetails->setSalinity(ui.salinitySpinBox_3->value()); + deviceDetails->setDiveModeColor(ui.diveModeColour_3->currentIndex()); + deviceDetails->setLanguage(ui.languageComboBox_3->currentIndex()); + deviceDetails->setDateFormat(ui.dateFormatComboBox_3->currentIndex()); + deviceDetails->setCompassGain(ui.compassGainComboBox_3->currentIndex()); + deviceDetails->setSyncTime(ui.dateTimeSyncCheckBox_3->isChecked()); + deviceDetails->setSafetyStop(ui.safetyStopCheckBox_3->isChecked()); + deviceDetails->setGfHigh(ui.gfHighSpinBox_3->value()); + deviceDetails->setGfLow(ui.gfLowSpinBox_3->value()); + deviceDetails->setPressureSensorOffset(ui.pressureSensorOffsetSpinBox_3->value()); + deviceDetails->setPpO2Min(ui.ppO2MinSpinBox_3->value()); + deviceDetails->setPpO2Max(ui.ppO2MaxSpinBox_3->value()); + deviceDetails->setFutureTTS(ui.futureTTSSpinBox_3->value()); + deviceDetails->setCcrMode(ui.ccrModeComboBox_3->currentIndex()); + deviceDetails->setDecoType(ui.decoTypeComboBox_3->currentIndex()); + deviceDetails->setAGFSelectable(ui.aGFSelectableCheckBox_3->isChecked()); + deviceDetails->setAGFHigh(ui.aGFHighSpinBox_3->value()); + deviceDetails->setAGFLow(ui.aGFLowSpinBox_3->value()); + deviceDetails->setCalibrationGas(ui.calibrationGasSpinBox_3->value()); + deviceDetails->setFlipScreen(ui.flipScreenCheckBox_3->isChecked()); + deviceDetails->setSetPointFallback(ui.setPointFallbackCheckBox_3->isChecked()); + + //set gas values + gas gas1; + gas gas2; + gas gas3; + gas gas4; + gas gas5; + + gas1.oxygen = GET_INT_FROM(ui.ostcGasTable->item(0, 1), 21); + gas1.helium = GET_INT_FROM(ui.ostcGasTable->item(0, 2), 0); + gas1.type = GET_INT_FROM(ui.ostcGasTable->item(0, 3), 0); + gas1.depth = GET_INT_FROM(ui.ostcGasTable->item(0, 4), 0); + + gas2.oxygen = GET_INT_FROM(ui.ostcGasTable->item(1, 1), 21); + gas2.helium = GET_INT_FROM(ui.ostcGasTable->item(1, 2), 0); + gas2.type = GET_INT_FROM(ui.ostcGasTable->item(1, 3), 0); + gas2.depth = GET_INT_FROM(ui.ostcGasTable->item(1, 4), 0); + + gas3.oxygen = GET_INT_FROM(ui.ostcGasTable->item(2, 1), 21); + gas3.helium = GET_INT_FROM(ui.ostcGasTable->item(2, 2), 0); + gas3.type = GET_INT_FROM(ui.ostcGasTable->item(2, 3), 0); + gas3.depth = GET_INT_FROM(ui.ostcGasTable->item(2, 4), 0); + + gas4.oxygen = GET_INT_FROM(ui.ostcGasTable->item(3, 1), 21); + gas4.helium = GET_INT_FROM(ui.ostcGasTable->item(3, 2), 0); + gas4.type = GET_INT_FROM(ui.ostcGasTable->item(3, 3), 0); + gas4.depth = GET_INT_FROM(ui.ostcGasTable->item(3, 4), 0); + + gas5.oxygen = GET_INT_FROM(ui.ostcGasTable->item(4, 1), 21); + gas5.helium = GET_INT_FROM(ui.ostcGasTable->item(4, 2), 0); + gas5.type = GET_INT_FROM(ui.ostcGasTable->item(4, 3), 0); + gas5.depth = GET_INT_FROM(ui.ostcGasTable->item(4, 4), 0); + + deviceDetails->setGas1(gas1); + deviceDetails->setGas2(gas2); + deviceDetails->setGas3(gas3); + deviceDetails->setGas4(gas4); + deviceDetails->setGas5(gas5); + + //set dil values + gas dil1; + gas dil2; + gas dil3; + gas dil4; + gas dil5; + + dil1.oxygen = GET_INT_FROM(ui.ostcDilTable->item(0, 1), 21); + dil1.helium = GET_INT_FROM(ui.ostcDilTable->item(0, 2), 0); + dil1.type = GET_INT_FROM(ui.ostcDilTable->item(0, 3), 0); + dil1.depth = GET_INT_FROM(ui.ostcDilTable->item(0, 4), 0); + + dil2.oxygen = GET_INT_FROM(ui.ostcDilTable->item(1, 1), 21); + dil2.helium = GET_INT_FROM(ui.ostcDilTable->item(1, 2), 0); + dil2.type = GET_INT_FROM(ui.ostcDilTable->item(1, 3), 0); + dil2.depth = GET_INT_FROM(ui.ostcDilTable->item(1, 4),0); + + dil3.oxygen = GET_INT_FROM(ui.ostcDilTable->item(2, 1), 21); + dil3.helium = GET_INT_FROM(ui.ostcDilTable->item(2, 2), 0); + dil3.type = GET_INT_FROM(ui.ostcDilTable->item(2, 3), 0); + dil3.depth = GET_INT_FROM(ui.ostcDilTable->item(2, 4), 0); + + dil4.oxygen = GET_INT_FROM(ui.ostcDilTable->item(3, 1), 21); + dil4.helium = GET_INT_FROM(ui.ostcDilTable->item(3, 2), 0); + dil4.type = GET_INT_FROM(ui.ostcDilTable->item(3, 3), 0); + dil4.depth = GET_INT_FROM(ui.ostcDilTable->item(3, 4), 0); + + dil5.oxygen = GET_INT_FROM(ui.ostcDilTable->item(4, 1), 21); + dil5.helium = GET_INT_FROM(ui.ostcDilTable->item(4, 2), 0); + dil5.type = GET_INT_FROM(ui.ostcDilTable->item(4, 3), 0); + dil5.depth = GET_INT_FROM(ui.ostcDilTable->item(4, 4), 0); + + deviceDetails->setDil1(dil1); + deviceDetails->setDil2(dil2); + deviceDetails->setDil3(dil3); + deviceDetails->setDil4(dil4); + deviceDetails->setDil5(dil5); + + //set set point details + setpoint sp1; + setpoint sp2; + setpoint sp3; + setpoint sp4; + setpoint sp5; + + sp1.sp = GET_INT_FROM(ui.ostcSetPointTable->item(0, 1), 70); + sp1.depth = GET_INT_FROM(ui.ostcSetPointTable->item(0, 2), 0); + + sp2.sp = GET_INT_FROM(ui.ostcSetPointTable->item(1, 1), 90); + sp2.depth = GET_INT_FROM(ui.ostcSetPointTable->item(1, 2), 20); + + sp3.sp = GET_INT_FROM(ui.ostcSetPointTable->item(2, 1), 100); + sp3.depth = GET_INT_FROM(ui.ostcSetPointTable->item(2, 2), 33); + + sp4.sp = GET_INT_FROM(ui.ostcSetPointTable->item(3, 1), 120); + sp4.depth = GET_INT_FROM(ui.ostcSetPointTable->item(3, 2), 50); + + sp5.sp = GET_INT_FROM(ui.ostcSetPointTable->item(4, 1), 140); + sp5.depth = GET_INT_FROM(ui.ostcSetPointTable->item(4, 2), 70); + + deviceDetails->setSp1(sp1); + deviceDetails->setSp2(sp2); + deviceDetails->setSp3(sp3); + deviceDetails->setSp4(sp4); + deviceDetails->setSp5(sp5); +} + void ConfigureDiveComputerDialog::populateDeviceDetailsSuuntoVyper() { deviceDetails->setCustomText(ui.customTextLlineEdit_1->text()); @@ -398,6 +573,9 @@ void ConfigureDiveComputerDialog::reloadValues() case 1: reloadValuesSuuntoVyper(); break; + case 2: + reloadValuesOSTC(); + break; } } @@ -515,6 +693,120 @@ void ConfigureDiveComputerDialog::reloadValuesOSTC3() ui.ostc3SetPointTable->setItem(4, 2, new QTableWidgetItem(QString::number(deviceDetails->sp5().depth))); } +void ConfigureDiveComputerDialog::reloadValuesOSTC() +{ + ui.serialNoLineEdit_3->setText(deviceDetails->serialNo()); + ui.firmwareVersionLineEdit_3->setText(deviceDetails->firmwareVersion()); + ui.customTextLlineEdit_3->setText(deviceDetails->customText()); + ui.diveModeComboBox_3->setCurrentIndex(deviceDetails->diveMode()); + ui.saturationSpinBox_3->setValue(deviceDetails->saturation()); + ui.desaturationSpinBox_3->setValue(deviceDetails->desaturation()); + ui.lastDecoSpinBox_3->setValue(deviceDetails->lastDeco()); + ui.brightnessComboBox_3->setCurrentIndex(deviceDetails->brightness()); + ui.unitsComboBox_3->setCurrentIndex(deviceDetails->units()); + ui.samplingRateComboBox_3->setCurrentIndex(deviceDetails->samplingRate()); + ui.salinitySpinBox_3->setValue(deviceDetails->salinity()); + ui.diveModeColour_3->setCurrentIndex(deviceDetails->diveModeColor()); + ui.languageComboBox_3->setCurrentIndex(deviceDetails->language()); + ui.dateFormatComboBox_3->setCurrentIndex(deviceDetails->dateFormat()); + ui.compassGainComboBox_3->setCurrentIndex(deviceDetails->compassGain()); + ui.safetyStopCheckBox_3->setChecked(deviceDetails->safetyStop()); + ui.gfHighSpinBox_3->setValue(deviceDetails->gfHigh()); + ui.gfLowSpinBox_3->setValue(deviceDetails->gfLow()); + ui.pressureSensorOffsetSpinBox_3->setValue(deviceDetails->pressureSensorOffset()); + ui.ppO2MinSpinBox_3->setValue(deviceDetails->ppO2Min()); + ui.ppO2MaxSpinBox_3->setValue(deviceDetails->ppO2Max()); + ui.futureTTSSpinBox_3->setValue(deviceDetails->futureTTS()); + ui.ccrModeComboBox_3->setCurrentIndex(deviceDetails->ccrMode()); + ui.decoTypeComboBox_3->setCurrentIndex(deviceDetails->decoType()); + ui.aGFSelectableCheckBox_3->setChecked(deviceDetails->aGFSelectable()); + ui.aGFHighSpinBox_3->setValue(deviceDetails->aGFHigh()); + ui.aGFLowSpinBox_3->setValue(deviceDetails->aGFLow()); + ui.calibrationGasSpinBox_3->setValue(deviceDetails->calibrationGas()); + ui.flipScreenCheckBox_3->setChecked(deviceDetails->flipScreen()); + ui.setPointFallbackCheckBox_3->setChecked(deviceDetails->setPointFallback()); + + //load gas 1 values + ui.ostcGasTable->setItem(0,1, new QTableWidgetItem(QString::number(deviceDetails->gas1().oxygen))); + ui.ostcGasTable->setItem(0,2, new QTableWidgetItem(QString::number(deviceDetails->gas1().helium))); + ui.ostcGasTable->setItem(0,3, new QTableWidgetItem(QString::number(deviceDetails->gas1().type))); + ui.ostcGasTable->setItem(0,4, new QTableWidgetItem(QString::number(deviceDetails->gas1().depth))); + + //load gas 2 values + ui.ostcGasTable->setItem(1,1, new QTableWidgetItem(QString::number(deviceDetails->gas2().oxygen))); + ui.ostcGasTable->setItem(1,2, new QTableWidgetItem(QString::number(deviceDetails->gas2().helium))); + ui.ostcGasTable->setItem(1,3, new QTableWidgetItem(QString::number(deviceDetails->gas2().type))); + ui.ostcGasTable->setItem(1,4, new QTableWidgetItem(QString::number(deviceDetails->gas2().depth))); + + //load gas 3 values + ui.ostcGasTable->setItem(2,1, new QTableWidgetItem(QString::number(deviceDetails->gas3().oxygen))); + ui.ostcGasTable->setItem(2,2, new QTableWidgetItem(QString::number(deviceDetails->gas3().helium))); + ui.ostcGasTable->setItem(2,3, new QTableWidgetItem(QString::number(deviceDetails->gas3().type))); + ui.ostcGasTable->setItem(2,4, new QTableWidgetItem(QString::number(deviceDetails->gas3().depth))); + + //load gas 4 values + ui.ostcGasTable->setItem(3,1, new QTableWidgetItem(QString::number(deviceDetails->gas4().oxygen))); + ui.ostcGasTable->setItem(3,2, new QTableWidgetItem(QString::number(deviceDetails->gas4().helium))); + ui.ostcGasTable->setItem(3,3, new QTableWidgetItem(QString::number(deviceDetails->gas4().type))); + ui.ostcGasTable->setItem(3,4, new QTableWidgetItem(QString::number(deviceDetails->gas4().depth))); + + //load gas 5 values + ui.ostcGasTable->setItem(4,1, new QTableWidgetItem(QString::number(deviceDetails->gas5().oxygen))); + ui.ostcGasTable->setItem(4,2, new QTableWidgetItem(QString::number(deviceDetails->gas5().helium))); + ui.ostcGasTable->setItem(4,3, new QTableWidgetItem(QString::number(deviceDetails->gas5().type))); + ui.ostcGasTable->setItem(4,4, new QTableWidgetItem(QString::number(deviceDetails->gas5().depth))); + + //load dil 1 values + ui.ostcDilTable->setItem(0,1, new QTableWidgetItem(QString::number(deviceDetails->dil1().oxygen))); + ui.ostcDilTable->setItem(0,2, new QTableWidgetItem(QString::number(deviceDetails->dil1().helium))); + ui.ostcDilTable->setItem(0,3, new QTableWidgetItem(QString::number(deviceDetails->dil1().type))); + ui.ostcDilTable->setItem(0,4, new QTableWidgetItem(QString::number(deviceDetails->dil1().depth))); + + //load dil 2 values + ui.ostcDilTable->setItem(1,1, new QTableWidgetItem(QString::number(deviceDetails->dil2().oxygen))); + ui.ostcDilTable->setItem(1,2, new QTableWidgetItem(QString::number(deviceDetails->dil2().helium))); + ui.ostcDilTable->setItem(1,3, new QTableWidgetItem(QString::number(deviceDetails->dil2().type))); + ui.ostcDilTable->setItem(1,4, new QTableWidgetItem(QString::number(deviceDetails->dil2().depth))); + + //load dil 3 values + ui.ostcDilTable->setItem(2,1, new QTableWidgetItem(QString::number(deviceDetails->dil3().oxygen))); + ui.ostcDilTable->setItem(2,2, new QTableWidgetItem(QString::number(deviceDetails->dil3().helium))); + ui.ostcDilTable->setItem(2,3, new QTableWidgetItem(QString::number(deviceDetails->dil3().type))); + ui.ostcDilTable->setItem(2,4, new QTableWidgetItem(QString::number(deviceDetails->dil3().depth))); + + //load dil 4 values + ui.ostcDilTable->setItem(3,1, new QTableWidgetItem(QString::number(deviceDetails->dil4().oxygen))); + ui.ostcDilTable->setItem(3,2, new QTableWidgetItem(QString::number(deviceDetails->dil4().helium))); + ui.ostcDilTable->setItem(3,3, new QTableWidgetItem(QString::number(deviceDetails->dil4().type))); + ui.ostcDilTable->setItem(3,4, new QTableWidgetItem(QString::number(deviceDetails->dil4().depth))); + + //load dil 5 values + ui.ostcDilTable->setItem(4,1, new QTableWidgetItem(QString::number(deviceDetails->dil5().oxygen))); + ui.ostcDilTable->setItem(4,2, new QTableWidgetItem(QString::number(deviceDetails->dil5().helium))); + ui.ostcDilTable->setItem(4,3, new QTableWidgetItem(QString::number(deviceDetails->dil5().type))); + ui.ostcDilTable->setItem(4,4, new QTableWidgetItem(QString::number(deviceDetails->dil5().depth))); + + //load set point 1 values + ui.ostcSetPointTable->setItem(0, 1, new QTableWidgetItem(QString::number(deviceDetails->sp1().sp))); + ui.ostcSetPointTable->setItem(0, 2, new QTableWidgetItem(QString::number(deviceDetails->sp1().depth))); + + //load set point 2 values + ui.ostcSetPointTable->setItem(1, 1, new QTableWidgetItem(QString::number(deviceDetails->sp2().sp))); + ui.ostcSetPointTable->setItem(1, 2, new QTableWidgetItem(QString::number(deviceDetails->sp2().depth))); + + //load set point 3 values + ui.ostcSetPointTable->setItem(2, 1, new QTableWidgetItem(QString::number(deviceDetails->sp3().sp))); + ui.ostcSetPointTable->setItem(2, 2, new QTableWidgetItem(QString::number(deviceDetails->sp3().depth))); + + //load set point 4 values + ui.ostcSetPointTable->setItem(3, 1, new QTableWidgetItem(QString::number(deviceDetails->sp4().sp))); + ui.ostcSetPointTable->setItem(3, 2, new QTableWidgetItem(QString::number(deviceDetails->sp4().depth))); + + //load set point 5 values + ui.ostcSetPointTable->setItem(4, 1, new QTableWidgetItem(QString::number(deviceDetails->sp5().sp))); + ui.ostcSetPointTable->setItem(4, 2, new QTableWidgetItem(QString::number(deviceDetails->sp5().depth))); +} + void ConfigureDiveComputerDialog::reloadValuesSuuntoVyper() { const char *depth_unit; diff --git a/qt-ui/configuredivecomputerdialog.h b/qt-ui/configuredivecomputerdialog.h index 27fe11a11..941feaa64 100644 --- a/qt-ui/configuredivecomputerdialog.h +++ b/qt-ui/configuredivecomputerdialog.h @@ -51,8 +51,10 @@ private: DeviceDetails *deviceDetails; void populateDeviceDetails(); void populateDeviceDetailsOSTC3(); + void populateDeviceDetailsOSTC(); void populateDeviceDetailsSuuntoVyper(); void reloadValuesOSTC3(); + void reloadValuesOSTC(); void reloadValuesSuuntoVyper(); QString selected_vendor; diff --git a/qt-ui/configuredivecomputerdialog.ui b/qt-ui/configuredivecomputerdialog.ui index 6325db863..fc45ff99b 100644 --- a/qt-ui/configuredivecomputerdialog.ui +++ b/qt-ui/configuredivecomputerdialog.ui @@ -504,7 +504,7 @@ </widget> </item> <item row="8" column="2"> - <spacer name="verticalSpacer"> + <spacer name="verticalSpacer1"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> @@ -604,7 +604,7 @@ <attribute name="title"> <string>Advanced Settings</string> </attribute> - <layout class="QGridLayout" name="gridLayout_1"> + <layout class="QGridLayout" name="gridLayout1"> <item row="3" column="0" colspan="2"> <widget class="QCheckBox" name="aGFSelectableCheckBox"> <property name="text"> @@ -1617,6 +1617,1009 @@ <attribute name="title"> <string>Basic settings</string> </attribute> + <layout class="QGridLayout" name="gridLayout_3"> + <item row="0" column="0"> + <widget class="QLabel" name="label_38"> + <property name="text"> + <string>Serial No.</string> + </property> + <property name="buddy"> + <cstring>serialNoLineEdit</cstring> + </property> + </widget> + </item> + <item row="0" column="1" colspan="2"> + <widget class="QLineEdit" name="serialNoLineEdit_3"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>1</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="0" column="3"> + <widget class="QLabel" name="label_39"> + <property name="text"> + <string>Firmware version</string> + </property> + <property name="buddy"> + <cstring>firmwareVersionLineEdit_3</cstring> + </property> + </widget> + </item> + <item row="0" column="4"> + <widget class="QLineEdit" name="firmwareVersionLineEdit_3"> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="label_40"> + <property name="text"> + <string>Custom text</string> + </property> + <property name="buddy"> + <cstring>customTextLlineEdit_3</cstring> + </property> + </widget> + </item> + <item row="1" column="1" colspan="2"> + <widget class="QLineEdit" name="customTextLlineEdit_3"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>1</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="1" column="3"> + <widget class="QLabel" name="label_41"> + <property name="text"> + <string>Language</string> + </property> + <property name="buddy"> + <cstring>languageComboBox</cstring> + </property> + </widget> + </item> + <item row="1" column="4"> + <widget class="QComboBox" name="languageComboBox_3"> + <item> + <property name="text"> + <string>English</string> + </property> + </item> + <item> + <property name="text"> + <string>German</string> + </property> + </item> + <item> + <property name="text"> + <string>French</string> + </property> + </item> + <item> + <property name="text"> + <string>Italian</string> + </property> + </item> + </widget> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="label"> + <property name="text"> + <string>Dive mode</string> + </property> + <property name="buddy"> + <cstring>diveModeComboBox</cstring> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QComboBox" name="diveModeComboBox_3"> + <item> + <property name="text"> + <string>OC</string> + </property> + </item> + <item> + <property name="text"> + <string>CC</string> + </property> + </item> + <item> + <property name="text"> + <string>Gauge</string> + </property> + </item> + <item> + <property name="text"> + <string>Apnea</string> + </property> + </item> + </widget> + </item> + <item row="2" column="3"> + <widget class="QLabel" name="label_42"> + <property name="text"> + <string>Date format</string> + </property> + <property name="buddy"> + <cstring>dateFormatComboBox</cstring> + </property> + </widget> + </item> + <item row="2" column="4"> + <widget class="QComboBox" name="dateFormatComboBox_3"> + <item> + <property name="text"> + <string>MMDDYY</string> + </property> + </item> + <item> + <property name="text"> + <string>DDMMYY</string> + </property> + </item> + <item> + <property name="text"> + <string>YYMMDD</string> + </property> + </item> + </widget> + </item> + <item row="4" column="3"> + <widget class="QLabel" name="label_43"> + <property name="text"> + <string>Brightness</string> + </property> + <property name="buddy"> + <cstring>brightnessComboBox</cstring> + </property> + </widget> + </item> + <item row="4" column="4"> + <widget class="QComboBox" name="brightnessComboBox_3"> + <item> + <property name="text"> + <string>Eco</string> + </property> + </item> + <item> + <property name="text"> + <string>Medium</string> + </property> + </item> + <item> + <property name="text"> + <string>High</string> + </property> + </item> + </widget> + </item> + <item row="5" column="3"> + <widget class="QLabel" name="label_44"> + <property name="text"> + <string>Units</string> + </property> + <property name="buddy"> + <cstring>unitsComboBox</cstring> + </property> + </widget> + </item> + <item row="5" column="4"> + <widget class="QComboBox" name="unitsComboBox_3"> + <item> + <property name="text"> + <string>m/°C</string> + </property> + </item> + <item> + <property name="text"> + <string>ft/°F</string> + </property> + </item> + </widget> + </item> + <item row="6" column="3"> + <widget class="QLabel" name="label_45"> + <property name="text"> + <string>Salinity (0-5%)</string> + </property> + <property name="buddy"> + <cstring>salinitySpinBox</cstring> + </property> + </widget> + </item> + <item row="6" column="4"> + <widget class="QSpinBox" name="salinitySpinBox_3"> + <property name="suffix"> + <string>%</string> + </property> + <property name="maximum"> + <number>5</number> + </property> + </widget> + </item> + <item row="7" column="3"> + <widget class="QLabel" name="label_46"> + <property name="text"> + <string>Compass gain</string> + </property> + <property name="buddy"> + <cstring>compassGainComboBox</cstring> + </property> + </widget> + </item> + <item row="7" column="4"> + <widget class="QComboBox" name="compassGainComboBox_3"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>1</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <item> + <property name="text"> + <string>230LSB/Gauss</string> + </property> + </item> + <item> + <property name="text"> + <string>330LSB/Gauss</string> + </property> + </item> + <item> + <property name="text"> + <string>390LSB/Gauss</string> + </property> + </item> + <item> + <property name="text"> + <string>440LSB/Gauss</string> + </property> + </item> + <item> + <property name="text"> + <string>660LSB/Gauss</string> + </property> + </item> + <item> + <property name="text"> + <string>820LSB/Gauss</string> + </property> + </item> + <item> + <property name="text"> + <string>1090LSB/Gauss</string> + </property> + </item> + <item> + <property name="text"> + <string>1370LSB/Gauss</string> + </property> + </item> + </widget> + </item> + <item row="8" column="2"> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>177</height> + </size> + </property> + </spacer> + </item> + <item row="4" column="0"> + <widget class="QLabel" name="label_47"> + <property name="text"> + <string>Sampling rate</string> + </property> + <property name="buddy"> + <cstring>samplingRateComboBox</cstring> + </property> + </widget> + </item> + <item row="4" column="1"> + <widget class="QComboBox" name="samplingRateComboBox_3"> + <item> + <property name="text"> + <string>2s</string> + </property> + </item> + <item> + <property name="text"> + <string>10s</string> + </property> + </item> + </widget> + </item> + <item row="5" column="0"> + <widget class="QLabel" name="label_48"> + <property name="text"> + <string>Dive mode color</string> + </property> + <property name="buddy"> + <cstring>diveModeColour_3</cstring> + </property> + </widget> + </item> + <item row="5" column="1"> + <widget class="QComboBox" name="diveModeColour_3"> + <item> + <property name="text"> + <string>Standard</string> + </property> + </item> + <item> + <property name="text"> + <string>Red</string> + </property> + </item> + <item> + <property name="text"> + <string>Green</string> + </property> + </item> + <item> + <property name="text"> + <string>Blue</string> + </property> + </item> + </widget> + </item> + <item row="6" column="0" colspan="3"> + <widget class="QCheckBox" name="dateTimeSyncCheckBox_3"> + <property name="text"> + <string>Sync dive computer time with PC</string> + </property> + </widget> + </item> + <item row="7" column="0" colspan="3"> + <widget class="QCheckBox" name="safetyStopCheckBox_3"> + <property name="text"> + <string>Show safety stop</string> + </property> + </widget> + </item> + </layout> + </widget> + <widget class="QWidget" name="advancedSettings_3"> + <attribute name="title"> + <string>Advanced Settings</string> + </attribute> + <layout class="QGridLayout" name="gridLayout_4"> + <item row="3" column="0" colspan="2"> + <widget class="QCheckBox" name="aGFSelectableCheckBox_3"> + <property name="text"> + <string>Alt GF can be selected underwater</string> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="label_49"> + <property name="text"> + <string>Future TTS</string> + </property> + </widget> + </item> + <item row="0" column="3"> + <widget class="QLabel" name="label_50"> + <property name="text"> + <string>Pressure sensor offset</string> + </property> + </widget> + </item> + <item row="1" column="3"> + <widget class="QLabel" name="label_51"> + <property name="text"> + <string>GFLow</string> + </property> + </widget> + </item> + <item row="1" column="4"> + <widget class="QSpinBox" name="gfLowSpinBox_3"> + <property name="suffix"> + <string>%</string> + </property> + <property name="minimum"> + <number>10</number> + </property> + <property name="maximum"> + <number>100</number> + </property> + <property name="value"> + <number>30</number> + </property> + </widget> + </item> + <item row="2" column="3"> + <widget class="QLabel" name="label_52"> + <property name="text"> + <string>GFHigh</string> + </property> + </widget> + </item> + <item row="2" column="4"> + <widget class="QSpinBox" name="gfHighSpinBox_3"> + <property name="suffix"> + <string>%</string> + </property> + <property name="minimum"> + <number>60</number> + </property> + <property name="maximum"> + <number>110</number> + </property> + <property name="value"> + <number>85</number> + </property> + </widget> + </item> + <item row="9" column="3"> + <widget class="QLabel" name="label_53"> + <property name="text"> + <string>Desaturation</string> + </property> + <property name="buddy"> + <cstring>desaturationSpinBox</cstring> + </property> + </widget> + </item> + <item row="9" column="4"> + <widget class="QSpinBox" name="desaturationSpinBox_3"> + <property name="suffix"> + <string>%</string> + </property> + <property name="minimum"> + <number>60</number> + </property> + <property name="maximum"> + <number>100</number> + </property> + <property name="value"> + <number>90</number> + </property> + </widget> + </item> + <item row="13" column="0"> + <spacer name="verticalSpacer_6"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item row="2" column="1"> + <widget class="QSpinBox" name="lastDecoSpinBox_3"> + <property name="suffix"> + <string> m</string> + </property> + <property name="minimum"> + <number>3</number> + </property> + <property name="maximum"> + <number>6</number> + </property> + </widget> + </item> + <item row="0" column="0"> + <widget class="QLabel" name="label_54"> + <property name="text"> + <string>Decotype</string> + </property> + </widget> + </item> + <item row="3" column="4"> + <widget class="QSpinBox" name="aGFLowSpinBox_3"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="suffix"> + <string>%</string> + </property> + <property name="minimum"> + <number>60</number> + </property> + <property name="maximum"> + <number>100</number> + </property> + <property name="value"> + <number>60</number> + </property> + </widget> + </item> + <item row="0" column="4"> + <widget class="QSpinBox" name="pressureSensorOffsetSpinBox_3"> + <property name="suffix"> + <string> mbar</string> + </property> + <property name="minimum"> + <number>-20</number> + </property> + <property name="maximum"> + <number>20</number> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QSpinBox" name="futureTTSSpinBox_3"> + <property name="suffix"> + <string> min</string> + </property> + <property name="maximum"> + <number>9</number> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QComboBox" name="decoTypeComboBox_3"> + <property name="currentIndex"> + <number>1</number> + </property> + <item> + <property name="text"> + <string>ZH-L16</string> + </property> + </item> + <item> + <property name="text"> + <string>ZH-L16+GF</string> + </property> + </item> + </widget> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="label_55"> + <property name="text"> + <string>Last deco</string> + </property> + <property name="buddy"> + <cstring>lastDecoSpinBox</cstring> + </property> + </widget> + </item> + <item row="8" column="4"> + <widget class="QSpinBox" name="saturationSpinBox_3"> + <property name="suffix"> + <string>%</string> + </property> + <property name="minimum"> + <number>100</number> + </property> + <property name="maximum"> + <number>140</number> + </property> + <property name="value"> + <number>110</number> + </property> + </widget> + </item> + <item row="6" column="4"> + <widget class="QSpinBox" name="aGFHighSpinBox_3"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="suffix"> + <string>%</string> + </property> + <property name="minimum"> + <number>70</number> + </property> + <property name="maximum"> + <number>120</number> + </property> + <property name="value"> + <number>85</number> + </property> + </widget> + </item> + <item row="8" column="3"> + <widget class="QLabel" name="label_56"> + <property name="text"> + <string>Saturation</string> + </property> + <property name="buddy"> + <cstring>saturationSpinBox</cstring> + </property> + </widget> + </item> + <item row="3" column="3"> + <widget class="QLabel" name="label_57"> + <property name="text"> + <string>Alt GFLow</string> + </property> + </widget> + </item> + <item row="6" column="3"> + <widget class="QLabel" name="label_58"> + <property name="text"> + <string>Alt GFHigh</string> + </property> + </widget> + </item> + <item row="8" column="0"> + <widget class="QCheckBox" name="flipScreenCheckBox_3"> + <property name="text"> + <string>Flip screen</string> + </property> + </widget> + </item> + </layout> + </widget> + <widget class="QWidget" name="gasSettings_3"> + <attribute name="title"> + <string>Gas settings</string> + </attribute> + <layout class="QGridLayout" name="gridLayout_5"> + <item row="0" column="0" colspan="2"> + <widget class="QTableWidget" name="ostcGasTable"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <row> + <property name="text"> + <string/> + </property> + </row> + <row> + <property name="text"> + <string/> + </property> + </row> + <row> + <property name="text"> + <string/> + </property> + </row> + <row> + <property name="text"> + <string/> + </property> + </row> + <row> + <property name="text"> + <string/> + </property> + </row> + <column> + <property name="text"> + <string/> + </property> + </column> + <column> + <property name="text"> + <string>%O2</string> + </property> + </column> + <column> + <property name="text"> + <string>%He</string> + </property> + </column> + <column> + <property name="text"> + <string>Type</string> + </property> + </column> + <column> + <property name="text"> + <string>Change depth</string> + </property> + </column> + <item row="0" column="0"> + <property name="text"> + <string>Gas 1</string> + </property> + </item> + <item row="1" column="0"> + <property name="text"> + <string>Gas 2</string> + </property> + </item> + <item row="2" column="0"> + <property name="text"> + <string>Gas 3</string> + </property> + </item> + <item row="3" column="0"> + <property name="text"> + <string>Gas 4</string> + </property> + </item> + <item row="4" column="0"> + <property name="text"> + <string>Gas 5</string> + </property> + </item> + </widget> + </item> + <item row="0" column="2" colspan="2"> + <widget class="QTableWidget" name="ostcDilTable"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <row> + <property name="text"> + <string/> + </property> + </row> + <row> + <property name="text"> + <string/> + </property> + </row> + <row> + <property name="text"> + <string/> + </property> + </row> + <row> + <property name="text"> + <string/> + </property> + </row> + <row> + <property name="text"> + <string/> + </property> + </row> + <column> + <property name="text"> + <string/> + </property> + </column> + <column> + <property name="text"> + <string>%O2</string> + </property> + </column> + <column> + <property name="text"> + <string>%He</string> + </property> + </column> + <column> + <property name="text"> + <string>Type</string> + </property> + </column> + <column> + <property name="text"> + <string>Change depth</string> + </property> + </column> + <item row="0" column="0"> + <property name="text"> + <string>Dil 1</string> + </property> + </item> + <item row="1" column="0"> + <property name="text"> + <string>Dil 2</string> + </property> + </item> + <item row="2" column="0"> + <property name="text"> + <string>Dil 3</string> + </property> + </item> + <item row="3" column="0"> + <property name="text"> + <string>Dil 4</string> + </property> + </item> + <item row="4" column="0"> + <property name="text"> + <string>Dil 5</string> + </property> + </item> + </widget> + </item> + <item row="2" column="0" rowspan="5" colspan="2"> + <widget class="QTableWidget" name="ostcSetPointTable"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <row> + <property name="text"> + <string/> + </property> + </row> + <row> + <property name="text"> + <string/> + </property> + </row> + <row> + <property name="text"> + <string/> + </property> + </row> + <row> + <property name="text"> + <string/> + </property> + </row> + <row> + <property name="text"> + <string/> + </property> + </row> + <column> + <property name="text"> + <string/> + </property> + </column> + <column> + <property name="text"> + <string>Set point [cbar]</string> + </property> + </column> + <column> + <property name="text"> + <string>Change depth [m]</string> + </property> + </column> + <item row="0" column="0"> + <property name="text"> + <string>SP 1</string> + </property> + </item> + <item row="1" column="0"> + <property name="text"> + <string>SP 2</string> + </property> + </item> + <item row="2" column="0"> + <property name="text"> + <string>SP 3</string> + </property> + </item> + <item row="3" column="0"> + <property name="text"> + <string>SP 4</string> + </property> + </item> + <item row="4" column="0"> + <property name="text"> + <string>SP 5</string> + </property> + </item> + </widget> + </item> + <item row="2" column="2"> + <widget class="QLabel" name="label_59"> + <property name="text"> + <string>O2 in calibration gas</string> + </property> + </widget> + </item> + <item row="2" column="3"> + <widget class="QSpinBox" name="calibrationGasSpinBox_3"> + <property name="suffix"> + <string>%</string> + </property> + <property name="minimum"> + <number>21</number> + </property> + <property name="maximum"> + <number>100</number> + </property> + <property name="value"> + <number>21</number> + </property> + </widget> + </item> + <item row="3" column="2"> + <widget class="QComboBox" name="ccrModeComboBox_3"> + <item> + <property name="text"> + <string>Fixed setpoint</string> + </property> + </item> + <item> + <property name="text"> + <string>Sensor</string> + </property> + </item> + </widget> + </item> + <item row="3" column="3"> + <widget class="QCheckBox" name="setPointFallbackCheckBox_3"> + <property name="text"> + <string>Setpoint fallback</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="6" column="2"> + <spacer name="verticalSpacer_5"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item row="4" column="3"> + <widget class="QSpinBox" name="ppO2MaxSpinBox_3"> + <property name="suffix"> + <string> cbar</string> + </property> + <property name="minimum"> + <number>120</number> + </property> + <property name="maximum"> + <number>160</number> + </property> + <property name="value"> + <number>160</number> + </property> + </widget> + </item> + <item row="5" column="3"> + <widget class="QSpinBox" name="ppO2MinSpinBox_3"> + <property name="suffix"> + <string> cbar</string> + </property> + <property name="minimum"> + <number>16</number> + </property> + <property name="maximum"> + <number>19</number> + </property> + <property name="value"> + <number>19</number> + </property> + </widget> + </item> + <item row="4" column="2"> + <widget class="QLabel" name="label_60"> + <property name="text"> + <string>ppO2 max</string> + </property> + </widget> + </item> + <item row="5" column="2"> + <widget class="QLabel" name="label_61"> + <property name="text"> + <string>ppO2 min</string> + </property> + </widget> + </item> + </layout> </widget> </widget> </item> @@ -1753,5 +2756,37 @@ </hint> </hints> </connection> + <connection> + <sender>aGFSelectableCheckBox_3</sender> + <signal>toggled(bool)</signal> + <receiver>aGFHighSpinBox_3</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>340</x> + <y>229</y> + </hint> + <hint type="destinationlabel"> + <x>686</x> + <y>265</y> + </hint> + </hints> + </connection> + <connection> + <sender>aGFSelectableCheckBox_3</sender> + <signal>toggled(bool)</signal> + <receiver>aGFLowSpinBox_3</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>340</x> + <y>229</y> + </hint> + <hint type="destinationlabel"> + <x>686</x> + <y>229</y> + </hint> + </hints> + </connection> </connections> </ui> |