|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <ui version="4.0" stdsetdef="1"> |
|
3 <author></author> |
|
4 <comment>********************************************************************* |
|
5 ** |
|
6 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
7 ** All rights reserved. |
|
8 ** Contact: Nokia Corporation (qt-info@nokia.com) |
|
9 ** |
|
10 ** This file is part of the test suite of the Qt Toolkit. |
|
11 ** |
|
12 ** $QT_BEGIN_LICENSE:LGPL$ |
|
13 ** No Commercial Usage |
|
14 ** This file contains pre-release code and may not be distributed. |
|
15 ** You may use this file in accordance with the terms and conditions |
|
16 ** contained in the Technology Preview License Agreement accompanying |
|
17 ** this package. |
|
18 ** |
|
19 ** GNU Lesser General Public License Usage |
|
20 ** Alternatively, this file may be used under the terms of the GNU Lesser |
|
21 ** General Public License version 2.1 as published by the Free Software |
|
22 ** Foundation and appearing in the file LICENSE.LGPL included in the |
|
23 ** packaging of this file. Please review the following information to |
|
24 ** ensure the GNU Lesser General Public License version 2.1 requirements |
|
25 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
26 ** |
|
27 ** In addition, as a special exception, Nokia gives you certain additional |
|
28 ** rights. These rights are described in the Nokia Qt LGPL Exception |
|
29 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
30 ** |
|
31 ** If you have questions regarding the use of this file, please contact |
|
32 ** Nokia at qt-info@nokia.com. |
|
33 ** |
|
34 ** |
|
35 ** |
|
36 ** |
|
37 ** |
|
38 ** |
|
39 ** |
|
40 ** |
|
41 ** $QT_END_LICENSE$ |
|
42 ** |
|
43 *********************************************************************</comment> |
|
44 <exportmacro></exportmacro> |
|
45 <class>FormSettingsBase</class> |
|
46 <widget class="QDialog" name="FormSettingsBase"> |
|
47 <property name="geometry"> |
|
48 <rect> |
|
49 <x>0</x> |
|
50 <y>0</y> |
|
51 <width>597</width> |
|
52 <height>458</height> |
|
53 </rect> |
|
54 </property> |
|
55 <property name="windowTitle"> |
|
56 <string>Form Settings</string> |
|
57 </property> |
|
58 <property name="sizeGripEnabled"> |
|
59 <bool>true</bool> |
|
60 </property> |
|
61 <property name="whatsThis" stdset="0"> |
|
62 <string><b>Form Settings</b><p>Change settings for the form. Settings like <b>Comment</b> and <b>Author</b> are for your own use and are not required.</p></string> |
|
63 </property> |
|
64 <layout class="QGridLayout"> |
|
65 <property name="margin"> |
|
66 <number>11</number> |
|
67 </property> |
|
68 <property name="spacing"> |
|
69 <number>6</number> |
|
70 </property> |
|
71 <item row="1" column="0"> |
|
72 <widget class="Q3ButtonGroup" name="ButtonGroup1"> |
|
73 <property name="title"> |
|
74 <string>Pixmaps</string> |
|
75 </property> |
|
76 <layout class="QGridLayout"> |
|
77 <property name="margin"> |
|
78 <number>11</number> |
|
79 </property> |
|
80 <property name="spacing"> |
|
81 <number>6</number> |
|
82 </property> |
|
83 <item row="0" column="0"> |
|
84 <widget class="QRadioButton" name="radioPixmapInline"> |
|
85 <property name="text"> |
|
86 <string>Save In&line</string> |
|
87 </property> |
|
88 <property name="checked"> |
|
89 <bool>true</bool> |
|
90 </property> |
|
91 <property name="toolTip" stdset="0"> |
|
92 <string>Save pixmaps in the .ui files</string> |
|
93 </property> |
|
94 <property name="whatsThis" stdset="0"> |
|
95 <string><b>Save Inline</b><p>Saves the pixmaps as binary data in the .ui files. Pixmaps saved like this are not shared between forms. We recommend using Project image files instead.</string> |
|
96 </property> |
|
97 </widget> |
|
98 </item> |
|
99 <item row="2" column="0"> |
|
100 <widget class="QRadioButton" name="radioProjectImageFile"> |
|
101 <property name="text"> |
|
102 <string>Project &Imagefile</string> |
|
103 </property> |
|
104 <property name="toolTip" stdset="0"> |
|
105 <string>Use the Project's Image file for pixmaps</string> |
|
106 </property> |
|
107 <property name="whatsThis" stdset="0"> |
|
108 <string><b>Use the Project's Image file for pixmaps</b> |
|
109 <p>Each project may have a collection of pixmaps. If you use a project, we recommend that you use this option since it shares the images and is the fastest and most efficient way to use pixmaps in your forms.</p></string> |
|
110 </property> |
|
111 </widget> |
|
112 </item> |
|
113 <item row="1" column="1"> |
|
114 <widget class="QLineEdit" name="editPixmapFunction"> |
|
115 <property name="enabled"> |
|
116 <bool>false</bool> |
|
117 </property> |
|
118 <property name="toolTip" stdset="0"> |
|
119 <string>Specify Pixmap-Loader function (only the function's name, no parentheses!)</string> |
|
120 </property> |
|
121 <property name="whatsThis" stdset="0"> |
|
122 <string><b>Specify Pixmap-Loader function</b><p>Specify the function which should be used for loading a pixmap in the generated code. <em>Only enter the function's name, with no parentheses.</em></string> |
|
123 </property> |
|
124 </widget> |
|
125 </item> |
|
126 <item row="1" column="0"> |
|
127 <widget class="QRadioButton" name="radioPixmapFunction"> |
|
128 <property name="text"> |
|
129 <string>Use &Function:</string> |
|
130 </property> |
|
131 <property name="toolTip" stdset="0"> |
|
132 <string>Use the given function for pixmaps</string> |
|
133 </property> |
|
134 <property name="whatsThis" stdset="0"> |
|
135 <string><b>Use a given function for pixmaps</b><p>If you choose this option you must define a function in the line edit at the right which will be used in the generated code for loading pixmaps. When choosing a pixmap in <i>Qt Designer</i> you will be asked to specify the arguments which will be passed to the function in the generated code.<p> This approach makes it possible to use your own icon-loader function for loading pixmaps. <i>Qt Designer</i> can't preview the correct image if you use your own function.</string> |
|
136 </property> |
|
137 </widget> |
|
138 </item> |
|
139 </layout> |
|
140 </widget> |
|
141 </item> |
|
142 <item row="0" column="0" rowspan="1" colspan="2"> |
|
143 <widget class="Q3GroupBox" name="GroupBox1"> |
|
144 <property name="frameShape"> |
|
145 <enum>Q3GroupBox::Box</enum> |
|
146 </property> |
|
147 <property name="frameShadow"> |
|
148 <enum>Q3GroupBox::Sunken</enum> |
|
149 </property> |
|
150 <property name="title"> |
|
151 <string>Settings</string> |
|
152 </property> |
|
153 <layout class="QGridLayout"> |
|
154 <property name="margin"> |
|
155 <number>11</number> |
|
156 </property> |
|
157 <property name="spacing"> |
|
158 <number>6</number> |
|
159 </property> |
|
160 <item row="0" column="1"> |
|
161 <widget class="QLineEdit" name="editClassName"> |
|
162 <property name="toolTip" stdset="0"> |
|
163 <string>Change class name</string> |
|
164 </property> |
|
165 <property name="whatsThis" stdset="0"> |
|
166 <string><b>Enter the name of the class that will be created.</b><p><em>classname.h</em> and <em>classname.cpp</em> will be generated as C++ output when it is compiled by uic.</p></string> |
|
167 </property> |
|
168 </widget> |
|
169 </item> |
|
170 <item row="3" column="0"> |
|
171 <widget class="QLabel" name="TextLabel1_2"> |
|
172 <property name="text"> |
|
173 <string>A&uthor:</string> |
|
174 </property> |
|
175 <property name="buddy" stdset="0"> |
|
176 <cstring>editAuthor</cstring> |
|
177 </property> |
|
178 <property name="wordWrap"> |
|
179 <bool>false</bool> |
|
180 </property> |
|
181 </widget> |
|
182 </item> |
|
183 <item row="3" column="1"> |
|
184 <widget class="QLineEdit" name="editAuthor"> |
|
185 <property name="toolTip" stdset="0"> |
|
186 <string>Enter your name</string> |
|
187 </property> |
|
188 <property name="whatsThis" stdset="0"> |
|
189 <string>Enter your name.</string> |
|
190 </property> |
|
191 </widget> |
|
192 </item> |
|
193 <item row="0" column="0"> |
|
194 <widget class="QLabel" name="TextLabel1"> |
|
195 <property name="text"> |
|
196 <string>Class &Name:</string> |
|
197 </property> |
|
198 <property name="buddy" stdset="0"> |
|
199 <cstring>editClassName</cstring> |
|
200 </property> |
|
201 <property name="wordWrap"> |
|
202 <bool>false</bool> |
|
203 </property> |
|
204 </widget> |
|
205 </item> |
|
206 <item row="1" column="0"> |
|
207 <widget class="QLabel" name="TextLabel2"> |
|
208 <property name="text"> |
|
209 <string>Co&mment:</string> |
|
210 </property> |
|
211 <property name="buddy" stdset="0"> |
|
212 <cstring>editComment</cstring> |
|
213 </property> |
|
214 <property name="wordWrap"> |
|
215 <bool>false</bool> |
|
216 </property> |
|
217 </widget> |
|
218 </item> |
|
219 <item row="1" column="1" rowspan="2" colspan="1"> |
|
220 <widget class="Q3MultiLineEdit" name="editComment"> |
|
221 <property name="whatsThis" stdset="0"> |
|
222 <string>Enter a comment about the form.</string> |
|
223 </property> |
|
224 </widget> |
|
225 </item> |
|
226 <item row="2" column="0"> |
|
227 <spacer name="Spacer1"> |
|
228 <property name="sizeHint"> |
|
229 <size> |
|
230 <width>0</width> |
|
231 <height>0</height> |
|
232 </size> |
|
233 </property> |
|
234 <property name="sizeType"> |
|
235 <enum>QSizePolicy::Expanding</enum> |
|
236 </property> |
|
237 <property name="orientation"> |
|
238 <enum>Qt::Vertical</enum> |
|
239 </property> |
|
240 </spacer> |
|
241 </item> |
|
242 </layout> |
|
243 </widget> |
|
244 </item> |
|
245 <item row="1" column="1"> |
|
246 <widget class="Q3GroupBox" name="GroupBox2"> |
|
247 <property name="title"> |
|
248 <string>La&youts</string> |
|
249 </property> |
|
250 <layout class="QGridLayout"> |
|
251 <property name="margin"> |
|
252 <number>11</number> |
|
253 </property> |
|
254 <property name="spacing"> |
|
255 <number>6</number> |
|
256 </property> |
|
257 <item row="0" column="2"> |
|
258 <widget class="QSpinBox" name="spinMargin"> |
|
259 <property name="value"> |
|
260 <number>11</number> |
|
261 </property> |
|
262 </widget> |
|
263 </item> |
|
264 <item row="0" column="3"> |
|
265 <spacer name="Spacer3"> |
|
266 <property name="sizeHint"> |
|
267 <size> |
|
268 <width>0</width> |
|
269 <height>0</height> |
|
270 </size> |
|
271 </property> |
|
272 <property name="sizeType"> |
|
273 <enum>QSizePolicy::Expanding</enum> |
|
274 </property> |
|
275 <property name="orientation"> |
|
276 <enum>Qt::Horizontal</enum> |
|
277 </property> |
|
278 </spacer> |
|
279 </item> |
|
280 <item row="1" column="0" rowspan="1" colspan="2"> |
|
281 <widget class="QLabel" name="TextLabel2_2"> |
|
282 <property name="text"> |
|
283 <string>D&efault Spacing:</string> |
|
284 </property> |
|
285 <property name="buddy" stdset="0"> |
|
286 <cstring>spinSpacing</cstring> |
|
287 </property> |
|
288 <property name="wordWrap"> |
|
289 <bool>false</bool> |
|
290 </property> |
|
291 </widget> |
|
292 </item> |
|
293 <item row="2" column="0" rowspan="1" colspan="2"> |
|
294 <widget class="QCheckBox" name="checkLayoutFunctions"> |
|
295 <property name="text"> |
|
296 <string>Use Func&tions:</string> |
|
297 </property> |
|
298 <property name="toolTip" stdset="0"> |
|
299 <string>Use functions to get the margin and spacing</string> |
|
300 </property> |
|
301 <property name="whatsThis" stdset="0"> |
|
302 <string><b>Use a given function for margin and/or spacing</b><p>If you choose this option you must define functions in the line edit below which will be used in the generated code for getting the margin and spacing value. <i>Qt Designer</i> can't preview the correct margin or spacing if you use your own function. Instead, the default values will be used for preview.</string> |
|
303 </property> |
|
304 </widget> |
|
305 </item> |
|
306 <item row="1" column="2"> |
|
307 <widget class="QSpinBox" name="spinSpacing"> |
|
308 <property name="value"> |
|
309 <number>6</number> |
|
310 </property> |
|
311 </widget> |
|
312 </item> |
|
313 <item row="1" column="3"> |
|
314 <spacer name="Spacer4"> |
|
315 <property name="sizeHint"> |
|
316 <size> |
|
317 <width>0</width> |
|
318 <height>0</height> |
|
319 </size> |
|
320 </property> |
|
321 <property name="sizeType"> |
|
322 <enum>QSizePolicy::Expanding</enum> |
|
323 </property> |
|
324 <property name="orientation"> |
|
325 <enum>Qt::Horizontal</enum> |
|
326 </property> |
|
327 </spacer> |
|
328 </item> |
|
329 <item row="0" column="0" rowspan="1" colspan="2"> |
|
330 <widget class="QLabel" name="TextLabel1_3"> |
|
331 <property name="text"> |
|
332 <string>Default Mar&gin:</string> |
|
333 </property> |
|
334 <property name="buddy" stdset="0"> |
|
335 <cstring>spinMargin</cstring> |
|
336 </property> |
|
337 <property name="wordWrap"> |
|
338 <bool>false</bool> |
|
339 </property> |
|
340 </widget> |
|
341 </item> |
|
342 <item row="4" column="0"> |
|
343 <widget class="QLabel" name="spaFuLabel"> |
|
344 <property name="enabled"> |
|
345 <bool>false</bool> |
|
346 </property> |
|
347 <property name="text"> |
|
348 <string>S&pacing:</string> |
|
349 </property> |
|
350 <property name="buddy" stdset="0"> |
|
351 <cstring>editSpacingFunction</cstring> |
|
352 </property> |
|
353 <property name="wordWrap"> |
|
354 <bool>false</bool> |
|
355 </property> |
|
356 </widget> |
|
357 </item> |
|
358 <item row="3" column="0"> |
|
359 <widget class="QLabel" name="marFuLabel"> |
|
360 <property name="enabled"> |
|
361 <bool>false</bool> |
|
362 </property> |
|
363 <property name="sizePolicy"> |
|
364 <sizepolicy> |
|
365 <hsizetype>5</hsizetype> |
|
366 <vsizetype>5</vsizetype> |
|
367 <horstretch>0</horstretch> |
|
368 <verstretch>0</verstretch> |
|
369 </sizepolicy> |
|
370 </property> |
|
371 <property name="text"> |
|
372 <string>Ma&rgin:</string> |
|
373 </property> |
|
374 <property name="buddy" stdset="0"> |
|
375 <cstring>editMarginFunction</cstring> |
|
376 </property> |
|
377 <property name="wordWrap"> |
|
378 <bool>false</bool> |
|
379 </property> |
|
380 </widget> |
|
381 </item> |
|
382 <item row="2" column="2" rowspan="1" colspan="2"> |
|
383 <spacer name="Spacer5"> |
|
384 <property name="sizeHint"> |
|
385 <size> |
|
386 <width>0</width> |
|
387 <height>0</height> |
|
388 </size> |
|
389 </property> |
|
390 <property name="sizeType"> |
|
391 <enum>QSizePolicy::Expanding</enum> |
|
392 </property> |
|
393 <property name="orientation"> |
|
394 <enum>Qt::Horizontal</enum> |
|
395 </property> |
|
396 </spacer> |
|
397 </item> |
|
398 <item row="4" column="1" rowspan="1" colspan="3"> |
|
399 <widget class="QLineEdit" name="editSpacingFunction"> |
|
400 <property name="enabled"> |
|
401 <bool>false</bool> |
|
402 </property> |
|
403 <property name="toolTip" stdset="0"> |
|
404 <string>Specify spacing function (only the function's name, no parentheses!)</string> |
|
405 </property> |
|
406 <property name="whatsThis" stdset="0"> |
|
407 <string><b>Specify spacing function</b><p>Specify the function which should be used for getting the spacing in the generated code. <em>Only enter the function's name, with no parentheses.</em></string> |
|
408 </property> |
|
409 </widget> |
|
410 </item> |
|
411 <item row="3" column="1" rowspan="1" colspan="3"> |
|
412 <widget class="QLineEdit" name="editMarginFunction"> |
|
413 <property name="enabled"> |
|
414 <bool>false</bool> |
|
415 </property> |
|
416 <property name="sizePolicy"> |
|
417 <sizepolicy> |
|
418 <hsizetype>5</hsizetype> |
|
419 <vsizetype>0</vsizetype> |
|
420 <horstretch>0</horstretch> |
|
421 <verstretch>0</verstretch> |
|
422 </sizepolicy> |
|
423 </property> |
|
424 <property name="toolTip" stdset="0"> |
|
425 <string>Specify margin function (only the function's name, no parentheses!)</string> |
|
426 </property> |
|
427 <property name="whatsThis" stdset="0"> |
|
428 <string><b>Specify margin function</b><p>Specify the function which should be used for getting the margin in the generated code. <em>Only enter the function's name, with no parentheses.</em></string> |
|
429 </property> |
|
430 </widget> |
|
431 </item> |
|
432 </layout> |
|
433 </widget> |
|
434 </item> |
|
435 <item row="2" column="0" rowspan="1" colspan="2"> |
|
436 <layout class="QHBoxLayout"> |
|
437 <property name="margin"> |
|
438 <number>0</number> |
|
439 </property> |
|
440 <property name="spacing"> |
|
441 <number>6</number> |
|
442 </property> |
|
443 <item> |
|
444 <widget class="QPushButton" name="buttonHelp"> |
|
445 <property name="text"> |
|
446 <string>&Help</string> |
|
447 </property> |
|
448 <property name="autoDefault"> |
|
449 <bool>true</bool> |
|
450 </property> |
|
451 </widget> |
|
452 </item> |
|
453 <item> |
|
454 <spacer name="Horizontal Spacing2"> |
|
455 <property name="sizeHint"> |
|
456 <size> |
|
457 <width>0</width> |
|
458 <height>0</height> |
|
459 </size> |
|
460 </property> |
|
461 <property name="sizeType"> |
|
462 <enum>QSizePolicy::Expanding</enum> |
|
463 </property> |
|
464 <property name="orientation"> |
|
465 <enum>Qt::Horizontal</enum> |
|
466 </property> |
|
467 </spacer> |
|
468 </item> |
|
469 <item> |
|
470 <widget class="QPushButton" name="buttonOk"> |
|
471 <property name="text"> |
|
472 <string>&OK</string> |
|
473 </property> |
|
474 <property name="autoDefault"> |
|
475 <bool>true</bool> |
|
476 </property> |
|
477 <property name="default"> |
|
478 <bool>true</bool> |
|
479 </property> |
|
480 <property name="whatsThis" stdset="0"> |
|
481 <string>Close the dialog and apply all the changes.</string> |
|
482 </property> |
|
483 </widget> |
|
484 </item> |
|
485 <item> |
|
486 <widget class="QPushButton" name="buttonCancel"> |
|
487 <property name="text"> |
|
488 <string>&Cancel</string> |
|
489 </property> |
|
490 <property name="autoDefault"> |
|
491 <bool>true</bool> |
|
492 </property> |
|
493 <property name="whatsThis" stdset="0"> |
|
494 <string>Close the dialog and discard any changes.</string> |
|
495 </property> |
|
496 </widget> |
|
497 </item> |
|
498 </layout> |
|
499 </item> |
|
500 </layout> |
|
501 </widget> |
|
502 <layoutdefault spacing="6" margin="11"/> |
|
503 <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> |
|
504 <tabstops> |
|
505 <tabstop>editClassName</tabstop> |
|
506 <tabstop>editComment</tabstop> |
|
507 <tabstop>editAuthor</tabstop> |
|
508 <tabstop>radioPixmapInline</tabstop> |
|
509 <tabstop>radioPixmapFunction</tabstop> |
|
510 <tabstop>editPixmapFunction</tabstop> |
|
511 <tabstop>radioProjectImageFile</tabstop> |
|
512 <tabstop>spinMargin</tabstop> |
|
513 <tabstop>spinSpacing</tabstop> |
|
514 <tabstop>checkLayoutFunctions</tabstop> |
|
515 <tabstop>editMarginFunction</tabstop> |
|
516 <tabstop>editSpacingFunction</tabstop> |
|
517 <tabstop>buttonOk</tabstop> |
|
518 <tabstop>buttonCancel</tabstop> |
|
519 <tabstop>buttonHelp</tabstop> |
|
520 </tabstops> |
|
521 <connections> |
|
522 <connection> |
|
523 <sender>buttonCancel</sender> |
|
524 <signal>clicked()</signal> |
|
525 <receiver>FormSettingsBase</receiver> |
|
526 <slot>reject()</slot> |
|
527 </connection> |
|
528 <connection> |
|
529 <sender>buttonOk</sender> |
|
530 <signal>clicked()</signal> |
|
531 <receiver>FormSettingsBase</receiver> |
|
532 <slot>okClicked()</slot> |
|
533 </connection> |
|
534 <connection> |
|
535 <sender>radioPixmapFunction</sender> |
|
536 <signal>toggled(bool)</signal> |
|
537 <receiver>editPixmapFunction</receiver> |
|
538 <slot>setEnabled(bool)</slot> |
|
539 </connection> |
|
540 <connection> |
|
541 <sender>checkLayoutFunctions</sender> |
|
542 <signal>toggled(bool)</signal> |
|
543 <receiver>editSpacingFunction</receiver> |
|
544 <slot>setEnabled(bool)</slot> |
|
545 </connection> |
|
546 <connection> |
|
547 <sender>checkLayoutFunctions</sender> |
|
548 <signal>toggled(bool)</signal> |
|
549 <receiver>editMarginFunction</receiver> |
|
550 <slot>setEnabled(bool)</slot> |
|
551 </connection> |
|
552 <connection> |
|
553 <sender>checkLayoutFunctions</sender> |
|
554 <signal>toggled(bool)</signal> |
|
555 <receiver>marFuLabel</receiver> |
|
556 <slot>setEnabled(bool)</slot> |
|
557 </connection> |
|
558 <connection> |
|
559 <sender>checkLayoutFunctions</sender> |
|
560 <signal>toggled(bool)</signal> |
|
561 <receiver>spaFuLabel</receiver> |
|
562 <slot>setEnabled(bool)</slot> |
|
563 </connection> |
|
564 </connections> |
|
565 </ui> |