mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
37953d163e
commit
9212458f23
3 changed files with 118 additions and 47 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue