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/QComboBox> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QHeaderView> 18 #include <QtWidgets/QSpacerItem> 19 #include <QtWidgets/QTabWidget> 20 #include <QtWidgets/QToolButton> 21 #include <QtWidgets/QVBoxLayout> 22 #include <QtWidgets/QWidget> 46 void setupUi(QWidget *DataAssemblyPropertyWidget)
48 if (DataAssemblyPropertyWidget->objectName().isEmpty())
49 DataAssemblyPropertyWidget->setObjectName(QString::fromUtf8(
"DataAssemblyPropertyWidget"));
50 DataAssemblyPropertyWidget->resize(288, 288);
51 verticalLayout_2 =
new QVBoxLayout(DataAssemblyPropertyWidget);
52 verticalLayout_2->setSpacing(2);
53 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
54 verticalLayout_2->setContentsMargins(0, 0, 0, 0);
55 tabWidget =
new QTabWidget(DataAssemblyPropertyWidget);
56 tabWidget->setObjectName(QString::fromUtf8(
"tabWidget"));
57 hierarchyTab =
new QWidget();
58 hierarchyTab->setObjectName(QString::fromUtf8(
"hierarchyTab"));
59 verticalLayout_3 =
new QVBoxLayout(hierarchyTab);
60 verticalLayout_3->setObjectName(QString::fromUtf8(
"verticalLayout_3"));
61 verticalLayout_3->setContentsMargins(0, 0, 0, 0);
63 hierarchy->setObjectName(QString::fromUtf8(
"hierarchy"));
64 hierarchy->setAlternatingRowColors(
true);
65 hierarchy->setUniformRowHeights(
true);
66 hierarchy->setExpandsOnDoubleClick(
false);
67 hierarchy->header()->setMinimumSectionSize(16);
68 hierarchy->header()->setDefaultSectionSize(16);
70 verticalLayout_3->addWidget(hierarchy);
72 tabWidget->addTab(hierarchyTab, QString());
73 selectorsTab =
new QWidget();
74 selectorsTab->setObjectName(QString::fromUtf8(
"selectorsTab"));
75 horizontalLayout =
new QHBoxLayout(selectorsTab);
76 horizontalLayout->setSpacing(2);
77 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
78 horizontalLayout->setContentsMargins(0, 0, 0, 0);
80 table->setObjectName(QString::fromUtf8(
"table"));
81 table->setAlternatingRowColors(
true);
82 table->setSelectionBehavior(QAbstractItemView::SelectRows);
83 table->setProperty(
"maximumRowCountBeforeScrolling", QVariant(10));
84 table->horizontalHeader()->setVisible(
false);
85 table->horizontalHeader()->setStretchLastSection(
true);
86 table->verticalHeader()->setVisible(
false);
88 horizontalLayout->addWidget(table);
90 verticalLayout =
new QVBoxLayout();
91 verticalLayout->setSpacing(1);
92 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
93 add =
new QToolButton(selectorsTab);
94 add->setObjectName(QString::fromUtf8(
"add"));
96 icon.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqPlus.svg"), QSize(), QIcon::Normal, QIcon::Off);
99 verticalLayout->addWidget(add);
101 remove =
new QToolButton(selectorsTab);
102 remove->setObjectName(QString::fromUtf8(
"remove"));
103 remove->setEnabled(
false);
105 icon1.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqMinus.svg"), QSize(), QIcon::Normal, QIcon::Off);
106 remove->setIcon(icon1);
108 verticalLayout->addWidget(
remove);
110 verticalSpacer =
new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
112 verticalLayout->addItem(verticalSpacer);
114 removeAll =
new QToolButton(selectorsTab);
115 removeAll->setObjectName(QString::fromUtf8(
"removeAll"));
117 icon2.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqDelete.svg"), QSize(), QIcon::Normal, QIcon::Off);
118 removeAll->setIcon(icon2);
120 verticalLayout->addWidget(removeAll);
123 horizontalLayout->addLayout(verticalLayout);
125 tabWidget->addTab(selectorsTab, QString());
127 verticalLayout_2->addWidget(tabWidget);
129 assemblyCombo =
new QComboBox(DataAssemblyPropertyWidget);
130 assemblyCombo->setObjectName(QString::fromUtf8(
"assemblyCombo"));
132 verticalLayout_2->addWidget(assemblyCombo);
137 tabWidget->setCurrentIndex(0);
140 QMetaObject::connectSlotsByName(DataAssemblyPropertyWidget);
145 DataAssemblyPropertyWidget->setWindowTitle(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Form",
nullptr));
146 tabWidget->setTabText(tabWidget->indexOf(hierarchyTab), QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Hierarchy",
nullptr));
147 #if QT_CONFIG(tooltip) 148 add->setToolTip(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Add new entry",
nullptr));
149 #endif // QT_CONFIG(tooltip) 150 add->setText(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"...",
nullptr));
151 #if QT_CONFIG(tooltip) 152 remove->setToolTip(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Remove current entry",
nullptr));
153 #endif // QT_CONFIG(tooltip) 154 remove->setText(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"...",
nullptr));
155 #if QT_CONFIG(tooltip) 156 removeAll->setToolTip(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Remove all entries",
nullptr));
157 #endif // QT_CONFIG(tooltip) 158 removeAll->setText(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"...",
nullptr));
159 tabWidget->setTabText(tabWidget->indexOf(selectorsTab), QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Selectors",
nullptr));
160 #if QT_CONFIG(tooltip) 161 assemblyCombo->setToolTip(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Select active assembly to use.",
nullptr));
162 #endif // QT_CONFIG(tooltip) 173 #endif // UI_PQDATAASSEMBLYPROPERTYWIDGET_H
: QTreeView subclass that add ParaView specific customizations.
pqExpandableTableView extends pqTableView to add support for the following features: ...