|
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>GLLandscapeViewer</class> |
|
7 <widget class="QWidget" name="GLLandscapeViewer"> |
|
8 <property name="geometry"> |
|
9 <rect> |
|
10 <x>0</x> |
|
11 <y>0</y> |
|
12 <width>731</width> |
|
13 <height>519</height> |
|
14 </rect> |
|
15 </property> |
|
16 <property name="windowTitle"> |
|
17 <string>Qt/OpenGL example</string> |
|
18 </property> |
|
19 <layout class="QGridLayout"> |
|
20 <property name="margin"> |
|
21 <number>11</number> |
|
22 </property> |
|
23 <property name="spacing"> |
|
24 <number>6</number> |
|
25 </property> |
|
26 <item row="1" column="0"> |
|
27 <layout class="QHBoxLayout"> |
|
28 <property name="margin"> |
|
29 <number>0</number> |
|
30 </property> |
|
31 <property name="spacing"> |
|
32 <number>18</number> |
|
33 </property> |
|
34 <item> |
|
35 <layout class="QVBoxLayout"> |
|
36 <property name="margin"> |
|
37 <number>0</number> |
|
38 </property> |
|
39 <property name="spacing"> |
|
40 <number>6</number> |
|
41 </property> |
|
42 <item> |
|
43 <widget class="QLabel" name="TextLabel1"> |
|
44 <property name="sizePolicy"> |
|
45 <sizepolicy> |
|
46 <hsizetype>1</hsizetype> |
|
47 <vsizetype>0</vsizetype> |
|
48 <horstretch>0</horstretch> |
|
49 <verstretch>0</verstretch> |
|
50 </sizepolicy> |
|
51 </property> |
|
52 <property name="text"> |
|
53 <string>X-rotation</string> |
|
54 </property> |
|
55 <property name="wordWrap"> |
|
56 <bool>false</bool> |
|
57 </property> |
|
58 </widget> |
|
59 </item> |
|
60 <item> |
|
61 <widget class="QThumbWheel" name="wheelX"> |
|
62 <property name="sizePolicy"> |
|
63 <sizepolicy> |
|
64 <hsizetype>5</hsizetype> |
|
65 <vsizetype>0</vsizetype> |
|
66 <horstretch>0</horstretch> |
|
67 <verstretch>0</verstretch> |
|
68 </sizepolicy> |
|
69 </property> |
|
70 <property name="minimumSize"> |
|
71 <size> |
|
72 <width>100</width> |
|
73 <height>30</height> |
|
74 </size> |
|
75 </property> |
|
76 </widget> |
|
77 </item> |
|
78 </layout> |
|
79 </item> |
|
80 <item> |
|
81 <layout class="QVBoxLayout"> |
|
82 <property name="margin"> |
|
83 <number>0</number> |
|
84 </property> |
|
85 <property name="spacing"> |
|
86 <number>6</number> |
|
87 </property> |
|
88 <item> |
|
89 <widget class="QLabel" name="TextLabel1_2"> |
|
90 <property name="sizePolicy"> |
|
91 <sizepolicy> |
|
92 <hsizetype>1</hsizetype> |
|
93 <vsizetype>0</vsizetype> |
|
94 <horstretch>0</horstretch> |
|
95 <verstretch>0</verstretch> |
|
96 </sizepolicy> |
|
97 </property> |
|
98 <property name="text"> |
|
99 <string>Y-rotation</string> |
|
100 </property> |
|
101 <property name="wordWrap"> |
|
102 <bool>false</bool> |
|
103 </property> |
|
104 </widget> |
|
105 </item> |
|
106 <item> |
|
107 <widget class="QThumbWheel" name="wheelY"> |
|
108 <property name="minimumSize"> |
|
109 <size> |
|
110 <width>100</width> |
|
111 <height>30</height> |
|
112 </size> |
|
113 </property> |
|
114 </widget> |
|
115 </item> |
|
116 </layout> |
|
117 </item> |
|
118 <item> |
|
119 <layout class="QVBoxLayout"> |
|
120 <property name="margin"> |
|
121 <number>0</number> |
|
122 </property> |
|
123 <property name="spacing"> |
|
124 <number>6</number> |
|
125 </property> |
|
126 <item> |
|
127 <widget class="QLabel" name="TextLabel1_3"> |
|
128 <property name="sizePolicy"> |
|
129 <sizepolicy> |
|
130 <hsizetype>1</hsizetype> |
|
131 <vsizetype>0</vsizetype> |
|
132 <horstretch>0</horstretch> |
|
133 <verstretch>0</verstretch> |
|
134 </sizepolicy> |
|
135 </property> |
|
136 <property name="text"> |
|
137 <string>Z-rotation</string> |
|
138 </property> |
|
139 <property name="wordWrap"> |
|
140 <bool>false</bool> |
|
141 </property> |
|
142 </widget> |
|
143 </item> |
|
144 <item> |
|
145 <widget class="QThumbWheel" name="wheelZ"> |
|
146 <property name="minimumSize"> |
|
147 <size> |
|
148 <width>100</width> |
|
149 <height>30</height> |
|
150 </size> |
|
151 </property> |
|
152 </widget> |
|
153 </item> |
|
154 </layout> |
|
155 </item> |
|
156 </layout> |
|
157 </item> |
|
158 <item row="2" column="0"> |
|
159 <layout class="QHBoxLayout"> |
|
160 <property name="margin"> |
|
161 <number>0</number> |
|
162 </property> |
|
163 <property name="spacing"> |
|
164 <number>6</number> |
|
165 </property> |
|
166 <item> |
|
167 <widget class="Q3ButtonGroup" name="ButtonGroup2"> |
|
168 <property name="enabled"> |
|
169 <bool>true</bool> |
|
170 </property> |
|
171 <property name="sizePolicy"> |
|
172 <sizepolicy> |
|
173 <hsizetype>1</hsizetype> |
|
174 <vsizetype>1</vsizetype> |
|
175 <horstretch>0</horstretch> |
|
176 <verstretch>0</verstretch> |
|
177 </sizepolicy> |
|
178 </property> |
|
179 <property name="title"> |
|
180 <string>Rendering mode</string> |
|
181 </property> |
|
182 <layout class="QGridLayout"> |
|
183 <property name="margin"> |
|
184 <number>11</number> |
|
185 </property> |
|
186 <property name="spacing"> |
|
187 <number>6</number> |
|
188 </property> |
|
189 <item row="0" column="0"> |
|
190 <widget class="QRadioButton" name="RadioButton1"> |
|
191 <property name="text"> |
|
192 <string>&Wireframe</string> |
|
193 </property> |
|
194 <property name="checked"> |
|
195 <bool>true</bool> |
|
196 </property> |
|
197 </widget> |
|
198 </item> |
|
199 <item row="0" column="1"> |
|
200 <widget class="QRadioButton" name="RadioButton1_2"> |
|
201 <property name="text"> |
|
202 <string>Fl&at shaded</string> |
|
203 </property> |
|
204 </widget> |
|
205 </item> |
|
206 <item row="0" column="2"> |
|
207 <widget class="QRadioButton" name="RadioButton1_3"> |
|
208 <property name="text"> |
|
209 <string>&Smooth shaded</string> |
|
210 </property> |
|
211 </widget> |
|
212 </item> |
|
213 <item row="0" column="3"> |
|
214 <widget class="QRadioButton" name="RadioButton1_3_2"> |
|
215 <property name="text"> |
|
216 <string>&Landscape</string> |
|
217 </property> |
|
218 </widget> |
|
219 </item> |
|
220 </layout> |
|
221 </widget> |
|
222 </item> |
|
223 <item> |
|
224 <layout class="QGridLayout"> |
|
225 <property name="margin"> |
|
226 <number>0</number> |
|
227 </property> |
|
228 <property name="spacing"> |
|
229 <number>6</number> |
|
230 </property> |
|
231 <item row="0" column="1"> |
|
232 <widget class="QPushButton" name="fractalize_btn_2"> |
|
233 <property name="sizePolicy"> |
|
234 <sizepolicy> |
|
235 <hsizetype>0</hsizetype> |
|
236 <vsizetype>0</vsizetype> |
|
237 <horstretch>0</horstretch> |
|
238 <verstretch>0</verstretch> |
|
239 </sizepolicy> |
|
240 </property> |
|
241 <property name="text"> |
|
242 <string>&Fractalize</string> |
|
243 </property> |
|
244 <property name="autoRepeat"> |
|
245 <bool>true</bool> |
|
246 </property> |
|
247 </widget> |
|
248 </item> |
|
249 <item row="0" column="2"> |
|
250 <widget class="QPushButton" name="reset_btn"> |
|
251 <property name="sizePolicy"> |
|
252 <sizepolicy> |
|
253 <hsizetype>0</hsizetype> |
|
254 <vsizetype>0</vsizetype> |
|
255 <horstretch>0</horstretch> |
|
256 <verstretch>0</verstretch> |
|
257 </sizepolicy> |
|
258 </property> |
|
259 <property name="text"> |
|
260 <string>&Reset grid</string> |
|
261 </property> |
|
262 <property name="autoRepeat"> |
|
263 <bool>true</bool> |
|
264 </property> |
|
265 </widget> |
|
266 </item> |
|
267 <item row="0" column="0"> |
|
268 <widget class="QPushButton" name="animate_btn"> |
|
269 <property name="sizePolicy"> |
|
270 <sizepolicy> |
|
271 <hsizetype>0</hsizetype> |
|
272 <vsizetype>0</vsizetype> |
|
273 <horstretch>0</horstretch> |
|
274 <verstretch>0</verstretch> |
|
275 </sizepolicy> |
|
276 </property> |
|
277 <property name="text"> |
|
278 <string>&Animate</string> |
|
279 </property> |
|
280 <property name="checkable"> |
|
281 <bool>true</bool> |
|
282 </property> |
|
283 <property name="autoRepeat"> |
|
284 <bool>true</bool> |
|
285 </property> |
|
286 </widget> |
|
287 </item> |
|
288 </layout> |
|
289 </item> |
|
290 </layout> |
|
291 </item> |
|
292 <item row="0" column="0"> |
|
293 <layout class="QHBoxLayout"> |
|
294 <property name="margin"> |
|
295 <number>0</number> |
|
296 </property> |
|
297 <property name="spacing"> |
|
298 <number>6</number> |
|
299 </property> |
|
300 <item> |
|
301 <layout class="QVBoxLayout"> |
|
302 <property name="margin"> |
|
303 <number>0</number> |
|
304 </property> |
|
305 <property name="spacing"> |
|
306 <number>6</number> |
|
307 </property> |
|
308 <item> |
|
309 <widget class="QLabel" name="TextLabel2"> |
|
310 <property name="sizePolicy"> |
|
311 <sizepolicy> |
|
312 <hsizetype>1</hsizetype> |
|
313 <vsizetype>0</vsizetype> |
|
314 <horstretch>0</horstretch> |
|
315 <verstretch>0</verstretch> |
|
316 </sizepolicy> |
|
317 </property> |
|
318 <property name="text"> |
|
319 <string>Zoom</string> |
|
320 </property> |
|
321 <property name="wordWrap"> |
|
322 <bool>false</bool> |
|
323 </property> |
|
324 </widget> |
|
325 </item> |
|
326 <item> |
|
327 <widget class="QThumbWheel" name="wheelZoom"> |
|
328 <property name="sizePolicy"> |
|
329 <sizepolicy> |
|
330 <hsizetype>0</hsizetype> |
|
331 <vsizetype>7</vsizetype> |
|
332 <horstretch>0</horstretch> |
|
333 <verstretch>0</verstretch> |
|
334 </sizepolicy> |
|
335 </property> |
|
336 <property name="minimumSize"> |
|
337 <size> |
|
338 <width>30</width> |
|
339 <height>0</height> |
|
340 </size> |
|
341 </property> |
|
342 </widget> |
|
343 </item> |
|
344 <item> |
|
345 <widget class="QLabel" name="TextLabel2_2"> |
|
346 <property name="sizePolicy"> |
|
347 <sizepolicy> |
|
348 <hsizetype>1</hsizetype> |
|
349 <vsizetype>0</vsizetype> |
|
350 <horstretch>0</horstretch> |
|
351 <verstretch>0</verstretch> |
|
352 </sizepolicy> |
|
353 </property> |
|
354 <property name="text"> |
|
355 <string>Size</string> |
|
356 </property> |
|
357 <property name="wordWrap"> |
|
358 <bool>false</bool> |
|
359 </property> |
|
360 </widget> |
|
361 </item> |
|
362 <item> |
|
363 <widget class="QThumbWheel" name="wheelSize"> |
|
364 <property name="sizePolicy"> |
|
365 <sizepolicy> |
|
366 <hsizetype>0</hsizetype> |
|
367 <vsizetype>7</vsizetype> |
|
368 <horstretch>0</horstretch> |
|
369 <verstretch>0</verstretch> |
|
370 </sizepolicy> |
|
371 </property> |
|
372 <property name="minimumSize"> |
|
373 <size> |
|
374 <width>30</width> |
|
375 <height>0</height> |
|
376 </size> |
|
377 </property> |
|
378 </widget> |
|
379 </item> |
|
380 </layout> |
|
381 </item> |
|
382 <item> |
|
383 <widget class="Q3Frame" name="Frame5"> |
|
384 <property name="frameShape"> |
|
385 <enum>QFrame::StyledPanel</enum> |
|
386 </property> |
|
387 <property name="frameShadow"> |
|
388 <enum>QFrame::Raised</enum> |
|
389 </property> |
|
390 <layout class="QHBoxLayout"> |
|
391 <property name="margin"> |
|
392 <number>1</number> |
|
393 </property> |
|
394 <property name="spacing"> |
|
395 <number>0</number> |
|
396 </property> |
|
397 <item> |
|
398 <widget class="GLLandscape" name="landscape"> |
|
399 <property name="sizePolicy"> |
|
400 <sizepolicy> |
|
401 <hsizetype>7</hsizetype> |
|
402 <vsizetype>7</vsizetype> |
|
403 <horstretch>0</horstretch> |
|
404 <verstretch>0</verstretch> |
|
405 </sizepolicy> |
|
406 </property> |
|
407 </widget> |
|
408 </item> |
|
409 </layout> |
|
410 </widget> |
|
411 </item> |
|
412 </layout> |
|
413 </item> |
|
414 </layout> |
|
415 </widget> |
|
416 <layoutdefault spacing="6" margin="11"/> |
|
417 <customwidgets> |
|
418 <customwidget> |
|
419 <class>GLLandscape</class> |
|
420 <extends>QWidget</extends> |
|
421 <header location="local">gllandscape.h</header> |
|
422 <sizehint> |
|
423 <width>100</width> |
|
424 <height>100</height> |
|
425 </sizehint> |
|
426 <container>0</container> |
|
427 <sizepolicy> |
|
428 <hordata>3</hordata> |
|
429 <verdata>3</verdata> |
|
430 </sizepolicy> |
|
431 <pixmap>image0</pixmap> |
|
432 </customwidget> |
|
433 <customwidget> |
|
434 <class>QThumbWheel</class> |
|
435 <extends>QWidget</extends> |
|
436 <header location="local">qthumbwheel.h</header> |
|
437 <sizehint> |
|
438 <width>100</width> |
|
439 <height>16</height> |
|
440 </sizehint> |
|
441 <container>0</container> |
|
442 <sizepolicy> |
|
443 <hordata>7</hordata> |
|
444 <verdata>0</verdata> |
|
445 </sizepolicy> |
|
446 <pixmap>image0</pixmap> |
|
447 </customwidget> |
|
448 </customwidgets> |
|
449 <tabstops> |
|
450 <tabstop>RadioButton1</tabstop> |
|
451 <tabstop>RadioButton1_2</tabstop> |
|
452 <tabstop>RadioButton1_3</tabstop> |
|
453 <tabstop>RadioButton1_3_2</tabstop> |
|
454 <tabstop>fractalize_btn_2</tabstop> |
|
455 <tabstop>reset_btn</tabstop> |
|
456 <tabstop>animate_btn</tabstop> |
|
457 </tabstops> |
|
458 <images> |
|
459 <image name="image0"> |
|
460 <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b722ddac1741fc04c5a3201e6615f43085390f22febbb65dd6666dd821dda36996b552b0df6d4055e2d937fdcd82bd361da8f3ab6ddf87e3fa23a431e01e98cb99901a2c6c1ff78bcbf19fe372713275ed6908f441ab51300617649108624641d22a9427c21a192405241a256e08e4850311172a3b95d87159742e98ef09bda403e03271f6a5bc663e9d8214279afd05eaa048f11e242f753c27bb21ee9cef4afc00c1c26728</data> |
|
461 </image> |
|
462 </images> |
|
463 <connections> |
|
464 <connection> |
|
465 <sender>RadioButton1</sender> |
|
466 <signal>stateChanged(int)</signal> |
|
467 <receiver>landscape</receiver> |
|
468 <slot>setWireframe(int)</slot> |
|
469 </connection> |
|
470 <connection> |
|
471 <sender>RadioButton1_2</sender> |
|
472 <signal>stateChanged(int)</signal> |
|
473 <receiver>landscape</receiver> |
|
474 <slot>setFilled(int)</slot> |
|
475 </connection> |
|
476 <connection> |
|
477 <sender>animate_btn</sender> |
|
478 <signal>toggled(bool)</signal> |
|
479 <receiver>landscape</receiver> |
|
480 <slot>toggleWaveAnimation(bool)</slot> |
|
481 </connection> |
|
482 <connection> |
|
483 <sender>RadioButton1_3</sender> |
|
484 <signal>stateChanged(int)</signal> |
|
485 <receiver>landscape</receiver> |
|
486 <slot>setSmoothShaded(int)</slot> |
|
487 </connection> |
|
488 <connection> |
|
489 <sender>wheelY</sender> |
|
490 <signal>valueChanged(int)</signal> |
|
491 <receiver>landscape</receiver> |
|
492 <slot>rotateY(int)</slot> |
|
493 </connection> |
|
494 <connection> |
|
495 <sender>wheelZ</sender> |
|
496 <signal>valueChanged(int)</signal> |
|
497 <receiver>landscape</receiver> |
|
498 <slot>rotateZ(int)</slot> |
|
499 </connection> |
|
500 <connection> |
|
501 <sender>wheelSize</sender> |
|
502 <signal>valueChanged(int)</signal> |
|
503 <receiver>landscape</receiver> |
|
504 <slot>setGridSize(int)</slot> |
|
505 </connection> |
|
506 <connection> |
|
507 <sender>wheelZoom</sender> |
|
508 <signal>valueChanged(int)</signal> |
|
509 <receiver>landscape</receiver> |
|
510 <slot>zoom(int)</slot> |
|
511 </connection> |
|
512 <connection> |
|
513 <sender>wheelX</sender> |
|
514 <signal>valueChanged(int)</signal> |
|
515 <receiver>landscape</receiver> |
|
516 <slot>rotateX(int)</slot> |
|
517 </connection> |
|
518 <connection> |
|
519 <sender>RadioButton1_3_2</sender> |
|
520 <signal>stateChanged(int)</signal> |
|
521 <receiver>landscape</receiver> |
|
522 <slot>setLandscape(int)</slot> |
|
523 </connection> |
|
524 <connection> |
|
525 <sender>reset_btn</sender> |
|
526 <signal>clicked()</signal> |
|
527 <receiver>landscape</receiver> |
|
528 <slot>resetGrid()</slot> |
|
529 </connection> |
|
530 <connection> |
|
531 <sender>fractalize_btn_2</sender> |
|
532 <signal>clicked()</signal> |
|
533 <receiver>landscape</receiver> |
|
534 <slot>fractalize()</slot> |
|
535 </connection> |
|
536 </connections> |
|
537 </ui> |