1
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
2
<class>ListViewEditorBase</class>
3
<comment>*********************************************************************
4
** Copyright (C) 2000 Trolltech AS. All rights reserved.
6
** This file is part of Qt Designer.
8
** This file may be distributed and/or modified under the terms of the
9
** GNU General Public License version 2 as published by the Free Software
10
** Foundation and appearing in the file LICENSE.GPL included in the
11
** packaging of this file.
13
** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
14
** licenses may use this file in accordance with the Qt Commercial License
15
** Agreement provided with the Software.
17
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
18
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20
** See http://www.trolltech.com/gpl/ for GPL licensing information.
21
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
22
** information about Qt Commercial License Agreements.
24
** Contact info@trolltech.com if any conditions of this licensing are
27
*********************************************************************</comment>
28
<widget class="QDialog">
29
<property name="name">
30
<cstring>ListViewEditorBase</cstring>
32
<property name="geometry">
40
<property name="caption">
41
<string>Edit Listview</string>
43
<property name="sizeGripEnabled">
46
<property name="whatsThis" stdset="0">
47
<string><b>Edit Listview</b><p>Use the controls on the <b>Items</b>-tab to add, edit or delete items in the listview. Change the column configuration of the listview using the controls on the <b>Columns</b>-tab.</p>Click the <b>New Item</b>-button to create a new item, then enter text and add 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>
50
<property name="name">
51
<cstring>unnamed</cstring>
53
<property name="margin">
56
<property name="spacing">
59
<widget class="QTabWidget">
60
<property name="name">
61
<cstring>tabWidget</cstring>
63
<widget class="QWidget">
64
<property name="name">
65
<cstring>Widget10</cstring>
67
<attribute name="title">
68
<string>&Items</string>
71
<property name="name">
72
<cstring>unnamed</cstring>
74
<property name="margin">
77
<property name="spacing">
80
<widget class="QPushButton" row="2" column="1">
81
<property name="name">
82
<cstring>itemDelete</cstring>
84
<property name="text">
85
<string>&Delete Item</string>
87
<property name="toolTip" stdset="0">
88
<string>Delete item</string>
90
<property name="whatsThis" stdset="0">
91
<string><b>Deletes the selected item.</b><p>Any sub-items are also deleted.</p></string>
94
<widget class="QGroupBox" row="0" column="2" rowspan="8" colspan="1">
95
<property name="name">
96
<cstring>GroupBox1</cstring>
98
<property name="sizePolicy">
100
<hsizetype>0</hsizetype>
101
<vsizetype>5</vsizetype>
102
<horstretch>0</horstretch>
103
<verstretch>0</verstretch>
106
<property name="title">
107
<string>Item Properties</string>
110
<property name="name">
111
<cstring>unnamed</cstring>
113
<property name="margin">
116
<property name="spacing">
119
<widget class="QLabel" row="2" column="0">
120
<property name="name">
121
<cstring>Label2</cstring>
123
<property name="text">
124
<string>Pi&xmap:</string>
126
<property name="buddy" stdset="0">
127
<cstring>itemChoosePixmap</cstring>
130
<widget class="QLabel" row="1" column="0">
131
<property name="name">
132
<cstring>Label1</cstring>
134
<property name="text">
135
<string>&Text:</string>
137
<property name="buddy" stdset="0">
138
<cstring>itemText</cstring>
141
<widget class="QLineEdit" row="1" column="1">
142
<property name="name">
143
<cstring>itemText</cstring>
145
<property name="minimumSize">
151
<property name="toolTip" stdset="0">
152
<string>Change text</string>
154
<property name="whatsThis" stdset="0">
155
<string><b>Change the text of the item.</b><p>The text will be changed in the current column of the selected item.</p></string>
158
<widget class="QSpinBox" row="0" column="1">
159
<property name="name">
160
<cstring>itemColumn</cstring>
162
<property name="toolTip" stdset="0">
163
<string>Change column</string>
165
<property name="whatsThis" stdset="0">
166
<string><b>Select the current column.</b><p>The item's text and pixmap will be changed for the current column</p></string>
169
<widget class="QLabel" row="0" column="0">
170
<property name="name">
171
<cstring>Label4</cstring>
173
<property name="text">
174
<string>Colu&mn:</string>
176
<property name="buddy" stdset="0">
177
<cstring>itemColumn</cstring>
180
<widget class="QLayoutWidget" row="2" column="1">
181
<property name="name">
182
<cstring>Layout2</cstring>
185
<property name="name">
186
<cstring>unnamed</cstring>
188
<property name="margin">
191
<property name="spacing">
194
<widget class="QLabel">
195
<property name="name">
196
<cstring>itemPixmap</cstring>
198
<property name="text">
199
<string>Label4</string>
202
<widget class="QPushButton">
203
<property name="name">
204
<cstring>itemDeletePixmap</cstring>
206
<property name="maximumSize">
212
<property name="text">
215
<property name="pixmap">
216
<pixmap>"designer_s_editcut.png"</pixmap>
218
<property name="toolTip" stdset="0">
219
<string>Delete Pixmap</string>
221
<property name="whatsThis" stdset="0">
222
<string><b>Delete the selected item's pixmap.</b><p>The pixmap in the current column of the selected item will be deleted.</p></string>
225
<widget class="QPushButton">
226
<property name="name">
227
<cstring>itemChoosePixmap</cstring>
229
<property name="maximumSize">
235
<property name="text">
238
<property name="toolTip" stdset="0">
239
<string>Select a Pixmap</string>
241
<property name="whatsThis" stdset="0">
242
<string><b>Select a pixmap file for the item.</b><p>The pixmap will be changed in the current column of the selected item.</p></string>
249
<widget class="QPushButton" row="0" column="1">
250
<property name="name">
251
<cstring>itemNew</cstring>
253
<property name="text">
254
<string>&New Item</string>
256
<property name="toolTip" stdset="0">
257
<string>Add an item</string>
259
<property name="whatsThis" stdset="0">
260
<string><b>Adds a new item to the list.</b><p>The item will be inserted at the top of the list and can be moved using the up- and down-buttons.</p></string>
263
<widget class="QListView" row="0" column="0" rowspan="8" colspan="1">
264
<property name="name">
265
<cstring>itemsPreview</cstring>
267
<property name="whatsThis" stdset="0">
268
<string>The list of items.</string>
271
<widget class="QPushButton" row="1" column="1">
272
<property name="name">
273
<cstring>itemNewSub</cstring>
275
<property name="text">
276
<string>New &Subitem</string>
278
<property name="toolTip" stdset="0">
279
<string>Add a subitem</string>
281
<property name="whatsThis" stdset="0">
282
<string><b>Create a new sub-item for the selected item.</b><p>New sub-items are inserted at the top of the list of sub-items, and new levels are created automatically.</p></string>
285
<spacer row="3" column="1">
286
<property name="name">
287
<cstring>Vertical Spacing1</cstring>
289
<property name="orientation">
290
<enum>Vertical</enum>
292
<property name="sizeType">
293
<enum>Expanding</enum>
295
<property name="sizeHint">
302
<widget class="QPushButton" row="4" column="1">
303
<property name="name">
304
<cstring>itemUp</cstring>
306
<property name="text">
309
<property name="pixmap">
310
<pixmap>"designer_s_up.png"</pixmap>
312
<property name="toolTip" stdset="0">
313
<string>Move up</string>
315
<property name="whatsThis" stdset="0">
316
<string><b>Move the selected item up.</b><p>The item will be moved within its level in the hierarchy.</p></string>
319
<widget class="QPushButton" row="5" column="1">
320
<property name="name">
321
<cstring>itemDown</cstring>
323
<property name="text">
326
<property name="pixmap">
327
<pixmap>"designer_s_down.png"</pixmap>
329
<property name="toolTip" stdset="0">
330
<string>Move down</string>
332
<property name="whatsThis" stdset="0">
333
<string><b>Move the selected item down.</b><p>The item will be moved within its level in the hierarchy.</p></string>
336
<widget class="QPushButton" row="6" column="1">
337
<property name="name">
338
<cstring>itemLeft</cstring>
340
<property name="text">
343
<property name="pixmap">
344
<pixmap>"designer_s_left.png"</pixmap>
346
<property name="toolTip" stdset="0">
347
<string>Move left</string>
349
<property name="whatsThis" stdset="0">
350
<string><b>Move the selected item one level up.</b><p>This will also change the level of the item's sub-items.</p></string>
353
<widget class="QPushButton" row="7" column="1">
354
<property name="name">
355
<cstring>itemRight</cstring>
357
<property name="text">
360
<property name="pixmap">
361
<pixmap>"designer_s_right.png"</pixmap>
363
<property name="toolTip" stdset="0">
364
<string>Move right</string>
366
<property name="whatsThis" stdset="0">
367
<string><b>Move the selected item one level down.</b><p>This will also change the level of the item's sub-items.</p></string>
372
<widget class="QWidget">
373
<property name="name">
374
<cstring>Widget11</cstring>
376
<attribute name="title">
377
<string>Co&lumns</string>
380
<property name="name">
381
<cstring>unnamed</cstring>
383
<property name="margin">
386
<property name="spacing">
389
<widget class="QGroupBox" row="0" column="2" rowspan="5" colspan="1">
390
<property name="name">
391
<cstring>GroupBox1</cstring>
393
<property name="title">
394
<string>Column Properties</string>
397
<property name="name">
398
<cstring>unnamed</cstring>
400
<property name="margin">
403
<property name="spacing">
406
<widget class="QLabel" row="1" column="0">
407
<property name="name">
408
<cstring>Label2</cstring>
410
<property name="text">
411
<string>&Pixmap:</string>
413
<property name="buddy" stdset="0">
414
<cstring>colChoosePixmap</cstring>
417
<widget class="QLabel" row="1" column="1">
418
<property name="name">
419
<cstring>colPixmap</cstring>
421
<property name="text">
422
<string>Label4</string>
425
<widget class="QPushButton" row="1" column="2">
426
<property name="name">
427
<cstring>colDeletePixmap</cstring>
429
<property name="maximumSize">
435
<property name="text">
438
<property name="pixmap">
439
<pixmap>"designer_s_editcut.png"</pixmap>
441
<property name="toolTip" stdset="0">
442
<string>Delete Pixmap</string>
444
<property name="whatsThis" stdset="0">
445
<string>Delete the pixmap of the selected column.</string>
448
<widget class="QPushButton" row="1" column="3">
449
<property name="name">
450
<cstring>colChoosePixmap</cstring>
452
<property name="maximumSize">
458
<property name="text">
461
<property name="toolTip" stdset="0">
462
<string>Select a Pixmap</string>
464
<property name="whatsThis" stdset="0">
465
<string><b>Select a pixmap file for the selected column.</b><p>The pixmap will be displayed in the header of the listview.</p></string>
468
<widget class="QLabel" row="0" column="0">
469
<property name="name">
470
<cstring>Label1</cstring>
472
<property name="text">
473
<string>&Text:</string>
475
<property name="buddy" stdset="0">
476
<cstring>colText</cstring>
479
<widget class="QLineEdit" row="0" column="1" rowspan="1" colspan="3">
480
<property name="name">
481
<cstring>colText</cstring>
483
<property name="minimumSize">
489
<property name="toolTip" stdset="0">
490
<string>Enter column text</string>
492
<property name="whatsThis" stdset="0">
493
<string><b>Enter the text for the selected column.</b><p>The text will be displayed in the header of the listview.</p></string>
496
<widget class="QCheckBox" row="2" column="0" rowspan="1" colspan="2">
497
<property name="name">
498
<cstring>colClickable</cstring>
500
<property name="text">
501
<string>Clicka&ble</string>
503
<property name="whatsThis" stdset="0">
504
<string>If this option is checked, the selected column will react to mouse clicks on the header.</string>
507
<widget class="QCheckBox" row="3" column="0" rowspan="1" colspan="2">
508
<property name="name">
509
<cstring>colResizable</cstring>
511
<property name="text">
512
<string>Re&sizable</string>
514
<property name="whatsThis" stdset="0">
515
<string>The column's width will be resizable if this option is checked.</string>
520
<widget class="QPushButton" row="1" column="1">
521
<property name="name">
522
<cstring>colDelete</cstring>
524
<property name="text">
525
<string>&Delete Column</string>
527
<property name="toolTip" stdset="0">
528
<string>Delete column</string>
530
<property name="whatsThis" stdset="0">
531
<string>Deletes the selected Column.</string>
534
<widget class="QPushButton" row="4" column="1">
535
<property name="name">
536
<cstring>colDown</cstring>
538
<property name="text">
541
<property name="pixmap">
542
<pixmap>"designer_s_down.png"</pixmap>
544
<property name="toolTip" stdset="0">
545
<string>Move down</string>
547
<property name="whatsThis" stdset="0">
548
<string><b>Move the selected item down.</b><p>The top-most column will be the first column in the list.</p></string>
551
<widget class="QPushButton" row="0" column="1">
552
<property name="name">
553
<cstring>colNew</cstring>
555
<property name="text">
556
<string>&New Column</string>
558
<property name="toolTip" stdset="0">
559
<string>Add a Column</string>
561
<property name="whatsThis" stdset="0">
562
<string><b>Create a new column.</b><p>New columns are appended at the end of (right of) the list and may be moved using the up- and down-buttons.</p></string>
565
<widget class="QPushButton" row="3" column="1">
566
<property name="name">
567
<cstring>colUp</cstring>
569
<property name="text">
572
<property name="pixmap">
573
<pixmap>"designer_s_up.png"</pixmap>
575
<property name="toolTip" stdset="0">
576
<string>Move up</string>
578
<property name="whatsThis" stdset="0">
579
<string><b>Move the selected item up.</b><p>The top-most column will be the first column in the list.</p></string>
582
<widget class="QListBox" row="0" column="0" rowspan="5" colspan="1">
583
<property name="name">
584
<cstring>colPreview</cstring>
586
<property name="whatsThis" stdset="0">
587
<string>The list of columns.</string>
590
<spacer row="2" column="1">
591
<property name="name">
592
<cstring>Vertical Spacing2</cstring>
594
<property name="orientation">
595
<enum>Vertical</enum>
597
<property name="sizeType">
598
<enum>Expanding</enum>
600
<property name="sizeHint">
610
<widget class="QLayoutWidget">
611
<property name="name">
612
<cstring>Layout1</cstring>
615
<property name="name">
616
<cstring>unnamed</cstring>
618
<property name="margin">
621
<property name="spacing">
624
<widget class="QPushButton">
625
<property name="name">
626
<cstring>helpButton</cstring>
628
<property name="text">
629
<string>&Help</string>
631
<property name="autoDefault">
636
<property name="name">
637
<cstring>Horizontal Spacing2</cstring>
639
<property name="orientation">
640
<enum>Horizontal</enum>
642
<property name="sizeType">
643
<enum>Expanding</enum>
645
<property name="sizeHint">
652
<widget class="QPushButton">
653
<property name="name">
654
<cstring>okButton</cstring>
656
<property name="text">
657
<string>&OK</string>
659
<property name="autoDefault">
662
<property name="default">
665
<property name="whatsThis" stdset="0">
666
<string>Close the dialog and apply all the changes.</string>
669
<widget class="QPushButton">
670
<property name="name">
671
<cstring>applyButton</cstring>
673
<property name="text">
674
<string>&Apply</string>
676
<property name="autoDefault">
679
<property name="whatsThis" stdset="0">
680
<string>Apply all changes.</string>
683
<widget class="QPushButton">
684
<property name="name">
685
<cstring>cancelButton</cstring>
687
<property name="text">
688
<string>&Cancel</string>
690
<property name="autoDefault">
693
<property name="whatsThis" stdset="0">
694
<string>Close the dialog and discard any changes.</string>
703
<sender>cancelButton</sender>
704
<signal>clicked()</signal>
705
<receiver>ListViewEditorBase</receiver>
706
<slot>reject()</slot>
709
<sender>itemNew</sender>
710
<signal>clicked()</signal>
711
<receiver>ListViewEditorBase</receiver>
712
<slot>itemNewClicked()</slot>
715
<sender>itemDelete</sender>
716
<signal>clicked()</signal>
717
<receiver>ListViewEditorBase</receiver>
718
<slot>itemDeleteClicked()</slot>
721
<sender>itemUp</sender>
722
<signal>clicked()</signal>
723
<receiver>ListViewEditorBase</receiver>
724
<slot>itemUpClicked()</slot>
727
<sender>itemDown</sender>
728
<signal>clicked()</signal>
729
<receiver>ListViewEditorBase</receiver>
730
<slot>itemDownClicked()</slot>
733
<sender>itemColumn</sender>
734
<signal>valueChanged(int)</signal>
735
<receiver>ListViewEditorBase</receiver>
736
<slot>itemColChanged(int)</slot>
739
<sender>itemText</sender>
740
<signal>textChanged(const QString&)</signal>
741
<receiver>ListViewEditorBase</receiver>
742
<slot>itemTextChanged(const QString&)</slot>
745
<sender>itemDeletePixmap</sender>
746
<signal>clicked()</signal>
747
<receiver>ListViewEditorBase</receiver>
748
<slot>itemPixmapDeleted()</slot>
751
<sender>itemChoosePixmap</sender>
752
<signal>clicked()</signal>
753
<receiver>ListViewEditorBase</receiver>
754
<slot>itemPixmapChoosen()</slot>
757
<sender>colNew</sender>
758
<signal>clicked()</signal>
759
<receiver>ListViewEditorBase</receiver>
760
<slot>newColumnClicked()</slot>
763
<sender>colDelete</sender>
764
<signal>clicked()</signal>
765
<receiver>ListViewEditorBase</receiver>
766
<slot>deleteColumnClicked()</slot>
769
<sender>colUp</sender>
770
<signal>clicked()</signal>
771
<receiver>ListViewEditorBase</receiver>
772
<slot>columnUpClicked()</slot>
775
<sender>colDown</sender>
776
<signal>clicked()</signal>
777
<receiver>ListViewEditorBase</receiver>
778
<slot>columnDownClicked()</slot>
781
<sender>colText</sender>
782
<signal>textChanged(const QString&)</signal>
783
<receiver>ListViewEditorBase</receiver>
784
<slot>columnTextChanged(const QString&)</slot>
787
<sender>colDeletePixmap</sender>
788
<signal>clicked()</signal>
789
<receiver>ListViewEditorBase</receiver>
790
<slot>columnPixmapDeleted()</slot>
793
<sender>colChoosePixmap</sender>
794
<signal>clicked()</signal>
795
<receiver>ListViewEditorBase</receiver>
796
<slot>columnPixmapChosen()</slot>
799
<sender>colResizable</sender>
800
<signal>toggled(bool)</signal>
801
<receiver>ListViewEditorBase</receiver>
802
<slot>columnResizable(bool)</slot>
805
<sender>colClickable</sender>
806
<signal>toggled(bool)</signal>
807
<receiver>ListViewEditorBase</receiver>
808
<slot>columnClickable(bool)</slot>
811
<sender>tabWidget</sender>
812
<signal>selected(const QString&)</signal>
813
<receiver>ListViewEditorBase</receiver>
814
<slot>initTabPage(const QString&)</slot>
817
<sender>okButton</sender>
818
<signal>clicked()</signal>
819
<receiver>ListViewEditorBase</receiver>
820
<slot>okClicked()</slot>
823
<sender>applyButton</sender>
824
<signal>clicked()</signal>
825
<receiver>ListViewEditorBase</receiver>
826
<slot>applyClicked()</slot>
829
<sender>colPreview</sender>
830
<signal>currentChanged(QListBoxItem*)</signal>
831
<receiver>ListViewEditorBase</receiver>
832
<slot>currentColumnChanged(QListBoxItem*)</slot>
835
<sender>colPreview</sender>
836
<signal>selectionChanged(QListBoxItem*)</signal>
837
<receiver>ListViewEditorBase</receiver>
838
<slot>currentColumnChanged(QListBoxItem*)</slot>
841
<sender>itemsPreview</sender>
842
<signal>currentChanged(QListViewItem*)</signal>
843
<receiver>ListViewEditorBase</receiver>
844
<slot>currentItemChanged(QListViewItem*)</slot>
847
<sender>itemsPreview</sender>
848
<signal>selectionChanged(QListViewItem*)</signal>
849
<receiver>ListViewEditorBase</receiver>
850
<slot>currentItemChanged(QListViewItem*)</slot>
853
<sender>itemNewSub</sender>
854
<signal>clicked()</signal>
855
<receiver>ListViewEditorBase</receiver>
856
<slot>itemNewSubClicked()</slot>
859
<sender>itemLeft</sender>
860
<signal>clicked()</signal>
861
<receiver>ListViewEditorBase</receiver>
862
<slot>itemLeftClicked()</slot>
865
<sender>itemRight</sender>
866
<signal>clicked()</signal>
867
<receiver>ListViewEditorBase</receiver>
868
<slot>itemRightClicked()</slot>
872
<tabstop>okButton</tabstop>
873
<tabstop>cancelButton</tabstop>
874
<tabstop>tabWidget</tabstop>
875
<tabstop>itemsPreview</tabstop>
876
<tabstop>itemNew</tabstop>
877
<tabstop>itemNewSub</tabstop>
878
<tabstop>itemDelete</tabstop>
879
<tabstop>itemUp</tabstop>
880
<tabstop>itemDown</tabstop>
881
<tabstop>itemLeft</tabstop>
882
<tabstop>itemRight</tabstop>
883
<tabstop>itemColumn</tabstop>
884
<tabstop>itemText</tabstop>
885
<tabstop>itemDeletePixmap</tabstop>
886
<tabstop>itemChoosePixmap</tabstop>
887
<tabstop>helpButton</tabstop>
888
<tabstop>applyButton</tabstop>
889
<tabstop>colPreview</tabstop>
890
<tabstop>colNew</tabstop>
891
<tabstop>colDelete</tabstop>
892
<tabstop>colUp</tabstop>
893
<tabstop>colDown</tabstop>
894
<tabstop>colText</tabstop>
895
<tabstop>colDeletePixmap</tabstop>
896
<tabstop>colChoosePixmap</tabstop>
897
<tabstop>colClickable</tabstop>
898
<tabstop>colResizable</tabstop>
901
<slot access="protected">init()</slot>
902
<slot access="protected">destroy()</slot>
903
<slot access="protected">applyClicked()</slot>
904
<slot access="protected">columnClickable(bool)</slot>
905
<slot access="protected">columnDownClicked()</slot>
906
<slot access="protected">columnPixmapChosen()</slot>
907
<slot access="protected">columnPixmapDeleted()</slot>
908
<slot access="protected">columnResizable(bool)</slot>
909
<slot access="protected">columnTextChanged(const QString &)</slot>
910
<slot access="protected">columnUpClicked()</slot>
911
<slot access="protected">currentColumnChanged(QListBoxItem*)</slot>
912
<slot access="protected">currentItemChanged(QListViewItem*)</slot>
913
<slot access="protected">deleteColumnClicked()</slot>
914
<slot access="protected">initTabPage(const QString &)</slot>
915
<slot access="protected">itemColChanged(int)</slot>
916
<slot access="protected">itemDeleteClicked()</slot>
917
<slot access="protected">itemDownClicked()</slot>
918
<slot access="protected">itemLeftClicked()</slot>
919
<slot access="protected">itemNewClicked()</slot>
920
<slot access="protected">itemNewSubClicked()</slot>
921
<slot access="protected">itemPixmapChoosen()</slot>
922
<slot access="protected">itemPixmapDeleted()</slot>
923
<slot access="protected">itemTextChanged(const QString &)</slot>
924
<slot access="protected">itemUpClicked()</slot>
925
<slot access="protected">newColumnClicked()</slot>
926
<slot access="protected">itemRightClicked()</slot>
927
<slot access="protected">okClicked()</slot>
930
<include location="local" impldecl="in implementation">myiconloader.h</include>
932
<pixmapfunction>BarIcon2</pixmapfunction>
934
<layoutdefaults spacing="6" margin="11"/>