|
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>IconViewEditorBase</class> |
|
46 <widget class="QDialog" name="IconViewEditorBase"> |
|
47 <property name="geometry"> |
|
48 <rect> |
|
49 <x>0</x> |
|
50 <y>0</y> |
|
51 <width>567</width> |
|
52 <height>321</height> |
|
53 </rect> |
|
54 </property> |
|
55 <property name="windowTitle"> |
|
56 <string>Edit Iconview</string> |
|
57 </property> |
|
58 <property name="sizeGripEnabled"> |
|
59 <bool>true</bool> |
|
60 </property> |
|
61 <property name="whatsThis" stdset="0"> |
|
62 <string><b>Edit Iconview</b><p>Add, edit or delete items in the icon view.</p><p>Click the <b>New Item</b>-button to create a new item, then enter text and choose a pixmap.</p><p>Select an item from the view and click the <b>Delete Item</b>-button to remove the item from the iconview.</p></string> |
|
63 </property> |
|
64 <layout class="QVBoxLayout"> |
|
65 <property name="margin"> |
|
66 <number>11</number> |
|
67 </property> |
|
68 <property name="spacing"> |
|
69 <number>6</number> |
|
70 </property> |
|
71 <item> |
|
72 <layout class="QHBoxLayout"> |
|
73 <property name="margin"> |
|
74 <number>0</number> |
|
75 </property> |
|
76 <property name="spacing"> |
|
77 <number>6</number> |
|
78 </property> |
|
79 <item> |
|
80 <widget class="Q3IconView" name="preview"> |
|
81 <property name="whatsThis" stdset="0"> |
|
82 <string>All items in the iconview.</string> |
|
83 </property> |
|
84 </widget> |
|
85 </item> |
|
86 <item> |
|
87 <layout class="QVBoxLayout"> |
|
88 <property name="margin"> |
|
89 <number>0</number> |
|
90 </property> |
|
91 <property name="spacing"> |
|
92 <number>6</number> |
|
93 </property> |
|
94 <item> |
|
95 <widget class="QPushButton" name="itemNew"> |
|
96 <property name="text"> |
|
97 <string>&New Item</string> |
|
98 </property> |
|
99 <property name="toolTip" stdset="0"> |
|
100 <string>Add an item</string> |
|
101 </property> |
|
102 <property name="whatsThis" stdset="0"> |
|
103 <string>Create a new item for the iconview.</string> |
|
104 </property> |
|
105 </widget> |
|
106 </item> |
|
107 <item> |
|
108 <widget class="QPushButton" name="itemDelete"> |
|
109 <property name="text"> |
|
110 <string>&Delete Item</string> |
|
111 </property> |
|
112 <property name="toolTip" stdset="0"> |
|
113 <string>Delete item</string> |
|
114 </property> |
|
115 <property name="whatsThis" stdset="0"> |
|
116 <string>Delete the selected item.</string> |
|
117 </property> |
|
118 </widget> |
|
119 </item> |
|
120 <item> |
|
121 <spacer name="Vertical Spacing1"> |
|
122 <property name="sizeHint"> |
|
123 <size> |
|
124 <width>20</width> |
|
125 <height>20</height> |
|
126 </size> |
|
127 </property> |
|
128 <property name="sizeType"> |
|
129 <enum>QSizePolicy::Expanding</enum> |
|
130 </property> |
|
131 <property name="orientation"> |
|
132 <enum>Qt::Vertical</enum> |
|
133 </property> |
|
134 </spacer> |
|
135 </item> |
|
136 </layout> |
|
137 </item> |
|
138 <item> |
|
139 <widget class="Q3GroupBox" name="GroupBox1"> |
|
140 <property name="sizePolicy"> |
|
141 <sizepolicy> |
|
142 <hsizetype>0</hsizetype> |
|
143 <vsizetype>5</vsizetype> |
|
144 <horstretch>0</horstretch> |
|
145 <verstretch>0</verstretch> |
|
146 </sizepolicy> |
|
147 </property> |
|
148 <property name="title"> |
|
149 <string>&Item Properties</string> |
|
150 </property> |
|
151 <layout class="QGridLayout"> |
|
152 <property name="margin"> |
|
153 <number>11</number> |
|
154 </property> |
|
155 <property name="spacing"> |
|
156 <number>6</number> |
|
157 </property> |
|
158 <item row="0" column="0"> |
|
159 <widget class="QLabel" name="Label1"> |
|
160 <property name="text"> |
|
161 <string>&Text:</string> |
|
162 </property> |
|
163 <property name="buddy" stdset="0"> |
|
164 <cstring>itemText</cstring> |
|
165 </property> |
|
166 <property name="wordWrap"> |
|
167 <bool>false</bool> |
|
168 </property> |
|
169 </widget> |
|
170 </item> |
|
171 <item row="0" column="1"> |
|
172 <widget class="QLineEdit" name="itemText"> |
|
173 <property name="minimumSize"> |
|
174 <size> |
|
175 <width>0</width> |
|
176 <height>0</height> |
|
177 </size> |
|
178 </property> |
|
179 <property name="toolTip" stdset="0"> |
|
180 <string>Change text</string> |
|
181 </property> |
|
182 <property name="whatsThis" stdset="0"> |
|
183 <string>Change the text for the selected item.</string> |
|
184 </property> |
|
185 </widget> |
|
186 </item> |
|
187 <item row="1" column="0"> |
|
188 <widget class="QLabel" name="Label2"> |
|
189 <property name="text"> |
|
190 <string>&Pixmap:</string> |
|
191 </property> |
|
192 <property name="buddy" stdset="0"> |
|
193 <cstring>itemChoosePixmap</cstring> |
|
194 </property> |
|
195 <property name="wordWrap"> |
|
196 <bool>false</bool> |
|
197 </property> |
|
198 </widget> |
|
199 </item> |
|
200 <item row="1" column="1"> |
|
201 <layout class="QHBoxLayout"> |
|
202 <property name="margin"> |
|
203 <number>0</number> |
|
204 </property> |
|
205 <property name="spacing"> |
|
206 <number>6</number> |
|
207 </property> |
|
208 <item> |
|
209 <widget class="QLabel" name="itemPixmap"> |
|
210 <property name="text"> |
|
211 <string>Label4</string> |
|
212 </property> |
|
213 <property name="wordWrap"> |
|
214 <bool>false</bool> |
|
215 </property> |
|
216 </widget> |
|
217 </item> |
|
218 <item> |
|
219 <widget class="QPushButton" name="itemDeletePixmap"> |
|
220 <property name="maximumSize"> |
|
221 <size> |
|
222 <width>30</width> |
|
223 <height>22</height> |
|
224 </size> |
|
225 </property> |
|
226 <property name="text"> |
|
227 <string/> |
|
228 </property> |
|
229 <property name="icon"> |
|
230 <pixmap>designer_s_editcut.png</pixmap> |
|
231 </property> |
|
232 <property name="toolTip" stdset="0"> |
|
233 <string>Delete Pixmap</string> |
|
234 </property> |
|
235 <property name="whatsThis" stdset="0"> |
|
236 <string>Delete the selected item's pixmap.</string> |
|
237 </property> |
|
238 </widget> |
|
239 </item> |
|
240 <item> |
|
241 <widget class="QPushButton" name="itemChoosePixmap"> |
|
242 <property name="maximumSize"> |
|
243 <size> |
|
244 <width>30</width> |
|
245 <height>22</height> |
|
246 </size> |
|
247 </property> |
|
248 <property name="text"> |
|
249 <string>...</string> |
|
250 </property> |
|
251 <property name="toolTip" stdset="0"> |
|
252 <string>Select a Pixmap</string> |
|
253 </property> |
|
254 <property name="whatsThis" stdset="0"> |
|
255 <string>Select a pixmap file for the current item.</string> |
|
256 </property> |
|
257 </widget> |
|
258 </item> |
|
259 </layout> |
|
260 </item> |
|
261 </layout> |
|
262 </widget> |
|
263 </item> |
|
264 </layout> |
|
265 </item> |
|
266 <item> |
|
267 <layout class="QHBoxLayout"> |
|
268 <property name="margin"> |
|
269 <number>0</number> |
|
270 </property> |
|
271 <property name="spacing"> |
|
272 <number>6</number> |
|
273 </property> |
|
274 <item> |
|
275 <widget class="QPushButton" name="buttonHelp"> |
|
276 <property name="text"> |
|
277 <string>&Help</string> |
|
278 </property> |
|
279 <property name="autoDefault"> |
|
280 <bool>true</bool> |
|
281 </property> |
|
282 </widget> |
|
283 </item> |
|
284 <item> |
|
285 <spacer name="Horizontal Spacing2"> |
|
286 <property name="sizeHint"> |
|
287 <size> |
|
288 <width>20</width> |
|
289 <height>20</height> |
|
290 </size> |
|
291 </property> |
|
292 <property name="sizeType"> |
|
293 <enum>QSizePolicy::Expanding</enum> |
|
294 </property> |
|
295 <property name="orientation"> |
|
296 <enum>Qt::Horizontal</enum> |
|
297 </property> |
|
298 </spacer> |
|
299 </item> |
|
300 <item> |
|
301 <widget class="QPushButton" name="buttonApply"> |
|
302 <property name="text"> |
|
303 <string>&Apply</string> |
|
304 </property> |
|
305 <property name="autoDefault"> |
|
306 <bool>true</bool> |
|
307 </property> |
|
308 <property name="whatsThis" stdset="0"> |
|
309 <string>Apply all changes.</string> |
|
310 </property> |
|
311 </widget> |
|
312 </item> |
|
313 <item> |
|
314 <widget class="QPushButton" name="buttonOk"> |
|
315 <property name="text"> |
|
316 <string>&OK</string> |
|
317 </property> |
|
318 <property name="autoDefault"> |
|
319 <bool>true</bool> |
|
320 </property> |
|
321 <property name="default"> |
|
322 <bool>true</bool> |
|
323 </property> |
|
324 <property name="whatsThis" stdset="0"> |
|
325 <string>Close the dialog and apply all the changes.</string> |
|
326 </property> |
|
327 </widget> |
|
328 </item> |
|
329 <item> |
|
330 <widget class="QPushButton" name="buttonCancel"> |
|
331 <property name="text"> |
|
332 <string>&Cancel</string> |
|
333 </property> |
|
334 <property name="autoDefault"> |
|
335 <bool>true</bool> |
|
336 </property> |
|
337 <property name="whatsThis" stdset="0"> |
|
338 <string>Close the dialog and discard any changes.</string> |
|
339 </property> |
|
340 </widget> |
|
341 </item> |
|
342 </layout> |
|
343 </item> |
|
344 </layout> |
|
345 </widget> |
|
346 <layoutdefault spacing="6" margin="11"/> |
|
347 <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> |
|
348 <tabstops> |
|
349 <tabstop>buttonOk</tabstop> |
|
350 <tabstop>buttonCancel</tabstop> |
|
351 <tabstop>preview</tabstop> |
|
352 <tabstop>itemNew</tabstop> |
|
353 <tabstop>itemDelete</tabstop> |
|
354 <tabstop>itemText</tabstop> |
|
355 <tabstop>itemDeletePixmap</tabstop> |
|
356 <tabstop>itemChoosePixmap</tabstop> |
|
357 <tabstop>buttonHelp</tabstop> |
|
358 <tabstop>buttonApply</tabstop> |
|
359 </tabstops> |
|
360 <connections> |
|
361 <connection> |
|
362 <sender>itemNew</sender> |
|
363 <signal>clicked()</signal> |
|
364 <receiver>IconViewEditorBase</receiver> |
|
365 <slot>insertNewItem()</slot> |
|
366 </connection> |
|
367 <connection> |
|
368 <sender>itemDelete</sender> |
|
369 <signal>clicked()</signal> |
|
370 <receiver>IconViewEditorBase</receiver> |
|
371 <slot>deleteCurrentItem()</slot> |
|
372 </connection> |
|
373 <connection> |
|
374 <sender>itemText</sender> |
|
375 <signal>textChanged(QString)</signal> |
|
376 <receiver>IconViewEditorBase</receiver> |
|
377 <slot>currentTextChanged(QString)</slot> |
|
378 </connection> |
|
379 <connection> |
|
380 <sender>buttonOk</sender> |
|
381 <signal>clicked()</signal> |
|
382 <receiver>IconViewEditorBase</receiver> |
|
383 <slot>okClicked()</slot> |
|
384 </connection> |
|
385 <connection> |
|
386 <sender>buttonApply</sender> |
|
387 <signal>clicked()</signal> |
|
388 <receiver>IconViewEditorBase</receiver> |
|
389 <slot>applyClicked()</slot> |
|
390 </connection> |
|
391 <connection> |
|
392 <sender>buttonCancel</sender> |
|
393 <signal>clicked()</signal> |
|
394 <receiver>IconViewEditorBase</receiver> |
|
395 <slot>cancelClicked()</slot> |
|
396 </connection> |
|
397 <connection> |
|
398 <sender>itemChoosePixmap</sender> |
|
399 <signal>clicked()</signal> |
|
400 <receiver>IconViewEditorBase</receiver> |
|
401 <slot>choosePixmap()</slot> |
|
402 </connection> |
|
403 <connection> |
|
404 <sender>preview</sender> |
|
405 <signal>selectionChanged(Q3IconViewItem*)</signal> |
|
406 <receiver>IconViewEditorBase</receiver> |
|
407 <slot>currentItemChanged(Q3IconViewItem*)</slot> |
|
408 </connection> |
|
409 <connection> |
|
410 <sender>preview</sender> |
|
411 <signal>currentChanged(Q3IconViewItem*)</signal> |
|
412 <receiver>IconViewEditorBase</receiver> |
|
413 <slot>currentItemChanged(Q3IconViewItem*)</slot> |
|
414 </connection> |
|
415 <connection> |
|
416 <sender>itemDeletePixmap</sender> |
|
417 <signal>clicked()</signal> |
|
418 <receiver>IconViewEditorBase</receiver> |
|
419 <slot>deletePixmap()</slot> |
|
420 </connection> |
|
421 </connections> |
|
422 </ui> |