|
1 /* |
|
2 ********************************************************************* |
|
3 ** |
|
4 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
5 ** All rights reserved. |
|
6 ** Contact: Nokia Corporation (qt-info@nokia.com) |
|
7 ** |
|
8 ** This file is part of the autotests of the Qt Toolkit. |
|
9 ** |
|
10 ** $QT_BEGIN_LICENSE:LGPL$ |
|
11 ** No Commercial Usage |
|
12 ** This file contains pre-release code and may not be distributed. |
|
13 ** You may use this file in accordance with the terms and conditions |
|
14 ** contained in the Technology Preview License Agreement accompanying |
|
15 ** this package. |
|
16 ** |
|
17 ** GNU Lesser General Public License Usage |
|
18 ** Alternatively, this file may be used under the terms of the GNU Lesser |
|
19 ** General Public License version 2.1 as published by the Free Software |
|
20 ** Foundation and appearing in the file LICENSE.LGPL included in the |
|
21 ** packaging of this file. Please review the following information to |
|
22 ** ensure the GNU Lesser General Public License version 2.1 requirements |
|
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
24 ** |
|
25 ** In addition, as a special exception, Nokia gives you certain additional |
|
26 ** rights. These rights are described in the Nokia Qt LGPL Exception |
|
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
28 ** |
|
29 ** If you have questions regarding the use of this file, please contact |
|
30 ** Nokia at qt-info@nokia.com. |
|
31 ** |
|
32 ** |
|
33 ** |
|
34 ** |
|
35 ** |
|
36 ** |
|
37 ** |
|
38 ** |
|
39 ** $QT_END_LICENSE$ |
|
40 ** |
|
41 ********************************************************************* |
|
42 */ |
|
43 |
|
44 /******************************************************************************** |
|
45 ** Form generated from reading UI file 'treewidgeteditor.ui' |
|
46 ** |
|
47 ** Created: Fri Sep 4 10:17:15 2009 |
|
48 ** by: Qt User Interface Compiler version 4.6.0 |
|
49 ** |
|
50 ** WARNING! All changes made in this file will be lost when recompiling UI file! |
|
51 ********************************************************************************/ |
|
52 |
|
53 #ifndef TREEWIDGETEDITOR_H |
|
54 #define TREEWIDGETEDITOR_H |
|
55 |
|
56 #include <QtCore/QVariant> |
|
57 #include <QtGui/QAction> |
|
58 #include <QtGui/QApplication> |
|
59 #include <QtGui/QButtonGroup> |
|
60 #include <QtGui/QDialog> |
|
61 #include <QtGui/QDialogButtonBox> |
|
62 #include <QtGui/QGridLayout> |
|
63 #include <QtGui/QGroupBox> |
|
64 #include <QtGui/QHBoxLayout> |
|
65 #include <QtGui/QHeaderView> |
|
66 #include <QtGui/QLabel> |
|
67 #include <QtGui/QListWidget> |
|
68 #include <QtGui/QSpacerItem> |
|
69 #include <QtGui/QToolButton> |
|
70 #include <QtGui/QTreeWidget> |
|
71 #include "iconselector_p.h" |
|
72 |
|
73 QT_BEGIN_NAMESPACE |
|
74 |
|
75 namespace qdesigner_internal { |
|
76 |
|
77 class Ui_TreeWidgetEditor |
|
78 { |
|
79 public: |
|
80 QGridLayout *gridLayout_3; |
|
81 QGroupBox *itemsBox; |
|
82 QGridLayout *gridLayout; |
|
83 QTreeWidget *treeWidget; |
|
84 QHBoxLayout *horizontalLayout_4; |
|
85 QToolButton *newItemButton; |
|
86 QToolButton *newSubItemButton; |
|
87 QToolButton *deleteItemButton; |
|
88 QSpacerItem *spacerItem; |
|
89 QToolButton *moveItemLeftButton; |
|
90 QToolButton *moveItemRightButton; |
|
91 QToolButton *moveItemUpButton; |
|
92 QToolButton *moveItemDownButton; |
|
93 QHBoxLayout *horizontalLayout_2; |
|
94 QLabel *label_2; |
|
95 qdesigner_internal::IconSelector *itemIconSelector; |
|
96 QSpacerItem *horizontalSpacer; |
|
97 QGroupBox *columnsBox; |
|
98 QGridLayout *gridLayout_2; |
|
99 QListWidget *listWidget; |
|
100 QHBoxLayout *horizontalLayout_3; |
|
101 QToolButton *newColumnButton; |
|
102 QToolButton *deleteColumnButton; |
|
103 QSpacerItem *spacerItem1; |
|
104 QToolButton *moveColumnUpButton; |
|
105 QToolButton *moveColumnDownButton; |
|
106 QHBoxLayout *horizontalLayout; |
|
107 QLabel *label; |
|
108 qdesigner_internal::IconSelector *columnIconSelector; |
|
109 QSpacerItem *spacerItem2; |
|
110 QDialogButtonBox *buttonBox; |
|
111 |
|
112 void setupUi(QDialog *qdesigner_internal__TreeWidgetEditor) |
|
113 { |
|
114 if (qdesigner_internal__TreeWidgetEditor->objectName().isEmpty()) |
|
115 qdesigner_internal__TreeWidgetEditor->setObjectName(QString::fromUtf8("qdesigner_internal__TreeWidgetEditor")); |
|
116 qdesigner_internal__TreeWidgetEditor->resize(619, 321); |
|
117 gridLayout_3 = new QGridLayout(qdesigner_internal__TreeWidgetEditor); |
|
118 gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3")); |
|
119 itemsBox = new QGroupBox(qdesigner_internal__TreeWidgetEditor); |
|
120 itemsBox->setObjectName(QString::fromUtf8("itemsBox")); |
|
121 gridLayout = new QGridLayout(itemsBox); |
|
122 gridLayout->setObjectName(QString::fromUtf8("gridLayout")); |
|
123 treeWidget = new QTreeWidget(itemsBox); |
|
124 treeWidget->setObjectName(QString::fromUtf8("treeWidget")); |
|
125 treeWidget->setFocusPolicy(Qt::TabFocus); |
|
126 |
|
127 gridLayout->addWidget(treeWidget, 0, 0, 1, 1); |
|
128 |
|
129 horizontalLayout_4 = new QHBoxLayout(); |
|
130 horizontalLayout_4->setObjectName(QString::fromUtf8("horizontalLayout_4")); |
|
131 newItemButton = new QToolButton(itemsBox); |
|
132 newItemButton->setObjectName(QString::fromUtf8("newItemButton")); |
|
133 |
|
134 horizontalLayout_4->addWidget(newItemButton); |
|
135 |
|
136 newSubItemButton = new QToolButton(itemsBox); |
|
137 newSubItemButton->setObjectName(QString::fromUtf8("newSubItemButton")); |
|
138 |
|
139 horizontalLayout_4->addWidget(newSubItemButton); |
|
140 |
|
141 deleteItemButton = new QToolButton(itemsBox); |
|
142 deleteItemButton->setObjectName(QString::fromUtf8("deleteItemButton")); |
|
143 |
|
144 horizontalLayout_4->addWidget(deleteItemButton); |
|
145 |
|
146 spacerItem = new QSpacerItem(28, 23, QSizePolicy::Expanding, QSizePolicy::Minimum); |
|
147 |
|
148 horizontalLayout_4->addItem(spacerItem); |
|
149 |
|
150 moveItemLeftButton = new QToolButton(itemsBox); |
|
151 moveItemLeftButton->setObjectName(QString::fromUtf8("moveItemLeftButton")); |
|
152 |
|
153 horizontalLayout_4->addWidget(moveItemLeftButton); |
|
154 |
|
155 moveItemRightButton = new QToolButton(itemsBox); |
|
156 moveItemRightButton->setObjectName(QString::fromUtf8("moveItemRightButton")); |
|
157 |
|
158 horizontalLayout_4->addWidget(moveItemRightButton); |
|
159 |
|
160 moveItemUpButton = new QToolButton(itemsBox); |
|
161 moveItemUpButton->setObjectName(QString::fromUtf8("moveItemUpButton")); |
|
162 |
|
163 horizontalLayout_4->addWidget(moveItemUpButton); |
|
164 |
|
165 moveItemDownButton = new QToolButton(itemsBox); |
|
166 moveItemDownButton->setObjectName(QString::fromUtf8("moveItemDownButton")); |
|
167 |
|
168 horizontalLayout_4->addWidget(moveItemDownButton); |
|
169 |
|
170 |
|
171 gridLayout->addLayout(horizontalLayout_4, 1, 0, 1, 1); |
|
172 |
|
173 horizontalLayout_2 = new QHBoxLayout(); |
|
174 horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2")); |
|
175 label_2 = new QLabel(itemsBox); |
|
176 label_2->setObjectName(QString::fromUtf8("label_2")); |
|
177 |
|
178 horizontalLayout_2->addWidget(label_2); |
|
179 |
|
180 itemIconSelector = new qdesigner_internal::IconSelector(itemsBox); |
|
181 itemIconSelector->setObjectName(QString::fromUtf8("itemIconSelector")); |
|
182 |
|
183 horizontalLayout_2->addWidget(itemIconSelector); |
|
184 |
|
185 horizontalSpacer = new QSpacerItem(288, 21, QSizePolicy::Expanding, QSizePolicy::Minimum); |
|
186 |
|
187 horizontalLayout_2->addItem(horizontalSpacer); |
|
188 |
|
189 |
|
190 gridLayout->addLayout(horizontalLayout_2, 2, 0, 1, 1); |
|
191 |
|
192 |
|
193 gridLayout_3->addWidget(itemsBox, 0, 0, 1, 1); |
|
194 |
|
195 columnsBox = new QGroupBox(qdesigner_internal__TreeWidgetEditor); |
|
196 columnsBox->setObjectName(QString::fromUtf8("columnsBox")); |
|
197 QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred); |
|
198 sizePolicy.setHorizontalStretch(0); |
|
199 sizePolicy.setVerticalStretch(0); |
|
200 sizePolicy.setHeightForWidth(columnsBox->sizePolicy().hasHeightForWidth()); |
|
201 columnsBox->setSizePolicy(sizePolicy); |
|
202 gridLayout_2 = new QGridLayout(columnsBox); |
|
203 gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2")); |
|
204 listWidget = new QListWidget(columnsBox); |
|
205 listWidget->setObjectName(QString::fromUtf8("listWidget")); |
|
206 QSizePolicy sizePolicy1(QSizePolicy::Ignored, QSizePolicy::Expanding); |
|
207 sizePolicy1.setHorizontalStretch(0); |
|
208 sizePolicy1.setVerticalStretch(0); |
|
209 sizePolicy1.setHeightForWidth(listWidget->sizePolicy().hasHeightForWidth()); |
|
210 listWidget->setSizePolicy(sizePolicy1); |
|
211 listWidget->setFocusPolicy(Qt::TabFocus); |
|
212 |
|
213 gridLayout_2->addWidget(listWidget, 0, 0, 1, 1); |
|
214 |
|
215 horizontalLayout_3 = new QHBoxLayout(); |
|
216 horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3")); |
|
217 newColumnButton = new QToolButton(columnsBox); |
|
218 newColumnButton->setObjectName(QString::fromUtf8("newColumnButton")); |
|
219 |
|
220 horizontalLayout_3->addWidget(newColumnButton); |
|
221 |
|
222 deleteColumnButton = new QToolButton(columnsBox); |
|
223 deleteColumnButton->setObjectName(QString::fromUtf8("deleteColumnButton")); |
|
224 |
|
225 horizontalLayout_3->addWidget(deleteColumnButton); |
|
226 |
|
227 spacerItem1 = new QSpacerItem(13, 23, QSizePolicy::Expanding, QSizePolicy::Minimum); |
|
228 |
|
229 horizontalLayout_3->addItem(spacerItem1); |
|
230 |
|
231 moveColumnUpButton = new QToolButton(columnsBox); |
|
232 moveColumnUpButton->setObjectName(QString::fromUtf8("moveColumnUpButton")); |
|
233 |
|
234 horizontalLayout_3->addWidget(moveColumnUpButton); |
|
235 |
|
236 moveColumnDownButton = new QToolButton(columnsBox); |
|
237 moveColumnDownButton->setObjectName(QString::fromUtf8("moveColumnDownButton")); |
|
238 |
|
239 horizontalLayout_3->addWidget(moveColumnDownButton); |
|
240 |
|
241 |
|
242 gridLayout_2->addLayout(horizontalLayout_3, 1, 0, 1, 1); |
|
243 |
|
244 horizontalLayout = new QHBoxLayout(); |
|
245 horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout")); |
|
246 label = new QLabel(columnsBox); |
|
247 label->setObjectName(QString::fromUtf8("label")); |
|
248 |
|
249 horizontalLayout->addWidget(label); |
|
250 |
|
251 columnIconSelector = new qdesigner_internal::IconSelector(columnsBox); |
|
252 columnIconSelector->setObjectName(QString::fromUtf8("columnIconSelector")); |
|
253 |
|
254 horizontalLayout->addWidget(columnIconSelector); |
|
255 |
|
256 spacerItem2 = new QSpacerItem(0, 10, QSizePolicy::Expanding, QSizePolicy::Minimum); |
|
257 |
|
258 horizontalLayout->addItem(spacerItem2); |
|
259 |
|
260 |
|
261 gridLayout_2->addLayout(horizontalLayout, 2, 0, 1, 1); |
|
262 |
|
263 |
|
264 gridLayout_3->addWidget(columnsBox, 0, 1, 1, 1); |
|
265 |
|
266 buttonBox = new QDialogButtonBox(qdesigner_internal__TreeWidgetEditor); |
|
267 buttonBox->setObjectName(QString::fromUtf8("buttonBox")); |
|
268 buttonBox->setOrientation(Qt::Horizontal); |
|
269 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok); |
|
270 |
|
271 gridLayout_3->addWidget(buttonBox, 1, 0, 1, 2); |
|
272 |
|
273 QWidget::setTabOrder(treeWidget, newItemButton); |
|
274 QWidget::setTabOrder(newItemButton, newSubItemButton); |
|
275 QWidget::setTabOrder(newSubItemButton, deleteItemButton); |
|
276 QWidget::setTabOrder(deleteItemButton, moveItemLeftButton); |
|
277 QWidget::setTabOrder(moveItemLeftButton, moveItemRightButton); |
|
278 QWidget::setTabOrder(moveItemRightButton, moveItemUpButton); |
|
279 QWidget::setTabOrder(moveItemUpButton, moveItemDownButton); |
|
280 QWidget::setTabOrder(moveItemDownButton, listWidget); |
|
281 QWidget::setTabOrder(listWidget, newColumnButton); |
|
282 QWidget::setTabOrder(newColumnButton, deleteColumnButton); |
|
283 QWidget::setTabOrder(deleteColumnButton, moveColumnUpButton); |
|
284 QWidget::setTabOrder(moveColumnUpButton, moveColumnDownButton); |
|
285 |
|
286 retranslateUi(qdesigner_internal__TreeWidgetEditor); |
|
287 QObject::connect(buttonBox, SIGNAL(accepted()), qdesigner_internal__TreeWidgetEditor, SLOT(accept())); |
|
288 QObject::connect(buttonBox, SIGNAL(rejected()), qdesigner_internal__TreeWidgetEditor, SLOT(reject())); |
|
289 |
|
290 QMetaObject::connectSlotsByName(qdesigner_internal__TreeWidgetEditor); |
|
291 } // setupUi |
|
292 |
|
293 void retranslateUi(QDialog *qdesigner_internal__TreeWidgetEditor) |
|
294 { |
|
295 qdesigner_internal__TreeWidgetEditor->setWindowTitle(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "Edit Tree Widget", 0, QApplication::UnicodeUTF8)); |
|
296 itemsBox->setTitle(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "Tree Items", 0, QApplication::UnicodeUTF8)); |
|
297 QTreeWidgetItem *___qtreewidgetitem = treeWidget->headerItem(); |
|
298 ___qtreewidgetitem->setText(0, QApplication::translate("qdesigner_internal::TreeWidgetEditor", "1", 0, QApplication::UnicodeUTF8)); |
|
299 #ifndef QT_NO_TOOLTIP |
|
300 treeWidget->setToolTip(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "Tree Items", 0, QApplication::UnicodeUTF8)); |
|
301 #endif // QT_NO_TOOLTIP |
|
302 #ifndef QT_NO_TOOLTIP |
|
303 newItemButton->setToolTip(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "New Item", 0, QApplication::UnicodeUTF8)); |
|
304 #endif // QT_NO_TOOLTIP |
|
305 newItemButton->setText(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "&New", 0, QApplication::UnicodeUTF8)); |
|
306 #ifndef QT_NO_TOOLTIP |
|
307 newSubItemButton->setToolTip(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "New Subitem", 0, QApplication::UnicodeUTF8)); |
|
308 #endif // QT_NO_TOOLTIP |
|
309 newSubItemButton->setText(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "New &Subitem", 0, QApplication::UnicodeUTF8)); |
|
310 #ifndef QT_NO_TOOLTIP |
|
311 deleteItemButton->setToolTip(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "Delete Item", 0, QApplication::UnicodeUTF8)); |
|
312 #endif // QT_NO_TOOLTIP |
|
313 deleteItemButton->setText(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "&Delete", 0, QApplication::UnicodeUTF8)); |
|
314 #ifndef QT_NO_TOOLTIP |
|
315 moveItemLeftButton->setToolTip(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "Move Item Left (before Parent Item)", 0, QApplication::UnicodeUTF8)); |
|
316 #endif // QT_NO_TOOLTIP |
|
317 moveItemLeftButton->setText(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "L", 0, QApplication::UnicodeUTF8)); |
|
318 #ifndef QT_NO_TOOLTIP |
|
319 moveItemRightButton->setToolTip(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "Move Item Right (as a First Subitem of the Next Sibling Item)", 0, QApplication::UnicodeUTF8)); |
|
320 #endif // QT_NO_TOOLTIP |
|
321 moveItemRightButton->setText(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "R", 0, QApplication::UnicodeUTF8)); |
|
322 #ifndef QT_NO_TOOLTIP |
|
323 moveItemUpButton->setToolTip(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "Move Item Up", 0, QApplication::UnicodeUTF8)); |
|
324 #endif // QT_NO_TOOLTIP |
|
325 moveItemUpButton->setText(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "U", 0, QApplication::UnicodeUTF8)); |
|
326 #ifndef QT_NO_TOOLTIP |
|
327 moveItemDownButton->setToolTip(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "Move Item Down", 0, QApplication::UnicodeUTF8)); |
|
328 #endif // QT_NO_TOOLTIP |
|
329 moveItemDownButton->setText(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "D", 0, QApplication::UnicodeUTF8)); |
|
330 label_2->setText(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "Icon", 0, QApplication::UnicodeUTF8)); |
|
331 columnsBox->setTitle(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "Columns", 0, QApplication::UnicodeUTF8)); |
|
332 #ifndef QT_NO_TOOLTIP |
|
333 listWidget->setToolTip(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "Tree Columns", 0, QApplication::UnicodeUTF8)); |
|
334 #endif // QT_NO_TOOLTIP |
|
335 #ifndef QT_NO_TOOLTIP |
|
336 newColumnButton->setToolTip(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "New Column", 0, QApplication::UnicodeUTF8)); |
|
337 #endif // QT_NO_TOOLTIP |
|
338 newColumnButton->setText(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "New", 0, QApplication::UnicodeUTF8)); |
|
339 #ifndef QT_NO_TOOLTIP |
|
340 deleteColumnButton->setToolTip(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "Delete Column", 0, QApplication::UnicodeUTF8)); |
|
341 #endif // QT_NO_TOOLTIP |
|
342 deleteColumnButton->setText(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "Delete", 0, QApplication::UnicodeUTF8)); |
|
343 #ifndef QT_NO_TOOLTIP |
|
344 moveColumnUpButton->setToolTip(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "Move Column Up", 0, QApplication::UnicodeUTF8)); |
|
345 #endif // QT_NO_TOOLTIP |
|
346 moveColumnUpButton->setText(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "U", 0, QApplication::UnicodeUTF8)); |
|
347 #ifndef QT_NO_TOOLTIP |
|
348 moveColumnDownButton->setToolTip(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "Move Column Down", 0, QApplication::UnicodeUTF8)); |
|
349 #endif // QT_NO_TOOLTIP |
|
350 moveColumnDownButton->setText(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "D", 0, QApplication::UnicodeUTF8)); |
|
351 label->setText(QApplication::translate("qdesigner_internal::TreeWidgetEditor", "Icon", 0, QApplication::UnicodeUTF8)); |
|
352 } // retranslateUi |
|
353 |
|
354 }; |
|
355 |
|
356 } // namespace qdesigner_internal |
|
357 |
|
358 namespace qdesigner_internal { |
|
359 namespace Ui { |
|
360 class TreeWidgetEditor: public Ui_TreeWidgetEditor {}; |
|
361 } // namespace Ui |
|
362 } // namespace qdesigner_internal |
|
363 |
|
364 QT_END_NAMESPACE |
|
365 |
|
366 #endif // TREEWIDGETEDITOR_H |