|
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 'tablewidgeteditor.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 TABLEWIDGETEDITOR_H |
|
54 #define TABLEWIDGETEDITOR_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/QTableWidget> |
|
70 #include <QtGui/QToolButton> |
|
71 #include <QtGui/QVBoxLayout> |
|
72 #include <QtGui/QWidget> |
|
73 #include "iconselector_p.h" |
|
74 |
|
75 QT_BEGIN_NAMESPACE |
|
76 |
|
77 namespace qdesigner_internal { |
|
78 |
|
79 class Ui_TableWidgetEditor |
|
80 { |
|
81 public: |
|
82 QGridLayout *gridLayout_4; |
|
83 QGroupBox *itemsBox; |
|
84 QGridLayout *gridLayout; |
|
85 QTableWidget *tableWidget; |
|
86 QHBoxLayout *horizontalLayout_5; |
|
87 QLabel *label_3; |
|
88 qdesigner_internal::IconSelector *itemIconSelector; |
|
89 QSpacerItem *horizontalSpacer; |
|
90 QDialogButtonBox *buttonBox; |
|
91 QWidget *widget; |
|
92 QVBoxLayout *verticalLayout; |
|
93 QGroupBox *columnsBox; |
|
94 QGridLayout *gridLayout_2; |
|
95 QListWidget *columnsListWidget; |
|
96 QHBoxLayout *horizontalLayout_3; |
|
97 QToolButton *newColumnButton; |
|
98 QToolButton *deleteColumnButton; |
|
99 QSpacerItem *spacerItem; |
|
100 QToolButton *moveColumnUpButton; |
|
101 QToolButton *moveColumnDownButton; |
|
102 QHBoxLayout *horizontalLayout_2; |
|
103 QLabel *label; |
|
104 qdesigner_internal::IconSelector *columnIconSelector; |
|
105 QSpacerItem *spacerItem1; |
|
106 QGroupBox *rowsBox; |
|
107 QGridLayout *gridLayout_3; |
|
108 QListWidget *rowsListWidget; |
|
109 QHBoxLayout *horizontalLayout_4; |
|
110 QToolButton *newRowButton; |
|
111 QToolButton *deleteRowButton; |
|
112 QSpacerItem *spacerItem2; |
|
113 QToolButton *moveRowUpButton; |
|
114 QToolButton *moveRowDownButton; |
|
115 QHBoxLayout *horizontalLayout; |
|
116 QLabel *label_2; |
|
117 qdesigner_internal::IconSelector *rowIconSelector; |
|
118 QSpacerItem *spacerItem3; |
|
119 |
|
120 void setupUi(QDialog *qdesigner_internal__TableWidgetEditor) |
|
121 { |
|
122 if (qdesigner_internal__TableWidgetEditor->objectName().isEmpty()) |
|
123 qdesigner_internal__TableWidgetEditor->setObjectName(QString::fromUtf8("qdesigner_internal__TableWidgetEditor")); |
|
124 qdesigner_internal__TableWidgetEditor->resize(591, 455); |
|
125 gridLayout_4 = new QGridLayout(qdesigner_internal__TableWidgetEditor); |
|
126 gridLayout_4->setObjectName(QString::fromUtf8("gridLayout_4")); |
|
127 itemsBox = new QGroupBox(qdesigner_internal__TableWidgetEditor); |
|
128 itemsBox->setObjectName(QString::fromUtf8("itemsBox")); |
|
129 gridLayout = new QGridLayout(itemsBox); |
|
130 gridLayout->setObjectName(QString::fromUtf8("gridLayout")); |
|
131 tableWidget = new QTableWidget(itemsBox); |
|
132 tableWidget->setObjectName(QString::fromUtf8("tableWidget")); |
|
133 |
|
134 gridLayout->addWidget(tableWidget, 0, 0, 1, 1); |
|
135 |
|
136 horizontalLayout_5 = new QHBoxLayout(); |
|
137 horizontalLayout_5->setObjectName(QString::fromUtf8("horizontalLayout_5")); |
|
138 label_3 = new QLabel(itemsBox); |
|
139 label_3->setObjectName(QString::fromUtf8("label_3")); |
|
140 |
|
141 horizontalLayout_5->addWidget(label_3); |
|
142 |
|
143 itemIconSelector = new qdesigner_internal::IconSelector(itemsBox); |
|
144 itemIconSelector->setObjectName(QString::fromUtf8("itemIconSelector")); |
|
145 |
|
146 horizontalLayout_5->addWidget(itemIconSelector); |
|
147 |
|
148 horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); |
|
149 |
|
150 horizontalLayout_5->addItem(horizontalSpacer); |
|
151 |
|
152 |
|
153 gridLayout->addLayout(horizontalLayout_5, 1, 0, 1, 1); |
|
154 |
|
155 |
|
156 gridLayout_4->addWidget(itemsBox, 0, 0, 1, 1); |
|
157 |
|
158 buttonBox = new QDialogButtonBox(qdesigner_internal__TableWidgetEditor); |
|
159 buttonBox->setObjectName(QString::fromUtf8("buttonBox")); |
|
160 buttonBox->setOrientation(Qt::Horizontal); |
|
161 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok); |
|
162 |
|
163 gridLayout_4->addWidget(buttonBox, 1, 0, 1, 2); |
|
164 |
|
165 widget = new QWidget(qdesigner_internal__TableWidgetEditor); |
|
166 widget->setObjectName(QString::fromUtf8("widget")); |
|
167 QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred); |
|
168 sizePolicy.setHorizontalStretch(0); |
|
169 sizePolicy.setVerticalStretch(0); |
|
170 sizePolicy.setHeightForWidth(widget->sizePolicy().hasHeightForWidth()); |
|
171 widget->setSizePolicy(sizePolicy); |
|
172 verticalLayout = new QVBoxLayout(widget); |
|
173 verticalLayout->setContentsMargins(0, 0, 0, 0); |
|
174 verticalLayout->setObjectName(QString::fromUtf8("verticalLayout")); |
|
175 columnsBox = new QGroupBox(widget); |
|
176 columnsBox->setObjectName(QString::fromUtf8("columnsBox")); |
|
177 gridLayout_2 = new QGridLayout(columnsBox); |
|
178 gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2")); |
|
179 columnsListWidget = new QListWidget(columnsBox); |
|
180 columnsListWidget->setObjectName(QString::fromUtf8("columnsListWidget")); |
|
181 QSizePolicy sizePolicy1(QSizePolicy::Ignored, QSizePolicy::Expanding); |
|
182 sizePolicy1.setHorizontalStretch(0); |
|
183 sizePolicy1.setVerticalStretch(0); |
|
184 sizePolicy1.setHeightForWidth(columnsListWidget->sizePolicy().hasHeightForWidth()); |
|
185 columnsListWidget->setSizePolicy(sizePolicy1); |
|
186 columnsListWidget->setFocusPolicy(Qt::TabFocus); |
|
187 |
|
188 gridLayout_2->addWidget(columnsListWidget, 0, 0, 1, 1); |
|
189 |
|
190 horizontalLayout_3 = new QHBoxLayout(); |
|
191 horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3")); |
|
192 newColumnButton = new QToolButton(columnsBox); |
|
193 newColumnButton->setObjectName(QString::fromUtf8("newColumnButton")); |
|
194 |
|
195 horizontalLayout_3->addWidget(newColumnButton); |
|
196 |
|
197 deleteColumnButton = new QToolButton(columnsBox); |
|
198 deleteColumnButton->setObjectName(QString::fromUtf8("deleteColumnButton")); |
|
199 |
|
200 horizontalLayout_3->addWidget(deleteColumnButton); |
|
201 |
|
202 spacerItem = new QSpacerItem(0, 23, QSizePolicy::Expanding, QSizePolicy::Minimum); |
|
203 |
|
204 horizontalLayout_3->addItem(spacerItem); |
|
205 |
|
206 moveColumnUpButton = new QToolButton(columnsBox); |
|
207 moveColumnUpButton->setObjectName(QString::fromUtf8("moveColumnUpButton")); |
|
208 |
|
209 horizontalLayout_3->addWidget(moveColumnUpButton); |
|
210 |
|
211 moveColumnDownButton = new QToolButton(columnsBox); |
|
212 moveColumnDownButton->setObjectName(QString::fromUtf8("moveColumnDownButton")); |
|
213 |
|
214 horizontalLayout_3->addWidget(moveColumnDownButton); |
|
215 |
|
216 |
|
217 gridLayout_2->addLayout(horizontalLayout_3, 1, 0, 1, 1); |
|
218 |
|
219 horizontalLayout_2 = new QHBoxLayout(); |
|
220 horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2")); |
|
221 label = new QLabel(columnsBox); |
|
222 label->setObjectName(QString::fromUtf8("label")); |
|
223 |
|
224 horizontalLayout_2->addWidget(label); |
|
225 |
|
226 columnIconSelector = new qdesigner_internal::IconSelector(columnsBox); |
|
227 columnIconSelector->setObjectName(QString::fromUtf8("columnIconSelector")); |
|
228 |
|
229 horizontalLayout_2->addWidget(columnIconSelector); |
|
230 |
|
231 spacerItem1 = new QSpacerItem(0, 21, QSizePolicy::Expanding, QSizePolicy::Minimum); |
|
232 |
|
233 horizontalLayout_2->addItem(spacerItem1); |
|
234 |
|
235 |
|
236 gridLayout_2->addLayout(horizontalLayout_2, 2, 0, 1, 1); |
|
237 |
|
238 |
|
239 verticalLayout->addWidget(columnsBox); |
|
240 |
|
241 rowsBox = new QGroupBox(widget); |
|
242 rowsBox->setObjectName(QString::fromUtf8("rowsBox")); |
|
243 gridLayout_3 = new QGridLayout(rowsBox); |
|
244 gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3")); |
|
245 rowsListWidget = new QListWidget(rowsBox); |
|
246 rowsListWidget->setObjectName(QString::fromUtf8("rowsListWidget")); |
|
247 sizePolicy1.setHeightForWidth(rowsListWidget->sizePolicy().hasHeightForWidth()); |
|
248 rowsListWidget->setSizePolicy(sizePolicy1); |
|
249 rowsListWidget->setFocusPolicy(Qt::TabFocus); |
|
250 |
|
251 gridLayout_3->addWidget(rowsListWidget, 0, 0, 1, 1); |
|
252 |
|
253 horizontalLayout_4 = new QHBoxLayout(); |
|
254 horizontalLayout_4->setObjectName(QString::fromUtf8("horizontalLayout_4")); |
|
255 newRowButton = new QToolButton(rowsBox); |
|
256 newRowButton->setObjectName(QString::fromUtf8("newRowButton")); |
|
257 |
|
258 horizontalLayout_4->addWidget(newRowButton); |
|
259 |
|
260 deleteRowButton = new QToolButton(rowsBox); |
|
261 deleteRowButton->setObjectName(QString::fromUtf8("deleteRowButton")); |
|
262 |
|
263 horizontalLayout_4->addWidget(deleteRowButton); |
|
264 |
|
265 spacerItem2 = new QSpacerItem(0, 23, QSizePolicy::Expanding, QSizePolicy::Minimum); |
|
266 |
|
267 horizontalLayout_4->addItem(spacerItem2); |
|
268 |
|
269 moveRowUpButton = new QToolButton(rowsBox); |
|
270 moveRowUpButton->setObjectName(QString::fromUtf8("moveRowUpButton")); |
|
271 |
|
272 horizontalLayout_4->addWidget(moveRowUpButton); |
|
273 |
|
274 moveRowDownButton = new QToolButton(rowsBox); |
|
275 moveRowDownButton->setObjectName(QString::fromUtf8("moveRowDownButton")); |
|
276 |
|
277 horizontalLayout_4->addWidget(moveRowDownButton); |
|
278 |
|
279 |
|
280 gridLayout_3->addLayout(horizontalLayout_4, 1, 0, 1, 1); |
|
281 |
|
282 horizontalLayout = new QHBoxLayout(); |
|
283 horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout")); |
|
284 label_2 = new QLabel(rowsBox); |
|
285 label_2->setObjectName(QString::fromUtf8("label_2")); |
|
286 |
|
287 horizontalLayout->addWidget(label_2); |
|
288 |
|
289 rowIconSelector = new qdesigner_internal::IconSelector(rowsBox); |
|
290 rowIconSelector->setObjectName(QString::fromUtf8("rowIconSelector")); |
|
291 |
|
292 horizontalLayout->addWidget(rowIconSelector); |
|
293 |
|
294 spacerItem3 = new QSpacerItem(0, 21, QSizePolicy::Expanding, QSizePolicy::Minimum); |
|
295 |
|
296 horizontalLayout->addItem(spacerItem3); |
|
297 |
|
298 |
|
299 gridLayout_3->addLayout(horizontalLayout, 2, 0, 1, 1); |
|
300 |
|
301 |
|
302 verticalLayout->addWidget(rowsBox); |
|
303 |
|
304 |
|
305 gridLayout_4->addWidget(widget, 0, 1, 1, 1); |
|
306 |
|
307 itemsBox->raise(); |
|
308 buttonBox->raise(); |
|
309 widget->raise(); |
|
310 QWidget::setTabOrder(tableWidget, columnsListWidget); |
|
311 QWidget::setTabOrder(columnsListWidget, newColumnButton); |
|
312 QWidget::setTabOrder(newColumnButton, deleteColumnButton); |
|
313 QWidget::setTabOrder(deleteColumnButton, moveColumnUpButton); |
|
314 QWidget::setTabOrder(moveColumnUpButton, moveColumnDownButton); |
|
315 QWidget::setTabOrder(moveColumnDownButton, rowsListWidget); |
|
316 QWidget::setTabOrder(rowsListWidget, newRowButton); |
|
317 QWidget::setTabOrder(newRowButton, deleteRowButton); |
|
318 QWidget::setTabOrder(deleteRowButton, moveRowUpButton); |
|
319 QWidget::setTabOrder(moveRowUpButton, moveRowDownButton); |
|
320 |
|
321 retranslateUi(qdesigner_internal__TableWidgetEditor); |
|
322 QObject::connect(buttonBox, SIGNAL(accepted()), qdesigner_internal__TableWidgetEditor, SLOT(accept())); |
|
323 QObject::connect(buttonBox, SIGNAL(rejected()), qdesigner_internal__TableWidgetEditor, SLOT(reject())); |
|
324 |
|
325 QMetaObject::connectSlotsByName(qdesigner_internal__TableWidgetEditor); |
|
326 } // setupUi |
|
327 |
|
328 void retranslateUi(QDialog *qdesigner_internal__TableWidgetEditor) |
|
329 { |
|
330 qdesigner_internal__TableWidgetEditor->setWindowTitle(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Edit Table Widget", 0, QApplication::UnicodeUTF8)); |
|
331 itemsBox->setTitle(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Table Items", 0, QApplication::UnicodeUTF8)); |
|
332 #ifndef QT_NO_TOOLTIP |
|
333 tableWidget->setToolTip(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Table Items", 0, QApplication::UnicodeUTF8)); |
|
334 #endif // QT_NO_TOOLTIP |
|
335 label_3->setText(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Icon", 0, QApplication::UnicodeUTF8)); |
|
336 columnsBox->setTitle(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Columns", 0, QApplication::UnicodeUTF8)); |
|
337 #ifndef QT_NO_TOOLTIP |
|
338 columnsListWidget->setToolTip(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Table Columns", 0, QApplication::UnicodeUTF8)); |
|
339 #endif // QT_NO_TOOLTIP |
|
340 #ifndef QT_NO_TOOLTIP |
|
341 newColumnButton->setToolTip(QApplication::translate("qdesigner_internal::TableWidgetEditor", "New Column", 0, QApplication::UnicodeUTF8)); |
|
342 #endif // QT_NO_TOOLTIP |
|
343 newColumnButton->setText(QApplication::translate("qdesigner_internal::TableWidgetEditor", "New", 0, QApplication::UnicodeUTF8)); |
|
344 #ifndef QT_NO_TOOLTIP |
|
345 deleteColumnButton->setToolTip(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Delete Column", 0, QApplication::UnicodeUTF8)); |
|
346 #endif // QT_NO_TOOLTIP |
|
347 deleteColumnButton->setText(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Delete", 0, QApplication::UnicodeUTF8)); |
|
348 #ifndef QT_NO_TOOLTIP |
|
349 moveColumnUpButton->setToolTip(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Move Column Up", 0, QApplication::UnicodeUTF8)); |
|
350 #endif // QT_NO_TOOLTIP |
|
351 moveColumnUpButton->setText(QApplication::translate("qdesigner_internal::TableWidgetEditor", "U", 0, QApplication::UnicodeUTF8)); |
|
352 #ifndef QT_NO_TOOLTIP |
|
353 moveColumnDownButton->setToolTip(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Move Column Down", 0, QApplication::UnicodeUTF8)); |
|
354 #endif // QT_NO_TOOLTIP |
|
355 moveColumnDownButton->setText(QApplication::translate("qdesigner_internal::TableWidgetEditor", "D", 0, QApplication::UnicodeUTF8)); |
|
356 label->setText(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Icon", 0, QApplication::UnicodeUTF8)); |
|
357 rowsBox->setTitle(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Rows", 0, QApplication::UnicodeUTF8)); |
|
358 #ifndef QT_NO_TOOLTIP |
|
359 rowsListWidget->setToolTip(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Table Rows", 0, QApplication::UnicodeUTF8)); |
|
360 #endif // QT_NO_TOOLTIP |
|
361 #ifndef QT_NO_TOOLTIP |
|
362 newRowButton->setToolTip(QApplication::translate("qdesigner_internal::TableWidgetEditor", "New Row", 0, QApplication::UnicodeUTF8)); |
|
363 #endif // QT_NO_TOOLTIP |
|
364 newRowButton->setText(QApplication::translate("qdesigner_internal::TableWidgetEditor", "New", 0, QApplication::UnicodeUTF8)); |
|
365 #ifndef QT_NO_TOOLTIP |
|
366 deleteRowButton->setToolTip(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Delete Row", 0, QApplication::UnicodeUTF8)); |
|
367 #endif // QT_NO_TOOLTIP |
|
368 deleteRowButton->setText(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Delete", 0, QApplication::UnicodeUTF8)); |
|
369 #ifndef QT_NO_TOOLTIP |
|
370 moveRowUpButton->setToolTip(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Move Row Up", 0, QApplication::UnicodeUTF8)); |
|
371 #endif // QT_NO_TOOLTIP |
|
372 moveRowUpButton->setText(QApplication::translate("qdesigner_internal::TableWidgetEditor", "U", 0, QApplication::UnicodeUTF8)); |
|
373 #ifndef QT_NO_TOOLTIP |
|
374 moveRowDownButton->setToolTip(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Move Row Down", 0, QApplication::UnicodeUTF8)); |
|
375 #endif // QT_NO_TOOLTIP |
|
376 moveRowDownButton->setText(QApplication::translate("qdesigner_internal::TableWidgetEditor", "D", 0, QApplication::UnicodeUTF8)); |
|
377 label_2->setText(QApplication::translate("qdesigner_internal::TableWidgetEditor", "Icon", 0, QApplication::UnicodeUTF8)); |
|
378 } // retranslateUi |
|
379 |
|
380 }; |
|
381 |
|
382 } // namespace qdesigner_internal |
|
383 |
|
384 namespace qdesigner_internal { |
|
385 namespace Ui { |
|
386 class TableWidgetEditor: public Ui_TableWidgetEditor {}; |
|
387 } // namespace Ui |
|
388 } // namespace qdesigner_internal |
|
389 |
|
390 QT_END_NAMESPACE |
|
391 |
|
392 #endif // TABLEWIDGETEDITOR_H |