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