source: trunk/examples/toplevel/options.ui@ 10

Last change on this file since 10 was 2, checked in by dmik, 20 years ago

Imported xplatform parts of the official release 3.3.1 from Trolltech

File size: 29.1 KB
Line 
1<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
2<class>OptionsDialog</class>
3<widget class="QDialog">
4 <property name="name">
5 <cstring>OptionsDialog</cstring>
6 </property>
7 <property name="geometry">
8 <rect>
9 <x>0</x>
10 <y>0</y>
11 <width>371</width>
12 <height>482</height>
13 </rect>
14 </property>
15 <property name="caption">
16 <string>Select Options</string>
17 </property>
18 <vbox>
19 <property name="name">
20 <cstring>unnamed</cstring>
21 </property>
22 <widget class="QLayoutWidget">
23 <property name="name">
24 <cstring>layout5</cstring>
25 </property>
26 <hbox>
27 <property name="name">
28 <cstring>unnamed</cstring>
29 </property>
30 <widget class="QLayoutWidget">
31 <property name="name">
32 <cstring>layout4</cstring>
33 </property>
34 <vbox>
35 <property name="name">
36 <cstring>unnamed</cstring>
37 </property>
38 <widget class="QButtonGroup">
39 <property name="name">
40 <cstring>bgBorder</cstring>
41 </property>
42 <property name="title">
43 <string>&amp;Border</string>
44 </property>
45 <property name="flat">
46 <bool>true</bool>
47 </property>
48 <property name="checkable">
49 <bool>true</bool>
50 </property>
51 <property name="whatsThis" stdset="0">
52 <string>Select different types of borders, or turn the border off. Windows without a border are ignored by the window manager.</string>
53 </property>
54 <vbox>
55 <property name="name">
56 <cstring>unnamed</cstring>
57 </property>
58 <widget class="QRadioButton">
59 <property name="name">
60 <cstring>rbBorderNormal</cstring>
61 </property>
62 <property name="text">
63 <string>&amp;Normal</string>
64 </property>
65 <property name="accel">
66 <string>Alt+N</string>
67 </property>
68 <property name="checked">
69 <bool>true</bool>
70 </property>
71 <property name="toolTip" stdset="0">
72 <string>A normal border</string>
73 </property>
74 <property name="whatsThis" stdset="0">
75 <string>Gives the window a normal, resizable border. The window should have a layout installed to handle the resizing gracefully.</string>
76 </property>
77 </widget>
78 <widget class="QRadioButton">
79 <property name="name">
80 <cstring>rbBorderDialog</cstring>
81 </property>
82 <property name="text">
83 <string>&amp;Dialog</string>
84 </property>
85 <property name="accel">
86 <string>Alt+D</string>
87 </property>
88 <property name="toolTip" stdset="0">
89 <string>A thin dialog border</string>
90 </property>
91 <property name="whatsThis" stdset="0">
92 <string>Gives the window a thin dialog border. Depending on the window manager the window will not be resizable. Use QWidget::setFixedSize() in addition to enforce a static size on all systems.</string>
93 </property>
94 </widget>
95 </vbox>
96 </widget>
97 <widget class="QButtonGroup">
98 <property name="name">
99 <cstring>bgTitle</cstring>
100 </property>
101 <property name="title">
102 <string>&amp;Titlebar</string>
103 </property>
104 <property name="flat">
105 <bool>true</bool>
106 </property>
107 <property name="checkable">
108 <bool>true</bool>
109 </property>
110 <property name="whatsThis" stdset="0">
111 <string>Select different controls you want to see in the titlebar, or turn the titlebar off. Popup windows should not have a titlebar.</string>
112 </property>
113 <vbox>
114 <property name="name">
115 <cstring>unnamed</cstring>
116 </property>
117 <widget class="QCheckBox">
118 <property name="name">
119 <cstring>cbTitleSystem</cstring>
120 </property>
121 <property name="text">
122 <string>S&amp;ystem Menu</string>
123 </property>
124 <property name="accel">
125 <string>Alt+Y</string>
126 </property>
127 <property name="checked">
128 <bool>true</bool>
129 </property>
130 <property name="toolTip" stdset="0">
131 <string>A window system menu.</string>
132 </property>
133 <property name="whatsThis" stdset="0">
134 <string>Adds a window system menu. Many window managers require a system menu to be able to provide minimize or maximize controls. A system menu implies a close button.</string>
135 </property>
136 </widget>
137 <widget class="QCheckBox">
138 <property name="name">
139 <cstring>cbTitleMinimize</cstring>
140 </property>
141 <property name="text">
142 <string>Minimi&amp;ze</string>
143 </property>
144 <property name="accel">
145 <string>Alt+Z</string>
146 </property>
147 <property name="toolTip" stdset="0">
148 <string>A minimize button</string>
149 </property>
150 <property name="whatsThis" stdset="0">
151 <string>Adds a minimze button. This option requires a system menu on many window managers.</string>
152 </property>
153 </widget>
154 <widget class="QCheckBox">
155 <property name="name">
156 <cstring>cbTitleMaximize</cstring>
157 </property>
158 <property name="text">
159 <string>Ma&amp;ximize</string>
160 </property>
161 <property name="accel">
162 <string>Alt+X</string>
163 </property>
164 <property name="toolTip" stdset="0">
165 <string>A maximize button</string>
166 </property>
167 <property name="whatsThis" stdset="0">
168 <string>Adds a maximze button. This option requires a system menu on many window managers.</string>
169 </property>
170 </widget>
171 <widget class="QCheckBox">
172 <property name="name">
173 <cstring>cbTitleContext</cstring>
174 </property>
175 <property name="text">
176 <string>&amp;What's This</string>
177 </property>
178 <property name="accel">
179 <string>Alt+W</string>
180 </property>
181 <property name="toolTip" stdset="0">
182 <string>A context help button</string>
183 </property>
184 <property name="whatsThis" stdset="0">
185 <string>Adds a context help button. This option requires a system menu on many window managers, and often doesn't work together with minimize and maximize buttons.</string>
186 </property>
187 </widget>
188 </vbox>
189 </widget>
190 </vbox>
191 </widget>
192 <widget class="QLayoutWidget">
193 <property name="name">
194 <cstring>layout3</cstring>
195 </property>
196 <vbox>
197 <property name="name">
198 <cstring>unnamed</cstring>
199 </property>
200 <widget class="QButtonGroup">
201 <property name="name">
202 <cstring>bgBehavior</cstring>
203 </property>
204 <property name="title">
205 <string>Behavior</string>
206 </property>
207 <property name="flat">
208 <bool>true</bool>
209 </property>
210 <property name="whatsThis" stdset="0">
211 <string>Select different behaviors of the window in runtime.</string>
212 </property>
213 <vbox>
214 <property name="name">
215 <cstring>unnamed</cstring>
216 </property>
217 <widget class="QCheckBox">
218 <property name="name">
219 <cstring>cbBehaviorTaskbar</cstring>
220 </property>
221 <property name="text">
222 <string>Taskbar &amp;Entry</string>
223 </property>
224 <property name="accel">
225 <string>Alt+E</string>
226 </property>
227 <property name="toolTip" stdset="0">
228 <string>Entry in the taskbar</string>
229 </property>
230 <property name="whatsThis" stdset="0">
231 <string>Gives the window a separate task bar entry.</string>
232 </property>
233 </widget>
234 <widget class="QCheckBox">
235 <property name="name">
236 <cstring>cbBehaviorStays</cstring>
237 </property>
238 <property name="text">
239 <string>Stays on T&amp;op</string>
240 </property>
241 <property name="accel">
242 <string>Alt+O</string>
243 </property>
244 <property name="toolTip" stdset="0">
245 <string>Stay on top of the desktop</string>
246 </property>
247 <property name="whatsThis" stdset="0">
248 <string>Informs the window system that the window should stay on top of all other windows, including windows from other applications. This is not supported on all X11 window managers.</string>
249 </property>
250 </widget>
251 <widget class="QCheckBox">
252 <property name="name">
253 <cstring>cbBehaviorPopup</cstring>
254 </property>
255 <property name="enabled">
256 <bool>false</bool>
257 </property>
258 <property name="text">
259 <string>&amp;Popup</string>
260 </property>
261 <property name="accel">
262 <string>Alt+P</string>
263 </property>
264 <property name="toolTip" stdset="0">
265 <string>A popup window</string>
266 </property>
267 <property name="whatsThis" stdset="0">
268 <string>Indicates that this widget is a popup window. Popup windows are modal, but close automatically when the mouse is clicked.</string>
269 </property>
270 </widget>
271 <widget class="QCheckBox">
272 <property name="name">
273 <cstring>cbBehaviorTool</cstring>
274 </property>
275 <property name="text">
276 <string>Too&amp;l</string>
277 </property>
278 <property name="accel">
279 <string>Alt+L</string>
280 </property>
281 <property name="toolTip" stdset="0">
282 <string>A tool window</string>
283 </property>
284 <property name="whatsThis" stdset="0">
285 <string>Makes the window a tool window. Tool windows often have a smaller titlebar and decoration, and don't activate automtically when displayed. Tool windows often cannot have their own taskbar entry.</string>
286 </property>
287 </widget>
288 <widget class="QCheckBox">
289 <property name="name">
290 <cstring>cbBehaviorModal</cstring>
291 </property>
292 <property name="text">
293 <string>&amp;Modal</string>
294 </property>
295 <property name="accel">
296 <string>Alt+M</string>
297 </property>
298 <property name="toolTip" stdset="0">
299 <string>Show modal</string>
300 </property>
301 <property name="whatsThis" stdset="0">
302 <string>The window is modal for the application, e.g. input for other windows are blocked by this window.</string>
303 </property>
304 </widget>
305 </vbox>
306 </widget>
307 <spacer>
308 <property name="name">
309 <cstring>spacer2</cstring>
310 </property>
311 <property name="orientation">
312 <enum>Vertical</enum>
313 </property>
314 <property name="sizeType">
315 <enum>Expanding</enum>
316 </property>
317 <property name="sizeHint">
318 <size>
319 <width>20</width>
320 <height>31</height>
321 </size>
322 </property>
323 </spacer>
324 </vbox>
325 </widget>
326 </hbox>
327 </widget>
328 <widget class="QGroupBox">
329 <property name="name">
330 <cstring>gbProperties</cstring>
331 </property>
332 <property name="title">
333 <string>Properties</string>
334 </property>
335 <property name="flat">
336 <bool>true</bool>
337 </property>
338 <property name="whatsThis" stdset="0">
339 <string>Set other properties of the window.</string>
340 </property>
341 <grid>
342 <property name="name">
343 <cstring>unnamed</cstring>
344 </property>
345 <widget class="QLineEdit" row="0" column="1">
346 <property name="name">
347 <cstring>leCaption</cstring>
348 </property>
349 <property name="text">
350 <string>Caption</string>
351 </property>
352 <property name="toolTip" stdset="0">
353 <string>Window caption</string>
354 </property>
355 <property name="whatsThis" stdset="0">
356 <string>The caption of the window.</string>
357 </property>
358 </widget>
359 <widget class="QLayoutWidget" row="1" column="1">
360 <property name="name">
361 <cstring>layout2</cstring>
362 </property>
363 <hbox>
364 <property name="name">
365 <cstring>unnamed</cstring>
366 </property>
367 <widget class="QLineEdit">
368 <property name="name">
369 <cstring>leIcon</cstring>
370 </property>
371 <property name="toolTip" stdset="0">
372 <string>Icon file</string>
373 </property>
374 <property name="whatsThis" stdset="0">
375 <string>Provide an image file.</string>
376 </property>
377 </widget>
378 <widget class="QToolButton">
379 <property name="name">
380 <cstring>tbPick</cstring>
381 </property>
382 <property name="text">
383 <string>...</string>
384 </property>
385 <property name="toolTip" stdset="0">
386 <string>Pick an icon</string>
387 </property>
388 <property name="whatsThis" stdset="0">
389 <string>Select an image file.</string>
390 </property>
391 </widget>
392 </hbox>
393 </widget>
394 <widget class="QSlider" row="2" column="1">
395 <property name="name">
396 <cstring>slTransparency</cstring>
397 </property>
398 <property name="maxValue">
399 <number>100</number>
400 </property>
401 <property name="pageStep">
402 <number>10</number>
403 </property>
404 <property name="orientation">
405 <enum>Horizontal</enum>
406 </property>
407 <property name="tickmarks">
408 <enum>Below</enum>
409 </property>
410 <property name="tickInterval">
411 <number>10</number>
412 </property>
413 <property name="toolTip" stdset="0">
414 <string>Window transparency</string>
415 </property>
416 <property name="whatsThis" stdset="0">
417 <string>Set the transparency of the window.
418A high value gives a high window transparency, e.g. it is less visible.
419
420Note that this attribute is not supported on many windowing systems and will have no effect.</string>
421 </property>
422 </widget>
423 <widget class="QLabel" row="2" column="0">
424 <property name="name">
425 <cstring>textLabel3</cstring>
426 </property>
427 <property name="text">
428 <string>Transp&amp;arency:</string>
429 </property>
430 <property name="buddy" stdset="0">
431 <cstring>slTransparency</cstring>
432 </property>
433 </widget>
434 <widget class="QLabel" row="1" column="0">
435 <property name="name">
436 <cstring>textLabel2</cstring>
437 </property>
438 <property name="text">
439 <string>&amp;Icon:</string>
440 </property>
441 <property name="buddy" stdset="0">
442 <cstring>leIcon</cstring>
443 </property>
444 </widget>
445 <widget class="QLabel" row="0" column="0">
446 <property name="name">
447 <cstring>textLabel1</cstring>
448 </property>
449 <property name="text">
450 <string>&amp;Caption:</string>
451 </property>
452 <property name="buddy" stdset="0">
453 <cstring>leCaption</cstring>
454 </property>
455 </widget>
456 </grid>
457 </widget>
458 <widget class="QLayoutWidget">
459 <property name="name">
460 <cstring>layout1</cstring>
461 </property>
462 <hbox>
463 <property name="name">
464 <cstring>unnamed</cstring>
465 </property>
466 <spacer>
467 <property name="name">
468 <cstring>spacer1</cstring>
469 </property>
470 <property name="orientation">
471 <enum>Horizontal</enum>
472 </property>
473 <property name="sizeType">
474 <enum>Expanding</enum>
475 </property>
476 <property name="sizeHint">
477 <size>
478 <width>70</width>
479 <height>21</height>
480 </size>
481 </property>
482 </spacer>
483 <widget class="QPushButton">
484 <property name="name">
485 <cstring>pbApply</cstring>
486 </property>
487 <property name="text">
488 <string>Apply</string>
489 </property>
490 <property name="accel">
491 <string></string>
492 </property>
493 <property name="default">
494 <bool>true</bool>
495 </property>
496 <property name="whatsThis" stdset="0">
497 <string>Creates a new window with the selected flags, or modifies the visible window.</string>
498 </property>
499 </widget>
500 <widget class="QPushButton">
501 <property name="name">
502 <cstring>pbClose</cstring>
503 </property>
504 <property name="text">
505 <string>Close</string>
506 </property>
507 <property name="accel">
508 <string></string>
509 </property>
510 <property name="whatsThis" stdset="0">
511 <string>Closes this dialog and exits the application.</string>
512 </property>
513 </widget>
514 </hbox>
515 </widget>
516 </vbox>
517</widget>
518<connections>
519 <connection>
520 <sender>pbClose</sender>
521 <signal>clicked()</signal>
522 <receiver>OptionsDialog</receiver>
523 <slot>close()</slot>
524 </connection>
525 <connection>
526 <sender>pbApply</sender>
527 <signal>clicked()</signal>
528 <receiver>OptionsDialog</receiver>
529 <slot>apply()</slot>
530 </connection>
531 <connection>
532 <sender>bgBorder</sender>
533 <signal>toggled(bool)</signal>
534 <receiver>bgTitle</receiver>
535 <slot>setEnabled(bool)</slot>
536 </connection>
537 <connection>
538 <sender>cbTitleSystem</sender>
539 <signal>toggled(bool)</signal>
540 <receiver>cbTitleMinimize</receiver>
541 <slot>setEnabled(bool)</slot>
542 </connection>
543 <connection>
544 <sender>cbTitleSystem</sender>
545 <signal>toggled(bool)</signal>
546 <receiver>cbTitleMaximize</receiver>
547 <slot>setEnabled(bool)</slot>
548 </connection>
549 <connection>
550 <sender>cbTitleSystem</sender>
551 <signal>toggled(bool)</signal>
552 <receiver>cbTitleContext</receiver>
553 <slot>setEnabled(bool)</slot>
554 </connection>
555 <connection>
556 <sender>bgTitle</sender>
557 <signal>toggled(bool)</signal>
558 <receiver>cbBehaviorPopup</receiver>
559 <slot>setDisabled(bool)</slot>
560 </connection>
561 <connection>
562 <sender>cbBehaviorPopup</sender>
563 <signal>toggled(bool)</signal>
564 <receiver>bgTitle</receiver>
565 <slot>setDisabled(bool)</slot>
566 </connection>
567 <connection>
568 <sender>tbPick</sender>
569 <signal>clicked()</signal>
570 <receiver>OptionsDialog</receiver>
571 <slot>pickIcon()</slot>
572 </connection>
573</connections>
574<includes>
575 <include location="global" impldecl="in declaration">qguardedptr.h</include>
576 <include location="global" impldecl="in declaration">qvbox.h</include>
577 <include location="global" impldecl="in implementation">qfiledialog.h</include>
578</includes>
579<variables>
580 <variable access="private">QGuardedPtr&lt;QVBox&gt; widget;</variable>
581</variables>
582<slots>
583 <slot>apply()</slot>
584 <slot access="protected">pickIcon()</slot>
585</slots>
586<layoutdefaults spacing="6" margin="11"/>
587</UI>
Note: See TracBrowser for help on using the repository browser.