diff options
author | Anton Lundin <glance@acc.umu.se> | 2017-04-26 20:49:12 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-04 10:50:15 -0700 |
commit | 4cbf64bf99c7b47a9368f9f03399164b397c2ec8 (patch) | |
tree | 9745e798408aa5bf8df8ed0db73ffc24e51ed8d0 /desktop-widgets/configuredivecomputerdialog.cpp | |
parent | 0c276403ac1b080829b2169d84d42ebdbff2f875 (diff) | |
download | subsurface-4cbf64bf99c7b47a9368f9f03399164b397c2ec8.tar.gz |
Wire up a skeleton for configure OSTC 4
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Diffstat (limited to 'desktop-widgets/configuredivecomputerdialog.cpp')
-rw-r--r-- | desktop-widgets/configuredivecomputerdialog.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/desktop-widgets/configuredivecomputerdialog.cpp b/desktop-widgets/configuredivecomputerdialog.cpp index ac1998dca..57f4451e7 100644 --- a/desktop-widgets/configuredivecomputerdialog.cpp +++ b/desktop-widgets/configuredivecomputerdialog.cpp @@ -480,6 +480,9 @@ void ConfigureDiveComputerDialog::populateDeviceDetails() case 2: populateDeviceDetailsOSTC(); break; + case 3: + populateDeviceDetailsOSTC4(); + break; } } @@ -785,6 +788,10 @@ void ConfigureDiveComputerDialog::populateDeviceDetailsSuuntoVyper() deviceDetails->alarmTime = ui.alarmTimeSpinBox->value(); } +void ConfigureDiveComputerDialog::populateDeviceDetailsOSTC4() +{ +} + void ConfigureDiveComputerDialog::readSettings() { ui.progressBar->setValue(0); @@ -865,6 +872,9 @@ void ConfigureDiveComputerDialog::reloadValues() case 2: reloadValuesOSTC(); break; + case 3: + reloadValuesOSTC4(); + break; } } @@ -1149,6 +1159,10 @@ void ConfigureDiveComputerDialog::reloadValuesSuuntoVyper() ui.alarmTimeSpinBox->setValue(deviceDetails->alarmTime); } +void ConfigureDiveComputerDialog::reloadValuesOSTC4() +{ +} + void ConfigureDiveComputerDialog::on_backupButton_clicked() { QString filename = existing_filename ?: prefs.default_filename; @@ -1227,6 +1241,10 @@ void ConfigureDiveComputerDialog::on_DiveComputerList_currentRowChanged(int curr selected_product = "OSTC 2N"; fw_upgrade_possible = true; break; + case 3: + selected_vendor = "Heinrichs Weikamp"; + selected_product = "OSTC 4"; + fw_upgrade_possible = true; default: /* Not Supported */ return; |