mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Wire up a skeleton for configure OSTC 4
Signed-off-by: Anton Lundin <glance@acc.umu.se>
This commit is contained in:
parent
0c276403ac
commit
4cbf64bf99
3 changed files with 56 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue