mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-29 13:40:20 +00:00
81a812539c
This commit allows plotting the OC-equivalent pO2 graph for PSCR dives. This happens in both the cases where there is no external O2-monitoring AND when there is external pO2 monitoring. The calculations are only done for PSCR dives and is achieved as follows: 1) Within plot-info create a pressure-t called OC_pO2 in profile.h and populate this variable with the open-circuit pO2 values in profile.c. 2) Create a new partialPressureGasItem ocpo2GasItem in profilewidget2.h and, in profilewidget2.cpp, initialise it to read the plot-info OC_pO2 values and enable its display by using the setVisible method. The diveplotdatamodel was also touched in order to achieve this. 3) Create a pref button that controls the display of OC-pO2 for SCR dives 4) Change the colour of the OC-pO2 grpah to orange 5) Change the connection of the crr_OC_pO2 signal to be appropriate 6) rename the OC_pO2 attribute to scr_OC-pO2 Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za>
413 lines
12 KiB
XML
413 lines
12 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<ui version="4.0">
|
||
<class>PreferencesGraph</class>
|
||
<widget class="QWidget" name="PreferencesGraph">
|
||
<property name="geometry">
|
||
<rect>
|
||
<x>0</x>
|
||
<y>0</y>
|
||
<width>655</width>
|
||
<height>634</height>
|
||
</rect>
|
||
</property>
|
||
<property name="windowTitle">
|
||
<string>Form</string>
|
||
</property>
|
||
<layout class="QVBoxLayout" name="verticalLayout">
|
||
<item>
|
||
<widget class="QGroupBox" name="groupBox_4">
|
||
<property name="title">
|
||
<string>Gas pressure display setup</string>
|
||
</property>
|
||
<layout class="QGridLayout" name="gridLayout">
|
||
<item row="0" column="0">
|
||
<widget class="QLabel" name="label_12">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="text">
|
||
<string>Threshold for pO₂ (minimum, maximum)</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="1">
|
||
<widget class="QDoubleSpinBox" name="po2ThresholdMin">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="suffix">
|
||
<string>bar</string>
|
||
</property>
|
||
<property name="singleStep">
|
||
<double>0.010000000000000</double>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="2">
|
||
<widget class="QDoubleSpinBox" name="po2ThresholdMax">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="suffix">
|
||
<string>bar</string>
|
||
</property>
|
||
<property name="singleStep">
|
||
<double>0.100000000000000</double>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="0">
|
||
<widget class="QLabel" name="label_13">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="text">
|
||
<string>Threshold for pN₂ (maximum only)</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="2">
|
||
<widget class="QDoubleSpinBox" name="pn2Threshold">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="suffix">
|
||
<string>bar</string>
|
||
</property>
|
||
<property name="singleStep">
|
||
<double>0.100000000000000</double>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="0">
|
||
<widget class="QLabel" name="label_17">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="text">
|
||
<string>Threshold for pHe (maximum only)</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="2">
|
||
<widget class="QDoubleSpinBox" name="pheThreshold">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="suffix">
|
||
<string>bar</string>
|
||
</property>
|
||
<property name="singleStep">
|
||
<double>0.100000000000000</double>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="0">
|
||
<widget class="QLabel" name="label_18">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="text">
|
||
<string>pO₂ in calculating MOD (maximum only )</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="2">
|
||
<widget class="QDoubleSpinBox" name="maxpo2">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="suffix">
|
||
<string>bar</string>
|
||
</property>
|
||
<property name="singleStep">
|
||
<double>0.100000000000000</double>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="4" column="0">
|
||
<widget class="QLabel" name="label_26">
|
||
<property name="text">
|
||
<string>CCR options:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="4" column="1">
|
||
<widget class="QLabel" name="label_27">
|
||
<property name="text">
|
||
<string>Dive planner default setpoint</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="4" column="2">
|
||
<widget class="QDoubleSpinBox" name="defaultSetpoint">
|
||
<property name="suffix">
|
||
<string>bar</string>
|
||
</property>
|
||
<property name="decimals">
|
||
<number>2</number>
|
||
</property>
|
||
<property name="maximum">
|
||
<double>10.000000000000000</double>
|
||
</property>
|
||
<property name="singleStep">
|
||
<double>0.100000000000000</double>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="5" column="1" colspan="2">
|
||
<widget class="QCheckBox" name="show_ccr_sensors">
|
||
<property name="text">
|
||
<string>Show O₂ sensor values when viewing pO₂</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="6" column="1" colspan="2">
|
||
<widget class="QCheckBox" name="show_ccr_setpoint">
|
||
<property name="text">
|
||
<string>Show CCR setpoints when viewing pO₂</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="7" column="0">
|
||
<widget class="QLabel" name="pSCR">
|
||
<property name="text">
|
||
<string>pSCR options:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="7" column="1">
|
||
<widget class="QLabel" name="MetabolicRate">
|
||
<property name="text">
|
||
<string>pSCR metabolic rate O₂</string>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="7" column="2">
|
||
<widget class="QDoubleSpinBox" name="psro2rate">
|
||
<property name="suffix">
|
||
<string>ℓ/min</string>
|
||
</property>
|
||
<property name="decimals">
|
||
<number>3</number>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="7" column="3">
|
||
<widget class="QLabel" name="label_28">
|
||
<property name="text">
|
||
<string>Dilution ratio</string>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="7" column="4">
|
||
<widget class="QSpinBox" name="pscrfactor">
|
||
<property name="suffix">
|
||
<string/>
|
||
</property>
|
||
<property name="prefix">
|
||
<string>1:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="8" column="1">
|
||
<widget class="QCheckBox" name="show_scr_ocpo2">
|
||
<property name="text">
|
||
<string>Show equivalent OC pO₂ with pSCR pO₂</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="9" column="0">
|
||
<widget class="QCheckBox" name="show_icd">
|
||
<property name="text">
|
||
<string>Show warnings for isobaric counterdiffusion</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QGroupBox" name="groupBox_5">
|
||
<property name="title">
|
||
<string>Ceiling display setup</string>
|
||
</property>
|
||
<layout class="QGridLayout" name="gridLayout_3">
|
||
<item row="3" column="3">
|
||
<widget class="QLabel" name="label_GFhigh">
|
||
<property name="text">
|
||
<string>GFHigh</string>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="0">
|
||
<widget class="QRadioButton" name="buehlmann">
|
||
<property name="text">
|
||
<string>B&ühlmann</string>
|
||
</property>
|
||
<property name="checked">
|
||
<bool>true</bool>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="0">
|
||
<widget class="QLabel" name="label_22">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="text">
|
||
<string>Algorithm for calculated ceiling:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="2">
|
||
<widget class="QSpinBox" name="gflow">
|
||
<property name="suffix">
|
||
<string>%</string>
|
||
</property>
|
||
<property name="minimum">
|
||
<number>10</number>
|
||
</property>
|
||
<property name="maximum">
|
||
<number>150</number>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="1">
|
||
<widget class="QLabel" name="label_VPMB">
|
||
<property name="text">
|
||
<string>Conservatism level</string>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="2">
|
||
<widget class="QSpinBox" name="vpmb_conservatism">
|
||
<property name="prefix">
|
||
<string>+</string>
|
||
</property>
|
||
<property name="minimum">
|
||
<number>0</number>
|
||
</property>
|
||
<property name="maximum">
|
||
<number>4</number>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="0" colspan="2">
|
||
<widget class="QCheckBox" name="red_ceiling">
|
||
<property name="enabled">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="text">
|
||
<string>Draw dive computer reported ceiling red</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="0">
|
||
<widget class="QRadioButton" name="vpmb">
|
||
<property name="text">
|
||
<string>&VPM-B</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="4">
|
||
<widget class="QSpinBox" name="gfhigh">
|
||
<property name="suffix">
|
||
<string>%</string>
|
||
</property>
|
||
<property name="minimum">
|
||
<number>40</number>
|
||
</property>
|
||
<property name="maximum">
|
||
<number>150</number>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="1">
|
||
<widget class="QLabel" name="label_GFlow">
|
||
<property name="text">
|
||
<string>GFLow</string>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QGroupBox" name="groupBox_6">
|
||
<property name="title">
|
||
<string>Misc</string>
|
||
</property>
|
||
<layout class="QGridLayout" name="gridLayout_2">
|
||
<item row="0" column="0" colspan="2">
|
||
<widget class="QCheckBox" name="display_unused_tanks">
|
||
<property name="text">
|
||
<string>Show unused cylinders in Equipment tab</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="0" colspan="2">
|
||
<widget class="QCheckBox" name="show_average_depth">
|
||
<property name="text">
|
||
<string>Show mean depth in Profile</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<spacer name="verticalSpacer">
|
||
<property name="orientation">
|
||
<enum>Qt::Vertical</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>20</width>
|
||
<height>40</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
<tabstops>
|
||
<tabstop>po2ThresholdMin</tabstop>
|
||
<tabstop>po2ThresholdMax</tabstop>
|
||
<tabstop>pn2Threshold</tabstop>
|
||
<tabstop>pheThreshold</tabstop>
|
||
<tabstop>maxpo2</tabstop>
|
||
<tabstop>defaultSetpoint</tabstop>
|
||
<tabstop>show_ccr_sensors</tabstop>
|
||
<tabstop>show_ccr_setpoint</tabstop>
|
||
<tabstop>psro2rate</tabstop>
|
||
<tabstop>pscrfactor</tabstop>
|
||
<tabstop>show_scr_ocpo2</tabstop>
|
||
<tabstop>show_icd</tabstop>
|
||
<tabstop>red_ceiling</tabstop>
|
||
<tabstop>vpmb</tabstop>
|
||
<tabstop>vpmb_conservatism</tabstop>
|
||
<tabstop>buehlmann</tabstop>
|
||
<tabstop>gflow</tabstop>
|
||
<tabstop>gfhigh</tabstop>
|
||
<tabstop>display_unused_tanks</tabstop>
|
||
<tabstop>show_average_depth</tabstop>
|
||
</tabstops>
|
||
<resources/>
|
||
<connections/>
|
||
</ui>
|