9 #ifndef UI_PQDATAASSEMBLYPROPERTYWIDGET_H 10 #define UI_PQDATAASSEMBLYPROPERTYWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QHBoxLayout> 16 #include <QtWidgets/QHeaderView> 17 #include <QtWidgets/QSpacerItem> 18 #include <QtWidgets/QTabWidget> 19 #include <QtWidgets/QToolButton> 20 #include <QtWidgets/QVBoxLayout> 21 #include <QtWidgets/QWidget> 44 void setupUi(QWidget *DataAssemblyPropertyWidget)
46 if (DataAssemblyPropertyWidget->objectName().isEmpty())
47 DataAssemblyPropertyWidget->setObjectName(QString::fromUtf8(
"DataAssemblyPropertyWidget"));
48 DataAssemblyPropertyWidget->resize(253, 209);
49 verticalLayout_2 =
new QVBoxLayout(DataAssemblyPropertyWidget);
50 verticalLayout_2->setSpacing(2);
51 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
52 verticalLayout_2->setContentsMargins(0, 0, 0, 0);
53 tabWidget =
new QTabWidget(DataAssemblyPropertyWidget);
54 tabWidget->setObjectName(QString::fromUtf8(
"tabWidget"));
56 tab->setObjectName(QString::fromUtf8(
"tab"));
57 verticalLayout_3 =
new QVBoxLayout(tab);
58 verticalLayout_3->setObjectName(QString::fromUtf8(
"verticalLayout_3"));
59 verticalLayout_3->setContentsMargins(0, 0, 0, 0);
61 tree->setObjectName(QString::fromUtf8(
"tree"));
62 tree->setUniformRowHeights(
true);
63 tree->setHeaderHidden(
false);
65 verticalLayout_3->addWidget(tree);
67 tabWidget->addTab(tab, QString());
68 tab_2 =
new QWidget();
69 tab_2->setObjectName(QString::fromUtf8(
"tab_2"));
70 horizontalLayout =
new QHBoxLayout(tab_2);
71 horizontalLayout->setSpacing(2);
72 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
73 horizontalLayout->setContentsMargins(0, 0, 0, 0);
75 table->setObjectName(QString::fromUtf8(
"table"));
76 table->setAlternatingRowColors(
true);
77 table->setSelectionBehavior(QAbstractItemView::SelectRows);
78 table->setProperty(
"maximumRowCountBeforeScrolling", QVariant(10));
79 table->horizontalHeader()->setVisible(
false);
80 table->horizontalHeader()->setStretchLastSection(
true);
81 table->verticalHeader()->setVisible(
false);
83 horizontalLayout->addWidget(table);
85 verticalLayout =
new QVBoxLayout();
86 verticalLayout->setSpacing(1);
87 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
88 add =
new QToolButton(tab_2);
89 add->setObjectName(QString::fromUtf8(
"add"));
91 icon.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqPlus.svg"), QSize(), QIcon::Normal, QIcon::Off);
94 verticalLayout->addWidget(add);
96 remove =
new QToolButton(tab_2);
97 remove->setObjectName(QString::fromUtf8(
"remove"));
98 remove->setEnabled(
false);
100 icon1.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqMinus.svg"), QSize(), QIcon::Normal, QIcon::Off);
101 remove->setIcon(icon1);
103 verticalLayout->addWidget(
remove);
105 verticalSpacer =
new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
107 verticalLayout->addItem(verticalSpacer);
109 removeAll =
new QToolButton(tab_2);
110 removeAll->setObjectName(QString::fromUtf8(
"removeAll"));
112 icon2.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqDelete.svg"), QSize(), QIcon::Normal, QIcon::Off);
113 removeAll->setIcon(icon2);
115 verticalLayout->addWidget(removeAll);
118 horizontalLayout->addLayout(verticalLayout);
120 tabWidget->addTab(tab_2, QString());
122 verticalLayout_2->addWidget(tabWidget);
127 tabWidget->setCurrentIndex(0);
130 QMetaObject::connectSlotsByName(DataAssemblyPropertyWidget);
135 DataAssemblyPropertyWidget->setWindowTitle(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Form",
nullptr));
136 tabWidget->setTabText(tabWidget->indexOf(tab), QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Assembly",
nullptr));
137 #if QT_CONFIG(tooltip) 138 add->setToolTip(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Add new entry",
nullptr));
139 #endif // QT_CONFIG(tooltip) 140 add->setText(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"...",
nullptr));
141 #if QT_CONFIG(tooltip) 142 remove->setToolTip(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Remove current entry",
nullptr));
143 #endif // QT_CONFIG(tooltip) 144 remove->setText(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"...",
nullptr));
145 #if QT_CONFIG(tooltip) 146 removeAll->setToolTip(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Remove all entries",
nullptr));
147 #endif // QT_CONFIG(tooltip) 148 removeAll->setText(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"...",
nullptr));
149 tabWidget->setTabText(tabWidget->indexOf(tab_2), QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Values",
nullptr));
160 #endif // UI_PQDATAASSEMBLYPROPERTYWIDGET_H
: QTreeView subclass that add ParaView specific customizations.
pqExpandableTableView extends pqTableView to add support for the following features: ...