Debian Codegraph @

examples/script/calculator/calculator.ui

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3 <class>Calculator</class>
4 <widget class="QWidget" name="Calculator">
5 <property name="geometry">
6 <rect>
7 <x>0</x>
8 <y>0</y>
9 <width>314</width>
10 <height>301</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="minimumSize">
20 <size>
21 <width>314</width>
22 <height>301</height>
23 </size>
24 </property>
25 <property name="maximumSize">
26 <size>
27 <width>1024</width>
28 <height>768</height>
29 </size>
30 </property>
31 <property name="windowTitle">
32 <string>Calculator</string>
33 </property>
34 <layout class="QVBoxLayout" name="verticalLayout">
35 <item>
36 <layout class="QGridLayout" name="gridLayout">
37 <property name="spacing">
38 <number>10</number>
39 </property>
40 <item row="1" column="0" colspan="2">
41 <widget class="QToolButton" name="backspaceButton">
42 <property name="sizePolicy">
43 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
44 <horstretch>0</horstretch>
45 <verstretch>0</verstretch>
46 </sizepolicy>
47 </property>
48 <property name="text">
49 <string>Backspace</string>
50 </property>
51 </widget>
52 </item>
53 <item row="2" column="0">
54 <widget class="QToolButton" name="clearMemoryButton">
55 <property name="sizePolicy">
56 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
57 <horstretch>0</horstretch>
58 <verstretch>0</verstretch>
59 </sizepolicy>
60 </property>
61 <property name="text">
62 <string>MC</string>
63 </property>
64 </widget>
65 </item>
66 <item row="2" column="1">
67 <widget class="QToolButton" name="sevenButton">
68 <property name="sizePolicy">
69 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
70 <horstretch>0</horstretch>
71 <verstretch>0</verstretch>
72 </sizepolicy>
73 </property>
74 <property name="text">
75 <string>7</string>
76 </property>
77 </widget>
78 </item>
79 <item row="2" column="2">
80 <widget class="QToolButton" name="eightButton">
81 <property name="sizePolicy">
82 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
83 <horstretch>0</horstretch>
84 <verstretch>0</verstretch>
85 </sizepolicy>
86 </property>
87 <property name="text">
88 <string>8</string>
89 </property>
90 </widget>
91 </item>
92 <item row="2" column="3">
93 <widget class="QToolButton" name="nineButton">
94 <property name="sizePolicy">
95 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
96 <horstretch>0</horstretch>
97 <verstretch>0</verstretch>
98 </sizepolicy>
99 </property>
100 <property name="text">
101 <string>9</string>
102 </property>
103 </widget>
104 </item>
105 <item row="2" column="4">
106 <widget class="QToolButton" name="divisionButton">
107 <property name="sizePolicy">
108 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
109 <horstretch>0</horstretch>
110 <verstretch>0</verstretch>
111 </sizepolicy>
112 </property>
113 <property name="text">
114 <string>/</string>
115 </property>
116 </widget>
117 </item>
118 <item row="2" column="5">
119 <widget class="QToolButton" name="squareRootButton">
120 <property name="sizePolicy">
121 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
122 <horstretch>0</horstretch>
123 <verstretch>0</verstretch>
124 </sizepolicy>
125 </property>
126 <property name="text">
127 <string>Sqrt</string>
128 </property>
129 </widget>
130 </item>
131 <item row="1" column="2" colspan="2">
132 <widget class="QToolButton" name="clearButton">
133 <property name="sizePolicy">
134 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
135 <horstretch>0</horstretch>
136 <verstretch>0</verstretch>
137 </sizepolicy>
138 </property>
139 <property name="text">
140 <string>Clear</string>
141 </property>
142 </widget>
143 </item>
144 <item row="1" column="4" colspan="2">
145 <widget class="QToolButton" name="clearAllButton">
146 <property name="sizePolicy">
147 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
148 <horstretch>0</horstretch>
149 <verstretch>0</verstretch>
150 </sizepolicy>
151 </property>
152 <property name="text">
153 <string>Clear All</string>
154 </property>
155 </widget>
156 </item>
157 <item row="0" column="0" colspan="6">
158 <widget class="QLineEdit" name="display">
159 <property name="sizePolicy">
160 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
161 <horstretch>0</horstretch>
162 <verstretch>0</verstretch>
163 </sizepolicy>
164 </property>
165 <property name="maxLength">
166 <number>24</number>
167 </property>
168 <property name="alignment">
169 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
170 </property>
171 <property name="readOnly">
172 <bool>true</bool>
173 </property>
174 </widget>
175 </item>
176 <item row="3" column="0">
177 <widget class="QToolButton" name="readMemoryButton">
178 <property name="sizePolicy">
179 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
180 <horstretch>0</horstretch>
181 <verstretch>0</verstretch>
182 </sizepolicy>
183 </property>
184 <property name="text">
185 <string>MR</string>
186 </property>
187 </widget>
188 </item>
189 <item row="3" column="1">
190 <widget class="QToolButton" name="fourButton">
191 <property name="sizePolicy">
192 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
193 <horstretch>0</horstretch>
194 <verstretch>0</verstretch>
195 </sizepolicy>
196 </property>
197 <property name="text">
198 <string>4</string>
199 </property>
200 </widget>
201 </item>
202 <item row="3" column="2">
203 <widget class="QToolButton" name="fiveButton">
204 <property name="sizePolicy">
205 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
206 <horstretch>0</horstretch>
207 <verstretch>0</verstretch>
208 </sizepolicy>
209 </property>
210 <property name="text">
211 <string>5</string>
212 </property>
213 </widget>
214 </item>
215 <item row="3" column="3">
216 <widget class="QToolButton" name="sixButton">
217 <property name="sizePolicy">
218 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
219 <horstretch>0</horstretch>
220 <verstretch>0</verstretch>
221 </sizepolicy>
222 </property>
223 <property name="text">
224 <string>6</string>
225 </property>
226 </widget>
227 </item>
228 <item row="3" column="4">
229 <widget class="QToolButton" name="timesButton">
230 <property name="sizePolicy">
231 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
232 <horstretch>0</horstretch>
233 <verstretch>0</verstretch>
234 </sizepolicy>
235 </property>
236 <property name="text">
237 <string>*</string>
238 </property>
239 </widget>
240 </item>
241 <item row="3" column="5">
242 <widget class="QToolButton" name="powerButton">
243 <property name="sizePolicy">
244 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
245 <horstretch>0</horstretch>
246 <verstretch>0</verstretch>
247 </sizepolicy>
248 </property>
249 <property name="text">
250 <string>x^2</string>
251 </property>
252 </widget>
253 </item>
254 <item row="4" column="0">
255 <widget class="QToolButton" name="setMemoryButton">
256 <property name="sizePolicy">
257 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
258 <horstretch>0</horstretch>
259 <verstretch>0</verstretch>
260 </sizepolicy>
261 </property>
262 <property name="text">
263 <string>MS</string>
264 </property>
265 </widget>
266 </item>
267 <item row="4" column="1">
268 <widget class="QToolButton" name="oneButton">
269 <property name="sizePolicy">
270 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
271 <horstretch>0</horstretch>
272 <verstretch>0</verstretch>
273 </sizepolicy>
274 </property>
275 <property name="text">
276 <string>1</string>
277 </property>
278 </widget>
279 </item>
280 <item row="4" column="2">
281 <widget class="QToolButton" name="twoButton">
282 <property name="sizePolicy">
283 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
284 <horstretch>0</horstretch>
285 <verstretch>0</verstretch>
286 </sizepolicy>
287 </property>
288 <property name="text">
289 <string>2</string>
290 </property>
291 </widget>
292 </item>
293 <item row="4" column="3">
294 <widget class="QToolButton" name="threeButton">
295 <property name="sizePolicy">
296 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
297 <horstretch>0</horstretch>
298 <verstretch>0</verstretch>
299 </sizepolicy>
300 </property>
301 <property name="text">
302 <string>3</string>
303 </property>
304 </widget>
305 </item>
306 <item row="4" column="4">
307 <widget class="QToolButton" name="minusButton">
308 <property name="sizePolicy">
309 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
310 <horstretch>0</horstretch>
311 <verstretch>0</verstretch>
312 </sizepolicy>
313 </property>
314 <property name="text">
315 <string>-</string>
316 </property>
317 </widget>
318 </item>
319 <item row="4" column="5">
320 <widget class="QToolButton" name="reciprocalButton">
321 <property name="sizePolicy">
322 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
323 <horstretch>0</horstretch>
324 <verstretch>0</verstretch>
325 </sizepolicy>
326 </property>
327 <property name="text">
328 <string>1/x</string>
329 </property>
330 </widget>
331 </item>
332 <item row="5" column="0">
333 <widget class="QToolButton" name="addToMemoryButton">
334 <property name="sizePolicy">
335 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
336 <horstretch>0</horstretch>
337 <verstretch>0</verstretch>
338 </sizepolicy>
339 </property>
340 <property name="text">
341 <string>M+</string>
342 </property>
343 </widget>
344 </item>
345 <item row="5" column="1">
346 <widget class="QToolButton" name="zeroButton">
347 <property name="sizePolicy">
348 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
349 <horstretch>0</horstretch>
350 <verstretch>0</verstretch>
351 </sizepolicy>
352 </property>
353 <property name="text">
354 <string>0</string>
355 </property>
356 </widget>
357 </item>
358 <item row="5" column="2">
359 <widget class="QToolButton" name="pointButton">
360 <property name="sizePolicy">
361 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
362 <horstretch>0</horstretch>
363 <verstretch>0</verstretch>
364 </sizepolicy>
365 </property>
366 <property name="text">
367 <string>.</string>
368 </property>
369 </widget>
370 </item>
371 <item row="5" column="3">
372 <widget class="QToolButton" name="changeSignButton">
373 <property name="sizePolicy">
374 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
375 <horstretch>0</horstretch>
376 <verstretch>0</verstretch>
377 </sizepolicy>
378 </property>
379 <property name="text">
380 <string>+-</string>
381 </property>
382 </widget>
383 </item>
384 <item row="5" column="4">
385 <widget class="QToolButton" name="plusButton">
386 <property name="sizePolicy">
387 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
388 <horstretch>0</horstretch>
389 <verstretch>0</verstretch>
390 </sizepolicy>
391 </property>
392 <property name="text">
393 <string>+</string>
394 </property>
395 </widget>
396 </item>
397 <item row="5" column="5">
398 <widget class="QToolButton" name="equalButton">
399 <property name="sizePolicy">
400 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
401 <horstretch>0</horstretch>
402 <verstretch>0</verstretch>
403 </sizepolicy>
404 </property>
405 <property name="text">
406 <string>=</string>
407 </property>
408 </widget>
409 </item>
410 </layout>
411 </item>
412 </layout>
413 </widget>
414 <resources/>
415 <connections/>
416 </ui>