|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <ui version="4.0" stdsetdef="1"> |
|
3 <author></author> |
|
4 <comment></comment> |
|
5 <exportmacro></exportmacro> |
|
6 <class>ConversionForm</class> |
|
7 <widget class="QDialog" name="ConversionForm"> |
|
8 <property name="geometry"> |
|
9 <rect> |
|
10 <x>0</x> |
|
11 <y>0</y> |
|
12 <width>320</width> |
|
13 <height>217</height> |
|
14 </rect> |
|
15 </property> |
|
16 <property name="windowTitle"> |
|
17 <string>Metric Conversion</string> |
|
18 </property> |
|
19 <property name="sizeGripEnabled"> |
|
20 <bool>true</bool> |
|
21 </property> |
|
22 <layout class="QVBoxLayout"> |
|
23 <item> |
|
24 <layout class="QGridLayout"> |
|
25 <item row="4" column="1"> |
|
26 <layout class="QHBoxLayout"> |
|
27 <item> |
|
28 <spacer name="Spacer3"> |
|
29 <property name="sizeHint"> |
|
30 <size> |
|
31 <width>0</width> |
|
32 <height>20</height> |
|
33 </size> |
|
34 </property> |
|
35 <property name="sizeType"> |
|
36 <enum>QSizePolicy::Expanding</enum> |
|
37 </property> |
|
38 <property name="orientation"> |
|
39 <enum>Qt::Horizontal</enum> |
|
40 </property> |
|
41 </spacer> |
|
42 </item> |
|
43 <item> |
|
44 <widget class="QSpinBox" name="decimalsSpinBox"> |
|
45 <property name="maximum"> |
|
46 <number>6</number> |
|
47 </property> |
|
48 <property name="value"> |
|
49 <number>3</number> |
|
50 </property> |
|
51 </widget> |
|
52 </item> |
|
53 </layout> |
|
54 </item> |
|
55 <item row="1" column="1"> |
|
56 <widget class="QComboBox" name="fromComboBox"> |
|
57 <item> |
|
58 <property name="text"> |
|
59 <string>Kilometers</string> |
|
60 </property> |
|
61 </item> |
|
62 <item> |
|
63 <property name="text"> |
|
64 <string>Meters</string> |
|
65 </property> |
|
66 </item> |
|
67 <item> |
|
68 <property name="text"> |
|
69 <string>Centimeters</string> |
|
70 </property> |
|
71 </item> |
|
72 <item> |
|
73 <property name="text"> |
|
74 <string>Millimeters</string> |
|
75 </property> |
|
76 </item> |
|
77 </widget> |
|
78 </item> |
|
79 <item row="3" column="0"> |
|
80 <widget class="QLabel" name="TextLabel4"> |
|
81 <property name="text"> |
|
82 <string>Result:</string> |
|
83 </property> |
|
84 <property name="wordWrap"> |
|
85 <bool>false</bool> |
|
86 </property> |
|
87 </widget> |
|
88 </item> |
|
89 <item row="1" column="0"> |
|
90 <widget class="QLabel" name="TextLabel2"> |
|
91 <property name="text"> |
|
92 <string>Convert &From:</string> |
|
93 </property> |
|
94 <property name="buddy" stdset="0"> |
|
95 <cstring>fromComboBox</cstring> |
|
96 </property> |
|
97 <property name="wordWrap"> |
|
98 <bool>false</bool> |
|
99 </property> |
|
100 </widget> |
|
101 </item> |
|
102 <item row="2" column="0"> |
|
103 <widget class="QLabel" name="TextLabel3"> |
|
104 <property name="text"> |
|
105 <string>Convert &To:</string> |
|
106 </property> |
|
107 <property name="buddy" stdset="0"> |
|
108 <cstring>toComboBox</cstring> |
|
109 </property> |
|
110 <property name="wordWrap"> |
|
111 <bool>false</bool> |
|
112 </property> |
|
113 </widget> |
|
114 </item> |
|
115 <item row="4" column="0"> |
|
116 <widget class="QLabel" name="TextLabel1_2"> |
|
117 <property name="text"> |
|
118 <string>&Decimals:</string> |
|
119 </property> |
|
120 <property name="buddy" stdset="0"> |
|
121 <cstring>decimalsSpinBox</cstring> |
|
122 </property> |
|
123 <property name="wordWrap"> |
|
124 <bool>false</bool> |
|
125 </property> |
|
126 </widget> |
|
127 </item> |
|
128 <item row="0" column="0"> |
|
129 <widget class="QLabel" name="TextLabel1"> |
|
130 <property name="text"> |
|
131 <string>Enter &Number:</string> |
|
132 </property> |
|
133 <property name="buddy" stdset="0"> |
|
134 <cstring>numberLineEdit</cstring> |
|
135 </property> |
|
136 <property name="wordWrap"> |
|
137 <bool>false</bool> |
|
138 </property> |
|
139 </widget> |
|
140 </item> |
|
141 <item row="3" column="1"> |
|
142 <widget class="QLabel" name="resultLineEdit"> |
|
143 <property name="font"> |
|
144 <font> |
|
145 <bold>true</bold> |
|
146 </font> |
|
147 </property> |
|
148 <property name="frameShape"> |
|
149 <enum>QFrame::WinPanel</enum> |
|
150 </property> |
|
151 <property name="frameShadow"> |
|
152 <enum>QFrame::Sunken</enum> |
|
153 </property> |
|
154 <property name="text"> |
|
155 <string/> |
|
156 </property> |
|
157 <property name="alignment"> |
|
158 <set>Qt::AlignVCenter|Qt::AlignRight</set> |
|
159 </property> |
|
160 <property name="wordWrap"> |
|
161 <bool>false</bool> |
|
162 </property> |
|
163 </widget> |
|
164 </item> |
|
165 <item row="0" column="1"> |
|
166 <widget class="QLineEdit" name="numberLineEdit"> |
|
167 <property name="font"> |
|
168 <font> |
|
169 <bold>true</bold> |
|
170 </font> |
|
171 </property> |
|
172 <property name="alignment"> |
|
173 <set>Qt::AlignRight</set> |
|
174 </property> |
|
175 </widget> |
|
176 </item> |
|
177 <item row="2" column="1"> |
|
178 <widget class="QComboBox" name="toComboBox"> |
|
179 <item> |
|
180 <property name="text"> |
|
181 <string>Miles</string> |
|
182 </property> |
|
183 </item> |
|
184 <item> |
|
185 <property name="text"> |
|
186 <string>Yards</string> |
|
187 </property> |
|
188 </item> |
|
189 <item> |
|
190 <property name="text"> |
|
191 <string>Feet</string> |
|
192 </property> |
|
193 </item> |
|
194 <item> |
|
195 <property name="text"> |
|
196 <string>Inches</string> |
|
197 </property> |
|
198 </item> |
|
199 </widget> |
|
200 </item> |
|
201 </layout> |
|
202 </item> |
|
203 <item> |
|
204 <spacer name="Spacer2"> |
|
205 <property name="sizeHint"> |
|
206 <size> |
|
207 <width>20</width> |
|
208 <height>0</height> |
|
209 </size> |
|
210 </property> |
|
211 <property name="sizeType"> |
|
212 <enum>QSizePolicy::Expanding</enum> |
|
213 </property> |
|
214 <property name="orientation"> |
|
215 <enum>Qt::Vertical</enum> |
|
216 </property> |
|
217 </spacer> |
|
218 </item> |
|
219 <item> |
|
220 <layout class="QHBoxLayout"> |
|
221 <item> |
|
222 <widget class="QPushButton" name="clearButton"> |
|
223 <property name="text"> |
|
224 <string>&Clear</string> |
|
225 </property> |
|
226 </widget> |
|
227 </item> |
|
228 <item> |
|
229 <widget class="QPushButton" name="calculateButton"> |
|
230 <property name="text"> |
|
231 <string>Calculate</string> |
|
232 </property> |
|
233 <property name="default"> |
|
234 <bool>true</bool> |
|
235 </property> |
|
236 </widget> |
|
237 </item> |
|
238 <item> |
|
239 <spacer name="Spacer27"> |
|
240 <property name="sizeHint"> |
|
241 <size> |
|
242 <width>0</width> |
|
243 <height>20</height> |
|
244 </size> |
|
245 </property> |
|
246 <property name="sizeType"> |
|
247 <enum>QSizePolicy::Expanding</enum> |
|
248 </property> |
|
249 <property name="orientation"> |
|
250 <enum>Qt::Horizontal</enum> |
|
251 </property> |
|
252 </spacer> |
|
253 </item> |
|
254 <item> |
|
255 <widget class="QPushButton" name="quitButton"> |
|
256 <property name="text"> |
|
257 <string>&Quit</string> |
|
258 </property> |
|
259 </widget> |
|
260 </item> |
|
261 </layout> |
|
262 </item> |
|
263 </layout> |
|
264 </widget> |
|
265 <layoutdefault spacing="6" margin="11"/> |
|
266 <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> |
|
267 <tabstops> |
|
268 <tabstop>numberLineEdit</tabstop> |
|
269 <tabstop>fromComboBox</tabstop> |
|
270 <tabstop>toComboBox</tabstop> |
|
271 <tabstop>decimalsSpinBox</tabstop> |
|
272 <tabstop>clearButton</tabstop> |
|
273 <tabstop>calculateButton</tabstop> |
|
274 <tabstop>quitButton</tabstop> |
|
275 </tabstops> |
|
276 <connections> |
|
277 <connection> |
|
278 <sender>clearButton</sender> |
|
279 <signal>clicked()</signal> |
|
280 <receiver>numberLineEdit</receiver> |
|
281 <slot>clear()</slot> |
|
282 </connection> |
|
283 <connection> |
|
284 <sender>quitButton</sender> |
|
285 <signal>clicked()</signal> |
|
286 <receiver>ConversionForm</receiver> |
|
287 <slot>close()</slot> |
|
288 </connection> |
|
289 <connection> |
|
290 <sender>calculateButton</sender> |
|
291 <signal>clicked()</signal> |
|
292 <receiver>ConversionForm</receiver> |
|
293 <slot>convert()</slot> |
|
294 </connection> |
|
295 <connection> |
|
296 <sender>clearButton</sender> |
|
297 <signal>clicked()</signal> |
|
298 <receiver>resultLineEdit</receiver> |
|
299 <slot>clear()</slot> |
|
300 </connection> |
|
301 <connection> |
|
302 <sender>decimalsSpinBox</sender> |
|
303 <signal>valueChanged(int)</signal> |
|
304 <receiver>ConversionForm</receiver> |
|
305 <slot>convert()</slot> |
|
306 </connection> |
|
307 <connection> |
|
308 <sender>fromComboBox</sender> |
|
309 <signal>activated(int)</signal> |
|
310 <receiver>ConversionForm</receiver> |
|
311 <slot>convert()</slot> |
|
312 </connection> |
|
313 <connection> |
|
314 <sender>toComboBox</sender> |
|
315 <signal>activated(int)</signal> |
|
316 <receiver>ConversionForm</receiver> |
|
317 <slot>convert()</slot> |
|
318 </connection> |
|
319 <connection> |
|
320 <sender>clearButton</sender> |
|
321 <signal>released()</signal> |
|
322 <receiver>numberLineEdit</receiver> |
|
323 <slot>setFocus()</slot> |
|
324 </connection> |
|
325 <connection> |
|
326 <sender>calculateButton</sender> |
|
327 <signal>clicked()</signal> |
|
328 <receiver>numberLineEdit</receiver> |
|
329 <slot>setFocus()</slot> |
|
330 </connection> |
|
331 </connections> |
|
332 </ui> |