summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2017-04-26 20:49:12 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-04 10:50:15 -0700
commit4cbf64bf99c7b47a9368f9f03399164b397c2ec8 (patch)
tree9745e798408aa5bf8df8ed0db73ffc24e51ed8d0 /desktop-widgets
parent0c276403ac1b080829b2169d84d42ebdbff2f875 (diff)
downloadsubsurface-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')
-rw-r--r--desktop-widgets/configuredivecomputerdialog.cpp18
-rw-r--r--desktop-widgets/configuredivecomputerdialog.h2
2 files changed, 20 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;
diff --git a/desktop-widgets/configuredivecomputerdialog.h b/desktop-widgets/configuredivecomputerdialog.h
index 7daea3b11..d111b39a6 100644
--- a/desktop-widgets/configuredivecomputerdialog.h
+++ b/desktop-widgets/configuredivecomputerdialog.h
@@ -114,9 +114,11 @@ private:
void populateDeviceDetailsOSTC3();
void populateDeviceDetailsOSTC();
void populateDeviceDetailsSuuntoVyper();
+ void populateDeviceDetailsOSTC4();
void reloadValuesOSTC3();
void reloadValuesOSTC();
void reloadValuesSuuntoVyper();
+ void reloadValuesOSTC4();
QString selected_vendor;
QString selected_product;