mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Also grey out labels when not relevant for current deco mode
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									f01033f6a0
								
							
						
					
					
						commit
						c25ca184ec
					
				
					 2 changed files with 18 additions and 15 deletions
				
			
		| 
						 | 
					@ -88,8 +88,11 @@ void PreferencesGraph::on_buehlmann_toggled(bool buehlmann)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	ui->gfhigh->setEnabled(buehlmann);
 | 
						ui->gfhigh->setEnabled(buehlmann);
 | 
				
			||||||
	ui->gflow->setEnabled(buehlmann);
 | 
						ui->gflow->setEnabled(buehlmann);
 | 
				
			||||||
 | 
						ui->label_GFhigh->setEnabled(buehlmann);
 | 
				
			||||||
 | 
						ui->label_GFlow->setEnabled(buehlmann);
 | 
				
			||||||
	ui->gf_low_at_maxdepth->setEnabled(buehlmann);
 | 
						ui->gf_low_at_maxdepth->setEnabled(buehlmann);
 | 
				
			||||||
	ui->vpmb_conservatism->setEnabled(!buehlmann);
 | 
						ui->vpmb_conservatism->setEnabled(!buehlmann);
 | 
				
			||||||
 | 
						ui->label_VPMB->setEnabled(!buehlmann);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#undef DANGER_GF
 | 
					#undef DANGER_GF
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,15 +6,15 @@
 | 
				
			||||||
   <rect>
 | 
					   <rect>
 | 
				
			||||||
    <x>0</x>
 | 
					    <x>0</x>
 | 
				
			||||||
    <y>0</y>
 | 
					    <y>0</y>
 | 
				
			||||||
    <width>505</width>
 | 
					    <width>650</width>
 | 
				
			||||||
    <height>575</height>
 | 
					    <height>578</height>
 | 
				
			||||||
   </rect>
 | 
					   </rect>
 | 
				
			||||||
  </property>
 | 
					  </property>
 | 
				
			||||||
  <property name="windowTitle">
 | 
					  <property name="windowTitle">
 | 
				
			||||||
   <string>Form</string>
 | 
					   <string>Form</string>
 | 
				
			||||||
  </property>
 | 
					  </property>
 | 
				
			||||||
  <layout class="QVBoxLayout" name="verticalLayout">
 | 
					  <layout class="QVBoxLayout" name="verticalLayout">
 | 
				
			||||||
   <item>					// Gas pressure options
 | 
					   <item>
 | 
				
			||||||
    <widget class="QGroupBox" name="groupBox_4">
 | 
					    <widget class="QGroupBox" name="groupBox_4">
 | 
				
			||||||
     <property name="title">
 | 
					     <property name="title">
 | 
				
			||||||
      <string>Gas pressure display setup</string>
 | 
					      <string>Gas pressure display setup</string>
 | 
				
			||||||
| 
						 | 
					@ -127,14 +127,14 @@
 | 
				
			||||||
        </property>
 | 
					        </property>
 | 
				
			||||||
       </widget>
 | 
					       </widget>
 | 
				
			||||||
      </item>
 | 
					      </item>
 | 
				
			||||||
      <item row="5" column="1" colspan="2"> // row was 8
 | 
					      <item row="5" column="1" colspan="2">
 | 
				
			||||||
       <widget class="QCheckBox" name="show_ccr_setpoint">
 | 
					       <widget class="QCheckBox" name="show_ccr_setpoint">
 | 
				
			||||||
        <property name="text">
 | 
					        <property name="text">
 | 
				
			||||||
         <string>Show setpoints when viewing pO₂</string>
 | 
					         <string>Show setpoints when viewing pO₂</string>
 | 
				
			||||||
        </property>
 | 
					        </property>
 | 
				
			||||||
       </widget>
 | 
					       </widget>
 | 
				
			||||||
      </item>
 | 
					      </item>
 | 
				
			||||||
      <item row="6" column="1" colspan="2"> // row was 9
 | 
					      <item row="6" column="1" colspan="2">
 | 
				
			||||||
       <widget class="QCheckBox" name="show_ccr_sensors">
 | 
					       <widget class="QCheckBox" name="show_ccr_sensors">
 | 
				
			||||||
        <property name="text">
 | 
					        <property name="text">
 | 
				
			||||||
         <string>Show individual O₂ sensor values when viewing pO₂</string>
 | 
					         <string>Show individual O₂ sensor values when viewing pO₂</string>
 | 
				
			||||||
| 
						 | 
					@ -144,7 +144,7 @@
 | 
				
			||||||
     </layout>
 | 
					     </layout>
 | 
				
			||||||
    </widget>
 | 
					    </widget>
 | 
				
			||||||
   </item>
 | 
					   </item>
 | 
				
			||||||
   <item>						//  Ceiling options
 | 
					   <item>
 | 
				
			||||||
    <widget class="QGroupBox" name="groupBox_5">
 | 
					    <widget class="QGroupBox" name="groupBox_5">
 | 
				
			||||||
     <property name="title">
 | 
					     <property name="title">
 | 
				
			||||||
      <string>Ceiling display setup</string>
 | 
					      <string>Ceiling display setup</string>
 | 
				
			||||||
| 
						 | 
					@ -178,11 +178,11 @@
 | 
				
			||||||
       </widget>
 | 
					       </widget>
 | 
				
			||||||
      </item>
 | 
					      </item>
 | 
				
			||||||
      <item row="2" column="1">
 | 
					      <item row="2" column="1">
 | 
				
			||||||
       <widget class="QLabel" name="label_21">
 | 
					       <widget class="QLabel" name="label_VPMB">
 | 
				
			||||||
        <property name="text">
 | 
					        <property name="text">
 | 
				
			||||||
         <string>VPM-B Conservatism</string>
 | 
					         <string>VPM-B Conservatism</string>
 | 
				
			||||||
        </property>
 | 
					        </property>
 | 
				
			||||||
        <property name="alignment" >
 | 
					        <property name="alignment">
 | 
				
			||||||
         <set>Qt::AlignCenter</set>
 | 
					         <set>Qt::AlignCenter</set>
 | 
				
			||||||
        </property>
 | 
					        </property>
 | 
				
			||||||
       </widget>
 | 
					       </widget>
 | 
				
			||||||
| 
						 | 
					@ -211,11 +211,11 @@
 | 
				
			||||||
       </widget>
 | 
					       </widget>
 | 
				
			||||||
      </item>
 | 
					      </item>
 | 
				
			||||||
      <item row="3" column="3">
 | 
					      <item row="3" column="3">
 | 
				
			||||||
       <widget class="QLabel" name="label_20">
 | 
					       <widget class="QLabel" name="label_GFhigh">
 | 
				
			||||||
        <property name="text">
 | 
					        <property name="text">
 | 
				
			||||||
         <string>GFHigh</string>
 | 
					         <string>GFHigh</string>
 | 
				
			||||||
        </property>
 | 
					        </property>
 | 
				
			||||||
        <property name="alignment" >
 | 
					        <property name="alignment">
 | 
				
			||||||
         <set>Qt::AlignCenter</set>
 | 
					         <set>Qt::AlignCenter</set>
 | 
				
			||||||
        </property>
 | 
					        </property>
 | 
				
			||||||
       </widget>
 | 
					       </widget>
 | 
				
			||||||
| 
						 | 
					@ -231,11 +231,11 @@
 | 
				
			||||||
       </widget>
 | 
					       </widget>
 | 
				
			||||||
      </item>
 | 
					      </item>
 | 
				
			||||||
      <item row="3" column="1">
 | 
					      <item row="3" column="1">
 | 
				
			||||||
       <widget class="QLabel" name="label_19">
 | 
					       <widget class="QLabel" name="label_GFlow">
 | 
				
			||||||
        <property name="text">
 | 
					        <property name="text">
 | 
				
			||||||
         <string>GFLow</string>
 | 
					         <string>GFLow</string>
 | 
				
			||||||
        </property>
 | 
					        </property>
 | 
				
			||||||
        <property name="alignment" >
 | 
					        <property name="alignment">
 | 
				
			||||||
         <set>Qt::AlignCenter</set>
 | 
					         <set>Qt::AlignCenter</set>
 | 
				
			||||||
        </property>
 | 
					        </property>
 | 
				
			||||||
       </widget>
 | 
					       </widget>
 | 
				
			||||||
| 
						 | 
					@ -269,7 +269,7 @@
 | 
				
			||||||
        <property name="text">
 | 
					        <property name="text">
 | 
				
			||||||
         <string>Metabolic rate (ℓ O₂/min)</string>
 | 
					         <string>Metabolic rate (ℓ O₂/min)</string>
 | 
				
			||||||
        </property>
 | 
					        </property>
 | 
				
			||||||
        <property name="alignment" >
 | 
					        <property name="alignment">
 | 
				
			||||||
         <set>Qt::AlignCenter</set>
 | 
					         <set>Qt::AlignCenter</set>
 | 
				
			||||||
        </property>
 | 
					        </property>
 | 
				
			||||||
       </widget>
 | 
					       </widget>
 | 
				
			||||||
| 
						 | 
					@ -286,7 +286,7 @@
 | 
				
			||||||
        <property name="text">
 | 
					        <property name="text">
 | 
				
			||||||
         <string>Dilution ratio</string>
 | 
					         <string>Dilution ratio</string>
 | 
				
			||||||
        </property>
 | 
					        </property>
 | 
				
			||||||
        <property name="alignment" >
 | 
					        <property name="alignment">
 | 
				
			||||||
         <set>Qt::AlignCenter</set>
 | 
					         <set>Qt::AlignCenter</set>
 | 
				
			||||||
        </property>
 | 
					        </property>
 | 
				
			||||||
       </widget>
 | 
					       </widget>
 | 
				
			||||||
| 
						 | 
					@ -304,7 +304,7 @@
 | 
				
			||||||
     </layout>
 | 
					     </layout>
 | 
				
			||||||
    </widget>
 | 
					    </widget>
 | 
				
			||||||
   </item>
 | 
					   </item>
 | 
				
			||||||
   <item>						// Misc group
 | 
					   <item>
 | 
				
			||||||
    <widget class="QGroupBox" name="groupBox_6">
 | 
					    <widget class="QGroupBox" name="groupBox_6">
 | 
				
			||||||
     <property name="title">
 | 
					     <property name="title">
 | 
				
			||||||
      <string>Misc</string>
 | 
					      <string>Misc</string>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue