[PATCH 06/13] Add a more settings to the OSTC3 settings

Anton Lundin glance at acc.umu.se
Fri Oct 17 15:33:40 PDT 2014


This adds the settings not previously available in the OSTC3 settings.

Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 qt-ui/configuredivecomputerdialog.ui | 268 +++++++++++++++++++++++++++++++----
 1 file changed, 243 insertions(+), 25 deletions(-)

diff --git a/qt-ui/configuredivecomputerdialog.ui b/qt-ui/configuredivecomputerdialog.ui
index 2cf1063..cb192e1 100644
--- a/qt-ui/configuredivecomputerdialog.ui
+++ b/qt-ui/configuredivecomputerdialog.ui
@@ -565,6 +565,13 @@
               </property>
              </widget>
             </item>
+            <item row="7" column="0" colspan="3">
+             <widget class="QCheckBox" name="safetyStopCheckBox">
+              <property name="text">
+               <string>Show safety stop</string>
+              </property>
+             </widget>
+            </item>
            </layout>
           </widget>
           <widget class="QWidget" name="advancedSettings">
@@ -572,33 +579,74 @@
             <string>Advanced Settings</string>
            </attribute>
            <layout class="QGridLayout" name="gridLayout_1">
-            <item row="3" column="0">
-             <widget class="QLabel" name="label_7">
+            <item row="3" column="0" colspan="2">
+             <widget class="QCheckBox" name="aGFSelectableCheckBox">
               <property name="text">
-               <string>Saturation</string>
+               <string>Alt GF can be selected underwater</string>
               </property>
-              <property name="buddy">
-               <cstring>saturationSpinBox</cstring>
+             </widget>
+            </item>
+            <item row="1" column="0">
+             <widget class="QLabel" name="label_31">
+              <property name="text">
+               <string>Future TTS</string>
               </property>
              </widget>
             </item>
-            <item row="3" column="1">
-             <widget class="QSpinBox" name="saturationSpinBox">
+            <item row="0" column="3">
+             <widget class="QLabel" name="label_34">
+              <property name="text">
+               <string>Pressure sensor offset</string>
+              </property>
+             </widget>
+            </item>
+            <item row="1" column="3">
+             <widget class="QLabel" name="label_32">
+              <property name="text">
+               <string>GFLow</string>
+              </property>
+             </widget>
+            </item>
+            <item row="1" column="4">
+             <widget class="QSpinBox" name="gfLowSpinBox">
               <property name="suffix">
                <string>%</string>
               </property>
               <property name="minimum">
-               <number>100</number>
+               <number>10</number>
               </property>
               <property name="maximum">
-               <number>140</number>
+               <number>100</number>
               </property>
               <property name="value">
+               <number>30</number>
+              </property>
+             </widget>
+            </item>
+            <item row="2" column="3">
+             <widget class="QLabel" name="label_33">
+              <property name="text">
+               <string>GFHigh</string>
+              </property>
+             </widget>
+            </item>
+            <item row="2" column="4">
+             <widget class="QSpinBox" name="gfHighSpinBox">
+              <property name="suffix">
+               <string>%</string>
+              </property>
+              <property name="minimum">
+               <number>60</number>
+              </property>
+              <property name="maximum">
                <number>110</number>
               </property>
+              <property name="value">
+               <number>85</number>
+              </property>
              </widget>
             </item>
-            <item row="3" column="3">
+            <item row="9" column="3">
              <widget class="QLabel" name="label_8">
               <property name="text">
                <string>Desaturation</string>
@@ -608,7 +656,7 @@
               </property>
              </widget>
             </item>
-            <item row="3" column="4">
+            <item row="9" column="4">
              <widget class="QSpinBox" name="desaturationSpinBox">
               <property name="suffix">
                <string>%</string>
@@ -624,7 +672,99 @@
               </property>
              </widget>
             </item>
-            <item row="4" column="0">
+            <item row="13" column="0">
+             <spacer name="verticalSpacer_4">
+              <property name="orientation">
+               <enum>Qt::Vertical</enum>
+              </property>
+              <property name="sizeHint" stdset="0">
+               <size>
+                <width>20</width>
+                <height>40</height>
+               </size>
+              </property>
+             </spacer>
+            </item>
+            <item row="2" column="1">
+             <widget class="QSpinBox" name="lastDecoSpinBox">
+              <property name="suffix">
+               <string> m</string>
+              </property>
+              <property name="minimum">
+               <number>3</number>
+              </property>
+              <property name="maximum">
+               <number>6</number>
+              </property>
+             </widget>
+            </item>
+            <item row="0" column="0">
+             <widget class="QLabel" name="label_28">
+              <property name="text">
+               <string>Decotype</string>
+              </property>
+             </widget>
+            </item>
+            <item row="3" column="4">
+             <widget class="QSpinBox" name="aGFLowSpinBox">
+              <property name="enabled">
+               <bool>false</bool>
+              </property>
+              <property name="suffix">
+               <string>%</string>
+              </property>
+              <property name="minimum">
+               <number>60</number>
+              </property>
+              <property name="maximum">
+               <number>100</number>
+              </property>
+              <property name="value">
+               <number>60</number>
+              </property>
+             </widget>
+            </item>
+            <item row="0" column="4">
+             <widget class="QSpinBox" name="pressureSensorOffsetSpinBox">
+              <property name="suffix">
+               <string> mbar</string>
+              </property>
+              <property name="minimum">
+               <number>-20</number>
+              </property>
+              <property name="maximum">
+               <number>20</number>
+              </property>
+             </widget>
+            </item>
+            <item row="1" column="1">
+             <widget class="QSpinBox" name="futureTTSSpinBox">
+              <property name="suffix">
+               <string> min</string>
+              </property>
+              <property name="maximum">
+               <number>9</number>
+              </property>
+             </widget>
+            </item>
+            <item row="0" column="1">
+             <widget class="QComboBox" name="decoTypeComboBox">
+              <property name="currentIndex">
+               <number>1</number>
+              </property>
+              <item>
+               <property name="text">
+                <string>ZH-L16</string>
+               </property>
+              </item>
+              <item>
+               <property name="text">
+                <string>ZH-L16+GF</string>
+               </property>
+              </item>
+             </widget>
+            </item>
+            <item row="2" column="0">
              <widget class="QLabel" name="label_9">
               <property name="text">
                <string>Last deco</string>
@@ -634,25 +774,71 @@
               </property>
              </widget>
             </item>
-            <item row="4" column="1">
-             <widget class="QSpinBox" name="lastDecoSpinBox">
+            <item row="8" column="4">
+             <widget class="QSpinBox" name="saturationSpinBox">
               <property name="suffix">
-               <string> m</string>
+               <string>%</string>
+              </property>
+              <property name="minimum">
+               <number>100</number>
+              </property>
+              <property name="maximum">
+               <number>140</number>
+              </property>
+              <property name="value">
+               <number>110</number>
               </property>
              </widget>
             </item>
-            <item row="5" column="0">
-             <spacer name="verticalSpacer_3">
-              <property name="orientation">
-               <enum>Qt::Vertical</enum>
+            <item row="6" column="4">
+             <widget class="QSpinBox" name="aGFHighSpinBox">
+              <property name="enabled">
+               <bool>false</bool>
               </property>
-              <property name="sizeHint" stdset="0">
-               <size>
-                <width>20</width>
-                <height>40</height>
-               </size>
+              <property name="suffix">
+               <string>%</string>
               </property>
-             </spacer>
+              <property name="minimum">
+               <number>70</number>
+              </property>
+              <property name="maximum">
+               <number>120</number>
+              </property>
+              <property name="value">
+               <number>85</number>
+              </property>
+             </widget>
+            </item>
+            <item row="8" column="3">
+             <widget class="QLabel" name="label_7">
+              <property name="text">
+               <string>Saturation</string>
+              </property>
+              <property name="buddy">
+               <cstring>saturationSpinBox</cstring>
+              </property>
+             </widget>
+            </item>
+            <item row="3" column="3">
+             <widget class="QLabel" name="label_36">
+              <property name="text">
+               <string>Alt GFLow</string>
+              </property>
+             </widget>
+            </item>
+            <item row="6" column="3">
+             <widget class="QLabel" name="label_37">
+              <property name="text">
+               <string>Alt GFHigh</string>
+              </property>
+             </widget>
+            </item>
+            <item row="8" column="0">
+             <widget class="QCheckBox" name="flipScreenCheckBox">
+              <property name="text">
+               <string>Flip screen</string>
+              </property>
+             </widget>
             </item>
            </layout>
           </widget>
@@ -1493,5 +1679,37 @@
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>aGFSelectableCheckBox</sender>
+   <signal>toggled(bool)</signal>
+   <receiver>aGFHighSpinBox</receiver>
+   <slot>setEnabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>340</x>
+     <y>229</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>686</x>
+     <y>265</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>aGFSelectableCheckBox</sender>
+   <signal>toggled(bool)</signal>
+   <receiver>aGFLowSpinBox</receiver>
+   <slot>setEnabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>340</x>
+     <y>229</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>686</x>
+     <y>229</y>
+    </hint>
+   </hints>
+  </connection>
  </connections>
 </ui>
-- 
1.9.1



More information about the subsurface mailing list