From 37953d163efd7741bb328b23952df97b01f65a55 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Thu, 3 Sep 2015 00:00:00 +0200 Subject: Enable the configuration of more OSTC3 settings This enables enables you to configure a couple of new settings in the OSTC3 devices. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- configuredivecomputer.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'configuredivecomputer.cpp') diff --git a/configuredivecomputer.cpp b/configuredivecomputer.cpp index 0d61ff44f..65cf3ce72 100644 --- a/configuredivecomputer.cpp +++ b/configuredivecomputer.cpp @@ -182,6 +182,14 @@ bool ConfigureDiveComputer::saveXMLBackup(QString fileName, DeviceDetails *detai writer.writeTextElement("CalibrationGas", QString::number(details->calibrationGas)); writer.writeTextElement("FlipScreen", QString::number(details->flipScreen)); writer.writeTextElement("SetPointFallback", QString::number(details->setPointFallback)); + writer.writeTextElement("LeftButtonSensitivity", QString::number(details->leftButtonSensitivity)); + writer.writeTextElement("RightButtonSensitivity", QString::number(details->rightButtonSensitivity)); + writer.writeTextElement("BottomGasConsumption", QString::number(details->bottomGasConsumption)); + writer.writeTextElement("DecoGasConsumption", QString::number(details->decoGasConsumption)); + writer.writeTextElement("ModWarning", QString::number(details->modWarning)); + writer.writeTextElement("DynamicAscendRate", QString::number(details->dynamicAscendRate)); + writer.writeTextElement("GraphicalSpeedIndicator", QString::number(details->graphicalSpeedIndicator)); + writer.writeTextElement("AlwaysShowppO2", QString::number(details->alwaysShowppO2)); // Suunto vyper settings. writer.writeTextElement("Altitude", QString::number(details->altitude)); @@ -463,6 +471,30 @@ bool ConfigureDiveComputer::restoreXMLBackup(QString fileName, DeviceDetails *de if (settingName == "SetPointFallback") details->setPointFallback = keyString.toInt(); + if (settingName == "LeftButtonSensitivity") + details->leftButtonSensitivity = keyString.toInt(); + + if (settingName == "RightButtonSensitivity") + details->rightButtonSensitivity = keyString.toInt(); + + if (settingName == "BottomGasConsumption") + details->bottomGasConsumption = keyString.toInt(); + + if (settingName == "DecoGasConsumption") + details->decoGasConsumption = keyString.toInt(); + + if (settingName == "ModWarning") + details->modWarning = keyString.toInt(); + + if (settingName == "DynamicAscendRate") + details->dynamicAscendRate = keyString.toInt(); + + if (settingName == "GraphicalSpeedIndicator") + details->graphicalSpeedIndicator = keyString.toInt(); + + if (settingName == "AlwaysShowppO2") + details->alwaysShowppO2 = keyString.toInt(); + if (settingName == "Altitude") details->altitude = keyString.toInt(); -- cgit v1.2.3-70-g09d2