1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <ui version="4.0"> |
---|
3 | <class>DensityPanel</class> |
---|
4 | <widget class="QDialog" name="DensityPanel"> |
---|
5 | <property name="geometry"> |
---|
6 | <rect> |
---|
7 | <x>0</x> |
---|
8 | <y>0</y> |
---|
9 | <width>295</width> |
---|
10 | <height>204</height> |
---|
11 | </rect> |
---|
12 | </property> |
---|
13 | <property name="sizePolicy"> |
---|
14 | <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> |
---|
15 | <horstretch>0</horstretch> |
---|
16 | <verstretch>0</verstretch> |
---|
17 | </sizepolicy> |
---|
18 | </property> |
---|
19 | <property name="windowTitle"> |
---|
20 | <string>Density/Volume Calculator</string> |
---|
21 | </property> |
---|
22 | <property name="windowIcon"> |
---|
23 | <iconset> |
---|
24 | <normaloff>:/res/ball.ico</normaloff>:/res/ball.ico</iconset> |
---|
25 | </property> |
---|
26 | <layout class="QGridLayout" name="gridLayout_2"> |
---|
27 | <item row="0" column="0"> |
---|
28 | <layout class="QGridLayout" name="gridLayout"> |
---|
29 | <item row="0" column="0"> |
---|
30 | <widget class="QLabel" name="label_1"> |
---|
31 | <property name="text"> |
---|
32 | <string>Molecular Formula</string> |
---|
33 | </property> |
---|
34 | </widget> |
---|
35 | </item> |
---|
36 | <item row="0" column="1"> |
---|
37 | <widget class="QLineEdit" name="editMolecularFormula"/> |
---|
38 | </item> |
---|
39 | <item row="0" column="2"> |
---|
40 | <widget class="QLabel" name="label_3"> |
---|
41 | <property name="text"> |
---|
42 | <string>e.g. H2O</string> |
---|
43 | </property> |
---|
44 | </widget> |
---|
45 | </item> |
---|
46 | <item row="1" column="0"> |
---|
47 | <widget class="QLabel" name="label_2"> |
---|
48 | <property name="text"> |
---|
49 | <string>Molar Mass</string> |
---|
50 | </property> |
---|
51 | </widget> |
---|
52 | </item> |
---|
53 | <item row="1" column="1"> |
---|
54 | <widget class="QLineEdit" name="editMolarMass"> |
---|
55 | <property name="styleSheet"> |
---|
56 | <string notr="true"/> |
---|
57 | </property> |
---|
58 | <property name="readOnly"> |
---|
59 | <bool>true</bool> |
---|
60 | </property> |
---|
61 | </widget> |
---|
62 | </item> |
---|
63 | <item row="1" column="2"> |
---|
64 | <widget class="QLabel" name="label_4"> |
---|
65 | <property name="text"> |
---|
66 | <string>g/mol</string> |
---|
67 | </property> |
---|
68 | </widget> |
---|
69 | </item> |
---|
70 | <item row="2" column="0" colspan="3"> |
---|
71 | <widget class="QFrame" name="frame"> |
---|
72 | <property name="minimumSize"> |
---|
73 | <size> |
---|
74 | <width>0</width> |
---|
75 | <height>5</height> |
---|
76 | </size> |
---|
77 | </property> |
---|
78 | <property name="frameShape"> |
---|
79 | <enum>QFrame::HLine</enum> |
---|
80 | </property> |
---|
81 | <property name="frameShadow"> |
---|
82 | <enum>QFrame::Raised</enum> |
---|
83 | </property> |
---|
84 | <property name="lineWidth"> |
---|
85 | <number>1</number> |
---|
86 | </property> |
---|
87 | <property name="midLineWidth"> |
---|
88 | <number>0</number> |
---|
89 | </property> |
---|
90 | </widget> |
---|
91 | </item> |
---|
92 | <item row="3" column="0"> |
---|
93 | <widget class="QLabel" name="label_5"> |
---|
94 | <property name="text"> |
---|
95 | <string>Molar Volume</string> |
---|
96 | </property> |
---|
97 | </widget> |
---|
98 | </item> |
---|
99 | <item row="3" column="1"> |
---|
100 | <widget class="QLineEdit" name="editMolarVolume"/> |
---|
101 | </item> |
---|
102 | <item row="3" column="2"> |
---|
103 | <widget class="QLabel" name="label_6"> |
---|
104 | <property name="text"> |
---|
105 | <string>cm³/mol</string> |
---|
106 | </property> |
---|
107 | </widget> |
---|
108 | </item> |
---|
109 | <item row="4" column="0"> |
---|
110 | <widget class="QLabel" name="label_7"> |
---|
111 | <property name="text"> |
---|
112 | <string>Mass Density</string> |
---|
113 | </property> |
---|
114 | </widget> |
---|
115 | </item> |
---|
116 | <item row="4" column="1"> |
---|
117 | <widget class="QLineEdit" name="editMassDensity"/> |
---|
118 | </item> |
---|
119 | <item row="4" column="2"> |
---|
120 | <widget class="QLabel" name="label_8"> |
---|
121 | <property name="text"> |
---|
122 | <string>g/cm³</string> |
---|
123 | </property> |
---|
124 | </widget> |
---|
125 | </item> |
---|
126 | </layout> |
---|
127 | </item> |
---|
128 | <item row="1" column="0"> |
---|
129 | <spacer name="verticalSpacer"> |
---|
130 | <property name="orientation"> |
---|
131 | <enum>Qt::Vertical</enum> |
---|
132 | </property> |
---|
133 | <property name="sizeType"> |
---|
134 | <enum>QSizePolicy::Expanding</enum> |
---|
135 | </property> |
---|
136 | <property name="sizeHint" stdset="0"> |
---|
137 | <size> |
---|
138 | <width>20</width> |
---|
139 | <height>40</height> |
---|
140 | </size> |
---|
141 | </property> |
---|
142 | </spacer> |
---|
143 | </item> |
---|
144 | <item row="2" column="0"> |
---|
145 | <widget class="QDialogButtonBox" name="buttonBox"> |
---|
146 | <property name="sizePolicy"> |
---|
147 | <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> |
---|
148 | <horstretch>0</horstretch> |
---|
149 | <verstretch>0</verstretch> |
---|
150 | </sizepolicy> |
---|
151 | </property> |
---|
152 | <property name="orientation"> |
---|
153 | <enum>Qt::Horizontal</enum> |
---|
154 | </property> |
---|
155 | <property name="standardButtons"> |
---|
156 | <set>QDialogButtonBox::Close|QDialogButtonBox::Help|QDialogButtonBox::Reset</set> |
---|
157 | </property> |
---|
158 | <property name="centerButtons"> |
---|
159 | <bool>true</bool> |
---|
160 | </property> |
---|
161 | </widget> |
---|
162 | </item> |
---|
163 | </layout> |
---|
164 | </widget> |
---|
165 | <tabstops> |
---|
166 | <tabstop>editMolecularFormula</tabstop> |
---|
167 | <tabstop>editMolarMass</tabstop> |
---|
168 | <tabstop>editMolarVolume</tabstop> |
---|
169 | <tabstop>editMassDensity</tabstop> |
---|
170 | <tabstop>buttonBox</tabstop> |
---|
171 | </tabstops> |
---|
172 | <resources/> |
---|
173 | <connections> |
---|
174 | <connection> |
---|
175 | <sender>buttonBox</sender> |
---|
176 | <signal>accepted()</signal> |
---|
177 | <receiver>DensityPanel</receiver> |
---|
178 | <slot>accept()</slot> |
---|
179 | <hints> |
---|
180 | <hint type="sourcelabel"> |
---|
181 | <x>248</x> |
---|
182 | <y>254</y> |
---|
183 | </hint> |
---|
184 | <hint type="destinationlabel"> |
---|
185 | <x>157</x> |
---|
186 | <y>274</y> |
---|
187 | </hint> |
---|
188 | </hints> |
---|
189 | </connection> |
---|
190 | <connection> |
---|
191 | <sender>buttonBox</sender> |
---|
192 | <signal>rejected()</signal> |
---|
193 | <receiver>DensityPanel</receiver> |
---|
194 | <slot>reject()</slot> |
---|
195 | <hints> |
---|
196 | <hint type="sourcelabel"> |
---|
197 | <x>316</x> |
---|
198 | <y>260</y> |
---|
199 | </hint> |
---|
200 | <hint type="destinationlabel"> |
---|
201 | <x>286</x> |
---|
202 | <y>274</y> |
---|
203 | </hint> |
---|
204 | </hints> |
---|
205 | </connection> |
---|
206 | </connections> |
---|
207 | </ui> |
---|