1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <ui version=
"4.0" stdsetdef=
"1">
4 <comment>*********************************************************************
6 ** Copyright (C)
2009 Nokia Corporation and/or its subsidiary(-ies).
7 ** All rights reserved.
8 ** Contact: Nokia Corporation (qt-info@nokia.com)
10 ** This file is part of the test suite of the Qt Toolkit.
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
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.
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.
31 ** If you have questions regarding the use of this file, please contact
32 ** Nokia at qt-info@nokia.com.
43 *********************************************************************
</comment>
44 <exportmacro></exportmacro>
45 <class>ListBoxEditorBase
</class>
46 <widget class=
"QDialog" name=
"ListBoxEditorBase">
47 <property name=
"geometry">
55 <property name=
"windowTitle">
56 <string>Edit Listbox
</string>
58 <property name=
"sizeGripEnabled">
61 <property name=
"whatsThis" stdset=
"0">
62 <string><b
>Edit Listbox
</b
><p
>Add, edit or delete items in the listbox.
</p
><p
>Click the
<b
>New Item
</b
>-button to create a new listbox entry, then enter text and choose a pixmap.
</p
><p
>Select an item from the list and click the
<b
>Delete Item
</b
>-button to remove the item from the list.
</p
></string>
64 <layout class=
"QGridLayout">
65 <property name=
"margin">
68 <property name=
"spacing">
71 <item row=
"5" column=
"0" rowspan=
"1" colspan=
"3">
72 <layout class=
"QHBoxLayout">
73 <property name=
"margin">
76 <property name=
"spacing">
80 <widget class=
"QPushButton" name=
"helpButton">
81 <property name=
"text">
82 <string>&Help
</string>
84 <property name=
"autoDefault">
90 <spacer name=
"Horizontal Spacing2">
91 <property name=
"sizeHint">
97 <property name=
"sizeType">
98 <enum>QSizePolicy::Expanding
</enum>
100 <property name=
"orientation">
101 <enum>Qt::Horizontal
</enum>
106 <widget class=
"QPushButton" name=
"buttonApply">
107 <property name=
"text">
108 <string>&Apply
</string>
110 <property name=
"autoDefault">
113 <property name=
"whatsThis" stdset=
"0">
114 <string>Apply all changes.
</string>
119 <widget class=
"QPushButton" name=
"buttonOk">
120 <property name=
"text">
121 <string>&OK
</string>
123 <property name=
"autoDefault">
126 <property name=
"default">
129 <property name=
"whatsThis" stdset=
"0">
130 <string>Close the dialog and apply all the changes.
</string>
135 <widget class=
"QPushButton" name=
"buttonCancel">
136 <property name=
"text">
137 <string>&Cancel
</string>
139 <property name=
"autoDefault">
142 <property name=
"whatsThis" stdset=
"0">
143 <string>Close the dialog and discard any changes.
</string>
149 <item row=
"0" column=
"0" rowspan=
"5" colspan=
"1">
150 <widget class=
"Q3ListBox" name=
"preview">
151 <property name=
"toolTip" stdset=
"0">
152 <string>Item list
</string>
154 <property name=
"whatsThis" stdset=
"0">
155 <string>The list of items.
</string>
159 <item row=
"0" column=
"2" rowspan=
"5" colspan=
"1">
160 <widget class=
"Q3GroupBox" name=
"GroupBox1">
161 <property name=
"title">
162 <string>&Item Properties
</string>
164 <layout class=
"QGridLayout">
165 <property name=
"margin">
168 <property name=
"spacing">
171 <item row=
"1" column=
"0">
172 <widget class=
"QLabel" name=
"Label2">
173 <property name=
"text">
174 <string>&Pixmap:
</string>
176 <property name=
"buddy" stdset=
"0">
177 <cstring>itemChoosePixmap
</cstring>
179 <property name=
"wordWrap">
184 <item row=
"1" column=
"1">
185 <widget class=
"QLabel" name=
"itemPixmap">
186 <property name=
"text">
187 <string>Label4
</string>
189 <property name=
"wordWrap">
194 <item row=
"1" column=
"2">
195 <widget class=
"QPushButton" name=
"itemDeletePixmap">
196 <property name=
"maximumSize">
202 <property name=
"text">
205 <property name=
"icon">
206 <pixmap>designer_s_editcut.png
</pixmap>
208 <property name=
"toolTip" stdset=
"0">
209 <string>Delete Pixmap
</string>
211 <property name=
"whatsThis" stdset=
"0">
212 <string>Delete the selected item's pixmap.
</string>
216 <item row=
"1" column=
"3">
217 <widget class=
"QPushButton" name=
"itemChoosePixmap">
218 <property name=
"maximumSize">
224 <property name=
"text">
227 <property name=
"toolTip" stdset=
"0">
228 <string>Select a Pixmap
</string>
230 <property name=
"whatsThis" stdset=
"0">
231 <string>Choose a pixmap file for the selected item.
</string>
235 <item row=
"0" column=
"0">
236 <widget class=
"QLabel" name=
"Label1">
237 <property name=
"text">
238 <string>&Text:
</string>
240 <property name=
"buddy" stdset=
"0">
241 <cstring>itemText
</cstring>
243 <property name=
"wordWrap">
248 <item row=
"0" column=
"1" rowspan=
"1" colspan=
"3">
249 <widget class=
"QLineEdit" name=
"itemText">
250 <property name=
"minimumSize">
256 <property name=
"toolTip" stdset=
"0">
257 <string>Change text
</string>
259 <property name=
"whatsThis" stdset=
"0">
260 <string>Change the selected item's text.
</string>
267 <item row=
"0" column=
"1">
268 <widget class=
"QPushButton" name=
"itemNew">
269 <property name=
"text">
270 <string>&New Item
</string>
272 <property name=
"toolTip" stdset=
"0">
273 <string>Add an item
</string>
275 <property name=
"whatsThis" stdset=
"0">
276 <string><b
>Add a new item.
</b
><p
>New items are appended to the list.
</p
></string>
280 <item row=
"1" column=
"1">
281 <widget class=
"QPushButton" name=
"itemDelete">
282 <property name=
"text">
283 <string>&Delete Item
</string>
285 <property name=
"toolTip" stdset=
"0">
286 <string>Delete Item
</string>
288 <property name=
"whatsThis" stdset=
"0">
289 <string>Delete the selected item
</string>
293 <item row=
"2" column=
"1">
294 <spacer name=
"Vertical Spacing1">
295 <property name=
"sizeHint">
301 <property name=
"sizeType">
302 <enum>QSizePolicy::Expanding
</enum>
304 <property name=
"orientation">
305 <enum>Qt::Vertical
</enum>
309 <item row=
"3" column=
"1">
310 <widget class=
"QPushButton" name=
"itemUp">
311 <property name=
"text">
314 <property name=
"icon">
315 <pixmap>designer_s_up.png
</pixmap>
317 <property name=
"toolTip" stdset=
"0">
318 <string>Move up
</string>
320 <property name=
"whatsThis" stdset=
"0">
321 <string>Moves the selected item up.
</string>
325 <item row=
"4" column=
"1">
326 <widget class=
"QPushButton" name=
"itemDown">
327 <property name=
"text">
330 <property name=
"icon">
331 <pixmap>designer_s_down.png
</pixmap>
333 <property name=
"toolTip" stdset=
"0">
334 <string>Move down
</string>
336 <property name=
"whatsThis" stdset=
"0">
337 <string>Move the selected item down.
</string>
343 <layoutdefault spacing=
"6" margin=
"11"/>
344 <pixmapfunction>qPixmapFromMimeSource
</pixmapfunction>
346 <tabstop>buttonOk
</tabstop>
347 <tabstop>buttonCancel
</tabstop>
348 <tabstop>preview
</tabstop>
349 <tabstop>itemNew
</tabstop>
350 <tabstop>itemDelete
</tabstop>
351 <tabstop>itemUp
</tabstop>
352 <tabstop>itemDown
</tabstop>
353 <tabstop>itemText
</tabstop>
354 <tabstop>itemDeletePixmap
</tabstop>
355 <tabstop>itemChoosePixmap
</tabstop>
356 <tabstop>helpButton
</tabstop>
357 <tabstop>buttonApply
</tabstop>
361 <sender>itemNew
</sender>
362 <signal>clicked()
</signal>
363 <receiver>ListBoxEditorBase
</receiver>
364 <slot>insertNewItem()
</slot>
367 <sender>itemDelete
</sender>
368 <signal>clicked()
</signal>
369 <receiver>ListBoxEditorBase
</receiver>
370 <slot>deleteCurrentItem()
</slot>
373 <sender>itemText
</sender>
374 <signal>textChanged(QString)
</signal>
375 <receiver>ListBoxEditorBase
</receiver>
376 <slot>currentTextChanged(QString)
</slot>
379 <sender>buttonOk
</sender>
380 <signal>clicked()
</signal>
381 <receiver>ListBoxEditorBase
</receiver>
382 <slot>okClicked()
</slot>
385 <sender>buttonApply
</sender>
386 <signal>clicked()
</signal>
387 <receiver>ListBoxEditorBase
</receiver>
388 <slot>applyClicked()
</slot>
391 <sender>buttonCancel
</sender>
392 <signal>clicked()
</signal>
393 <receiver>ListBoxEditorBase
</receiver>
394 <slot>cancelClicked()
</slot>
397 <sender>itemChoosePixmap
</sender>
398 <signal>clicked()
</signal>
399 <receiver>ListBoxEditorBase
</receiver>
400 <slot>choosePixmap()
</slot>
403 <sender>itemDeletePixmap
</sender>
404 <signal>clicked()
</signal>
405 <receiver>ListBoxEditorBase
</receiver>
406 <slot>deletePixmap()
</slot>
409 <sender>itemUp
</sender>
410 <signal>clicked()
</signal>
411 <receiver>ListBoxEditorBase
</receiver>
412 <slot>moveItemUp()
</slot>
415 <sender>itemDown
</sender>
416 <signal>clicked()
</signal>
417 <receiver>ListBoxEditorBase
</receiver>
418 <slot>moveItemDown()
</slot>
421 <sender>preview
</sender>
422 <signal>selectionChanged(Q3ListBoxItem*)
</signal>
423 <receiver>ListBoxEditorBase
</receiver>
424 <slot>currentItemChanged(Q3ListBoxItem*)
</slot>
427 <sender>preview
</sender>
428 <signal>currentChanged(Q3ListBoxItem*)
</signal>
429 <receiver>ListBoxEditorBase
</receiver>
430 <slot>currentItemChanged(Q3ListBoxItem*)
</slot>