Warning, /education/kalzium/src/calculator/gasCalculator.ui is written in an unsupported language. File is not indexed.
0001 <?xml version="1.0" encoding="UTF-8"?> 0002 <ui version="4.0"> 0003 <class>gasCalculator</class> 0004 <widget class="QWidget" name="gasCalculator"> 0005 <property name="geometry"> 0006 <rect> 0007 <x>0</x> 0008 <y>0</y> 0009 <width>626</width> 0010 <height>526</height> 0011 </rect> 0012 </property> 0013 <layout class="QVBoxLayout" name="verticalLayout_2"> 0014 <property name="margin"> 0015 <number>0</number> 0016 </property> 0017 <item> 0018 <widget class="KTextEdit" name="ktextedit"> 0019 <property name="maximumSize"> 0020 <size> 0021 <width>16777215</width> 0022 <height>150</height> 0023 </size> 0024 </property> 0025 <property name="readOnly"> 0026 <bool>true</bool> 0027 </property> 0028 <property name="html"> 0029 <string><big><b>Change the quantities and observe the other quantities change dynamically.<br />Mass and moles are directly dependent for a given gas.</b></big></string> 0030 </property> 0031 </widget> 0032 </item> 0033 <item> 0034 <widget class="QGroupBox" name="groupBox"> 0035 <property name="title"> 0036 <string>Data</string> 0037 </property> 0038 <layout class="QGridLayout" name="gridLayout"> 0039 <item row="1" column="0"> 0040 <widget class="QLabel" name="label_2"> 0041 <property name="text"> 0042 <string><big><b>Molar mass of the gas:</b></big></string> 0043 </property> 0044 <property name="alignment"> 0045 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 0046 </property> 0047 </widget> 0048 </item> 0049 <item row="1" column="1"> 0050 <widget class="QDoubleSpinBox" name="molarMass"> 0051 <property name="toolTip"> 0052 <string><big>Specify the molar mass of the gas</big></string> 0053 </property> 0054 <property name="whatsThis"> 0055 <string>This box can be used to specify the molar mass of the gas, e.g. 2 for Hydrogen gas.</string> 0056 </property> 0057 <property name="decimals"> 0058 <number>4</number> 0059 </property> 0060 <property name="maximum"> 0061 <double>1000000000.000000000000000</double> 0062 </property> 0063 </widget> 0064 </item> 0065 <item row="2" column="0"> 0066 <widget class="QLabel" name="label_25"> 0067 <property name="text"> 0068 <string><big><b>Moles:</b></big></string> 0069 </property> 0070 <property name="alignment"> 0071 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 0072 </property> 0073 </widget> 0074 </item> 0075 <item row="2" column="1"> 0076 <widget class="QDoubleSpinBox" name="moles"> 0077 <property name="toolTip"> 0078 <string><big>Specify the number of moles of the gas</big></string> 0079 </property> 0080 <property name="whatsThis"> 0081 <string>This box can be used to specify the number of moles of the gas. 0082 Moles = mass / molar mass</string> 0083 </property> 0084 <property name="decimals"> 0085 <number>4</number> 0086 </property> 0087 <property name="maximum"> 0088 <double>1000000000.000000000000000</double> 0089 </property> 0090 </widget> 0091 </item> 0092 <item row="3" column="0"> 0093 <widget class="QLabel" name="label_24"> 0094 <property name="text"> 0095 <string><big><b>Mass:</b></big></string> 0096 </property> 0097 <property name="alignment"> 0098 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 0099 </property> 0100 </widget> 0101 </item> 0102 <item row="3" column="1"> 0103 <widget class="QDoubleSpinBox" name="mass"> 0104 <property name="toolTip"> 0105 <string><big>Specify the Mass of the gas</big></string> 0106 </property> 0107 <property name="whatsThis"> 0108 <string>This box can be used to specify the mass of the gas. 0109 Mass = moles * molar mass</string> 0110 </property> 0111 <property name="decimals"> 0112 <number>4</number> 0113 </property> 0114 <property name="maximum"> 0115 <double>1000000000.000000000000000</double> 0116 </property> 0117 </widget> 0118 </item> 0119 <item row="3" column="2"> 0120 <widget class="KComboBox" name="mass_unit"> 0121 <property name="toolTip"> 0122 <string><big>Specify the unit of mass of the gas</big></string> 0123 </property> 0124 <property name="whatsThis"> 0125 <string>This box is used to change the units of mass.</string> 0126 </property> 0127 </widget> 0128 </item> 0129 <item row="3" column="3"> 0130 <spacer name="horizontalSpacer"> 0131 <property name="orientation"> 0132 <enum>Qt::Horizontal</enum> 0133 </property> 0134 <property name="sizeHint" stdset="0"> 0135 <size> 0136 <width>175</width> 0137 <height>20</height> 0138 </size> 0139 </property> 0140 </spacer> 0141 </item> 0142 <item row="4" column="0"> 0143 <widget class="QLabel" name="label_27"> 0144 <property name="text"> 0145 <string><big><b>Pressure:</b></big></string> 0146 </property> 0147 <property name="alignment"> 0148 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 0149 </property> 0150 </widget> 0151 </item> 0152 <item row="4" column="1"> 0153 <widget class="QDoubleSpinBox" name="pressure"> 0154 <property name="toolTip"> 0155 <string><big>Specify the Pressure of the gas</big></string> 0156 </property> 0157 <property name="whatsThis"> 0158 <string>This box can be used to change the pressure of the gas.</string> 0159 </property> 0160 <property name="decimals"> 0161 <number>4</number> 0162 </property> 0163 <property name="maximum"> 0164 <double>1000000000.000000000000000</double> 0165 </property> 0166 </widget> 0167 </item> 0168 <item row="4" column="2"> 0169 <widget class="KComboBox" name="pressure_unit"> 0170 <property name="toolTip"> 0171 <string><big>Specify the units for pressure of the gas</big></string> 0172 </property> 0173 <property name="whatsThis"> 0174 <string>This box can be used to specify the units of pressure, e.g. atmospheres, bars, etc.</string> 0175 </property> 0176 </widget> 0177 </item> 0178 <item row="5" column="0"> 0179 <widget class="QLabel" name="label_29"> 0180 <property name="text"> 0181 <string><big><b>Temperature:</b></big></string> 0182 </property> 0183 <property name="alignment"> 0184 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 0185 </property> 0186 </widget> 0187 </item> 0188 <item row="5" column="1"> 0189 <widget class="QDoubleSpinBox" name="temp"> 0190 <property name="toolTip"> 0191 <string><!----><big>Specify the temperature of the gas</big></string> 0192 </property> 0193 <property name="whatsThis"> 0194 <string>This box can be used to specify the temperature of the gas.</string> 0195 </property> 0196 <property name="decimals"> 0197 <number>4</number> 0198 </property> 0199 <property name="maximum"> 0200 <double>1000000000.000000000000000</double> 0201 </property> 0202 </widget> 0203 </item> 0204 <item row="5" column="2"> 0205 <widget class="KComboBox" name="temp_unit"> 0206 <property name="toolTip"> 0207 <string><big>Specify the units for the temperature of the gas</big></string> 0208 </property> 0209 <property name="whatsThis"> 0210 <string>This box can be used to specify the units of temperature, e.g. Kelvin, Celsius, etc.</string> 0211 </property> 0212 </widget> 0213 </item> 0214 <item row="6" column="0"> 0215 <widget class="QLabel" name="label_26"> 0216 <property name="text"> 0217 <string><big><b>Volume:</b></big></string> 0218 </property> 0219 <property name="alignment"> 0220 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 0221 </property> 0222 </widget> 0223 </item> 0224 <item row="6" column="1"> 0225 <widget class="QDoubleSpinBox" name="volume"> 0226 <property name="toolTip"> 0227 <string><big>Specify the volume of the gas</big></string> 0228 </property> 0229 <property name="whatsThis"> 0230 <string>This box can be used to specify the volume of the gas.</string> 0231 </property> 0232 <property name="readOnly"> 0233 <bool>true</bool> 0234 </property> 0235 <property name="decimals"> 0236 <number>4</number> 0237 </property> 0238 <property name="maximum"> 0239 <double>1000000000.000000000000000</double> 0240 </property> 0241 </widget> 0242 </item> 0243 <item row="6" column="2"> 0244 <widget class="KComboBox" name="volume_unit"> 0245 <property name="enabled"> 0246 <bool>true</bool> 0247 </property> 0248 <property name="toolTip"> 0249 <string><big>Specify the units for volume of the gas</big></string> 0250 </property> 0251 <property name="whatsThis"> 0252 <string>This box can be used to change the units of volume, e.g. liters.</string> 0253 </property> 0254 </widget> 0255 </item> 0256 <item row="0" column="0"> 0257 <widget class="QLabel" name="label_3"> 0258 <property name="text"> 0259 <string><big><b>Calculate:</b></big></string> 0260 </property> 0261 <property name="alignment"> 0262 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 0263 </property> 0264 </widget> 0265 </item> 0266 <item row="0" column="1"> 0267 <widget class="KComboBox" name="mode"> 0268 <property name="currentIndex"> 0269 <number>3</number> 0270 </property> 0271 </widget> 0272 </item> 0273 <item row="1" column="2"> 0274 <widget class="QLabel" name="label_4"> 0275 <property name="text"> 0276 <string>(g/mol)</string> 0277 </property> 0278 </widget> 0279 </item> 0280 </layout> 0281 </widget> 0282 </item> 0283 <item> 0284 <widget class="QGroupBox" name="non_ideal"> 0285 <property name="title"> 0286 <string>Data for non-ideal gases</string> 0287 </property> 0288 <layout class="QVBoxLayout" name="verticalLayout"> 0289 <item> 0290 <layout class="QGridLayout" name="gridLayout_4"> 0291 <item row="0" column="0"> 0292 <widget class="QLabel" name="label_30"> 0293 <property name="text"> 0294 <string><big><b>Van der Waals constant 'b':</b></big></string> 0295 </property> 0296 <property name="alignment"> 0297 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 0298 </property> 0299 </widget> 0300 </item> 0301 <item row="1" column="0"> 0302 <widget class="QLabel" name="label_28"> 0303 <property name="text"> 0304 <string><big><b>Van der Waals constant 'a':</b></big></string> 0305 </property> 0306 <property name="alignment"> 0307 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 0308 </property> 0309 </widget> 0310 </item> 0311 <item row="0" column="1"> 0312 <widget class="QDoubleSpinBox" name="b"> 0313 <property name="toolTip"> 0314 <string>Specify the units of the van der Waals constant 'b'</string> 0315 </property> 0316 <property name="whatsThis"> 0317 <string>This box can be used to specify the van der Waals constant 'b' for the gas. This is required only for a real gas. It can be marked as 0.0 for an ideal gas.</string> 0318 </property> 0319 <property name="decimals"> 0320 <number>4</number> 0321 </property> 0322 <property name="maximum"> 0323 <double>1000000000.000000000000000</double> 0324 </property> 0325 </widget> 0326 </item> 0327 <item row="1" column="1"> 0328 <widget class="QDoubleSpinBox" name="a"> 0329 <property name="toolTip"> 0330 <string>Specify the units of the van der Waals constant 'a'</string> 0331 </property> 0332 <property name="whatsThis"> 0333 <string>This box can be used to specify the van der Waals constant 'a' for the gas. This is required only for a real gas. It can be marked as 0.0 for an ideal gas.</string> 0334 </property> 0335 <property name="decimals"> 0336 <number>4</number> 0337 </property> 0338 <property name="maximum"> 0339 <double>1000000000.000000000000000</double> 0340 </property> 0341 </widget> 0342 </item> 0343 <item row="0" column="2"> 0344 <layout class="QHBoxLayout" name="horizontalLayout"> 0345 <item> 0346 <widget class="KComboBox" name="b_unit"> 0347 <property name="toolTip"> 0348 <string>The units of the van der Waals constant 'b'</string> 0349 </property> 0350 <property name="whatsThis"> 0351 <string>This can be used to specify the units of the van der Waals constant 'b'.</string> 0352 </property> 0353 </widget> 0354 </item> 0355 <item> 0356 <widget class="QLabel" name="label"> 0357 <property name="text"> 0358 <string>per mole</string> 0359 </property> 0360 </widget> 0361 </item> 0362 </layout> 0363 </item> 0364 <item row="0" column="3"> 0365 <spacer name="horizontalSpacer_2"> 0366 <property name="orientation"> 0367 <enum>Qt::Horizontal</enum> 0368 </property> 0369 <property name="sizeHint" stdset="0"> 0370 <size> 0371 <width>40</width> 0372 <height>20</height> 0373 </size> 0374 </property> 0375 </spacer> 0376 </item> 0377 <item row="1" column="2"> 0378 <widget class="QLabel" name="label_5"> 0379 <property name="text"> 0380 <string>liter^2 atmosphere/mol^2</string> 0381 </property> 0382 </widget> 0383 </item> 0384 </layout> 0385 </item> 0386 </layout> 0387 </widget> 0388 </item> 0389 <item> 0390 <widget class="QLabel" name="result"> 0391 <property name="text"> 0392 <string/> 0393 </property> 0394 </widget> 0395 </item> 0396 <item> 0397 <widget class="QLabel" name="error"> 0398 <property name="text"> 0399 <string/> 0400 </property> 0401 </widget> 0402 </item> 0403 <item> 0404 <spacer name="verticalSpacer"> 0405 <property name="orientation"> 0406 <enum>Qt::Vertical</enum> 0407 </property> 0408 <property name="sizeHint" stdset="0"> 0409 <size> 0410 <width>20</width> 0411 <height>40</height> 0412 </size> 0413 </property> 0414 </spacer> 0415 </item> 0416 <item> 0417 <layout class="QHBoxLayout" name="horizontalLayout_12"> 0418 <item> 0419 <spacer name="horizontalSpacer_22"> 0420 <property name="orientation"> 0421 <enum>Qt::Horizontal</enum> 0422 </property> 0423 <property name="sizeHint" stdset="0"> 0424 <size> 0425 <width>40</width> 0426 <height>20</height> 0427 </size> 0428 </property> 0429 </spacer> 0430 </item> 0431 <item> 0432 <widget class="QPushButton" name="reset"> 0433 <property name="toolTip"> 0434 <string>Click to reset all values to initial values</string> 0435 </property> 0436 <property name="text"> 0437 <string>Reset</string> 0438 </property> 0439 </widget> 0440 </item> 0441 </layout> 0442 </item> 0443 </layout> 0444 </widget> 0445 <customwidgets> 0446 <customwidget> 0447 <class>KComboBox</class> 0448 <extends>QComboBox</extends> 0449 <header>kcombobox.h</header> 0450 </customwidget> 0451 <customwidget> 0452 <class>KTextEdit</class> 0453 <extends>QTextEdit</extends> 0454 <header>ktextedit.h</header> 0455 </customwidget> 0456 </customwidgets> 0457 <resources/> 0458 <connections/> 0459 </ui>