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> 62 void setupUi(QWidget *DataAssemblyPropertyWidget)
64 if (DataAssemblyPropertyWidget->objectName().isEmpty())
65 DataAssemblyPropertyWidget->setObjectName(QString::fromUtf8(
"DataAssemblyPropertyWidget"));
66 DataAssemblyPropertyWidget->resize(288, 288);
67 verticalLayout_2 =
new QVBoxLayout(DataAssemblyPropertyWidget);
68 verticalLayout_2->setSpacing(2);
69 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
70 verticalLayout_2->setContentsMargins(0, 0, 0, 0);
71 tabWidget =
new QTabWidget(DataAssemblyPropertyWidget);
72 tabWidget->setObjectName(QString::fromUtf8(
"tabWidget"));
73 hierarchyTab =
new QWidget();
74 hierarchyTab->setObjectName(QString::fromUtf8(
"hierarchyTab"));
75 verticalLayout_3 =
new QVBoxLayout(hierarchyTab);
76 verticalLayout_3->setObjectName(QString::fromUtf8(
"verticalLayout_3"));
77 verticalLayout_3->setContentsMargins(0, 0, 0, 0);
79 hierarchy->setObjectName(QString::fromUtf8(
"hierarchy"));
80 hierarchy->setAlternatingRowColors(
true);
81 hierarchy->setUniformRowHeights(
true);
82 hierarchy->setExpandsOnDoubleClick(
false);
83 hierarchy->header()->setMinimumSectionSize(16);
84 hierarchy->header()->setDefaultSectionSize(16);
86 verticalLayout_3->addWidget(hierarchy);
88 tabWidget->addTab(hierarchyTab, QString());
89 selectorsTab =
new QWidget();
90 selectorsTab->setObjectName(QString::fromUtf8(
"selectorsTab"));
91 horizontalLayout =
new QHBoxLayout(selectorsTab);
92 horizontalLayout->setSpacing(2);
93 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
94 horizontalLayout->setContentsMargins(0, 0, 0, 0);
96 table->setObjectName(QString::fromUtf8(
"table"));
97 table->setAlternatingRowColors(
true);
98 table->setSelectionBehavior(QAbstractItemView::SelectRows);
99 table->setProperty(
"maximumRowCountBeforeScrolling", QVariant(10));
100 table->horizontalHeader()->setVisible(
false);
101 table->horizontalHeader()->setStretchLastSection(
true);
102 table->verticalHeader()->setVisible(
false);
104 horizontalLayout->addWidget(table);
106 verticalLayout =
new QVBoxLayout();
107 verticalLayout->setSpacing(1);
108 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
109 add =
new QToolButton(selectorsTab);
110 add->setObjectName(QString::fromUtf8(
"add"));
112 icon.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqPlus.svg"), QSize(), QIcon::Normal, QIcon::Off);
115 verticalLayout->addWidget(add);
117 remove =
new QToolButton(selectorsTab);
118 remove->setObjectName(QString::fromUtf8(
"remove"));
119 remove->setEnabled(
false);
121 icon1.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqMinus.svg"), QSize(), QIcon::Normal, QIcon::Off);
122 remove->setIcon(icon1);
124 verticalLayout->addWidget(
remove);
126 verticalSpacer =
new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
128 verticalLayout->addItem(verticalSpacer);
130 removeAll =
new QToolButton(selectorsTab);
131 removeAll->setObjectName(QString::fromUtf8(
"removeAll"));
133 icon2.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqDelete.svg"), QSize(), QIcon::Normal, QIcon::Off);
134 removeAll->setIcon(icon2);
136 verticalLayout->addWidget(removeAll);
139 horizontalLayout->addLayout(verticalLayout);
141 tabWidget->addTab(selectorsTab, QString());
142 colorsTab =
new QWidget();
143 colorsTab->setObjectName(QString::fromUtf8(
"colorsTab"));
144 horizontalLayout_2 =
new QHBoxLayout(colorsTab);
145 horizontalLayout_2->setSpacing(2);
146 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
147 horizontalLayout_2->setContentsMargins(0, 0, 0, 0);
149 colors->setObjectName(QString::fromUtf8(
"colors"));
150 colors->setAlternatingRowColors(
true);
151 colors->setProperty(
"maximumRowCountBeforeScrolling", QVariant(10));
152 colors->horizontalHeader()->setMinimumSectionSize(16);
153 colors->horizontalHeader()->setDefaultSectionSize(16);
154 colors->horizontalHeader()->setStretchLastSection(
true);
155 colors->verticalHeader()->setVisible(
false);
157 horizontalLayout_2->addWidget(colors);
159 verticalLayout_4 =
new QVBoxLayout();
160 verticalLayout_4->setSpacing(1);
161 verticalLayout_4->setObjectName(QString::fromUtf8(
"verticalLayout_4"));
162 addColors =
new QToolButton(colorsTab);
163 addColors->setObjectName(QString::fromUtf8(
"addColors"));
164 addColors->setIcon(icon);
166 verticalLayout_4->addWidget(addColors);
168 removeColors =
new QToolButton(colorsTab);
169 removeColors->setObjectName(QString::fromUtf8(
"removeColors"));
170 removeColors->setEnabled(
false);
171 removeColors->setIcon(icon1);
173 verticalLayout_4->addWidget(removeColors);
175 verticalSpacer_2 =
new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
177 verticalLayout_4->addItem(verticalSpacer_2);
179 removeAllColors =
new QToolButton(colorsTab);
180 removeAllColors->setObjectName(QString::fromUtf8(
"removeAllColors"));
181 removeAllColors->setIcon(icon2);
183 verticalLayout_4->addWidget(removeAllColors);
186 horizontalLayout_2->addLayout(verticalLayout_4);
188 tabWidget->addTab(colorsTab, QString());
189 opacitiesTab =
new QWidget();
190 opacitiesTab->setObjectName(QString::fromUtf8(
"opacitiesTab"));
191 horizontalLayout_3 =
new QHBoxLayout(opacitiesTab);
192 horizontalLayout_3->setSpacing(2);
193 horizontalLayout_3->setObjectName(QString::fromUtf8(
"horizontalLayout_3"));
194 horizontalLayout_3->setContentsMargins(0, 0, 0, 0);
196 opacities->setObjectName(QString::fromUtf8(
"opacities"));
197 opacities->setAlternatingRowColors(
true);
198 opacities->setProperty(
"maximumRowCountBeforeScrolling", QVariant(10));
199 opacities->horizontalHeader()->setMinimumSectionSize(16);
200 opacities->horizontalHeader()->setDefaultSectionSize(16);
201 opacities->horizontalHeader()->setStretchLastSection(
true);
202 opacities->verticalHeader()->setVisible(
false);
204 horizontalLayout_3->addWidget(opacities);
206 verticalLayout_5 =
new QVBoxLayout();
207 verticalLayout_5->setSpacing(1);
208 verticalLayout_5->setObjectName(QString::fromUtf8(
"verticalLayout_5"));
209 addOpacities =
new QToolButton(opacitiesTab);
210 addOpacities->setObjectName(QString::fromUtf8(
"addOpacities"));
211 addOpacities->setIcon(icon);
213 verticalLayout_5->addWidget(addOpacities);
215 removeOpacities =
new QToolButton(opacitiesTab);
216 removeOpacities->setObjectName(QString::fromUtf8(
"removeOpacities"));
217 removeOpacities->setEnabled(
false);
218 removeOpacities->setIcon(icon1);
220 verticalLayout_5->addWidget(removeOpacities);
222 verticalSpacer_3 =
new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
224 verticalLayout_5->addItem(verticalSpacer_3);
226 removeAllOpacities =
new QToolButton(opacitiesTab);
227 removeAllOpacities->setObjectName(QString::fromUtf8(
"removeAllOpacities"));
228 removeAllOpacities->setIcon(icon2);
230 verticalLayout_5->addWidget(removeAllOpacities);
233 horizontalLayout_3->addLayout(verticalLayout_5);
235 tabWidget->addTab(opacitiesTab, QString());
237 verticalLayout_2->addWidget(tabWidget);
239 assemblyCombo =
new QComboBox(DataAssemblyPropertyWidget);
240 assemblyCombo->setObjectName(QString::fromUtf8(
"assemblyCombo"));
242 verticalLayout_2->addWidget(assemblyCombo);
247 tabWidget->setCurrentIndex(0);
250 QMetaObject::connectSlotsByName(DataAssemblyPropertyWidget);
255 DataAssemblyPropertyWidget->setWindowTitle(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Form",
nullptr));
256 tabWidget->setTabText(tabWidget->indexOf(hierarchyTab), QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Hierarchy",
nullptr));
257 #if QT_CONFIG(tooltip) 258 add->setToolTip(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Add new entry",
nullptr));
259 #endif // QT_CONFIG(tooltip) 260 add->setText(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"...",
nullptr));
261 #if QT_CONFIG(tooltip) 262 remove->setToolTip(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Remove current entry",
nullptr));
263 #endif // QT_CONFIG(tooltip) 264 remove->setText(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"...",
nullptr));
265 #if QT_CONFIG(tooltip) 266 removeAll->setToolTip(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Remove all entries",
nullptr));
267 #endif // QT_CONFIG(tooltip) 268 removeAll->setText(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"...",
nullptr));
269 tabWidget->setTabText(tabWidget->indexOf(selectorsTab), QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Selectors",
nullptr));
270 #if QT_CONFIG(tooltip) 271 addColors->setToolTip(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Add new entry",
nullptr));
272 #endif // QT_CONFIG(tooltip) 273 addColors->setText(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"...",
nullptr));
274 #if QT_CONFIG(tooltip) 275 removeColors->setToolTip(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Remove current entry",
nullptr));
276 #endif // QT_CONFIG(tooltip) 277 removeColors->setText(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"...",
nullptr));
278 #if QT_CONFIG(tooltip) 279 removeAllColors->setToolTip(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Remove all entries",
nullptr));
280 #endif // QT_CONFIG(tooltip) 281 removeAllColors->setText(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"...",
nullptr));
282 tabWidget->setTabText(tabWidget->indexOf(colorsTab), QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Color",
nullptr));
283 #if QT_CONFIG(tooltip) 284 addOpacities->setToolTip(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Add new entry",
nullptr));
285 #endif // QT_CONFIG(tooltip) 286 addOpacities->setText(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"...",
nullptr));
287 #if QT_CONFIG(tooltip) 288 removeOpacities->setToolTip(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Remove current entry",
nullptr));
289 #endif // QT_CONFIG(tooltip) 290 removeOpacities->setText(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"...",
nullptr));
291 #if QT_CONFIG(tooltip) 292 removeAllOpacities->setToolTip(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Remove all entries",
nullptr));
293 #endif // QT_CONFIG(tooltip) 294 removeAllOpacities->setText(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"...",
nullptr));
295 tabWidget->setTabText(tabWidget->indexOf(opacitiesTab), QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Opacity",
nullptr));
296 #if QT_CONFIG(tooltip) 297 assemblyCombo->setToolTip(QCoreApplication::translate(
"DataAssemblyPropertyWidget",
"Select active assembly to use.",
nullptr));
298 #endif // QT_CONFIG(tooltip) 309 #endif // UI_PQDATAASSEMBLYPROPERTYWIDGET_H
: QTreeView subclass that add ParaView specific customizations.
pqExpandableTableView extends pqTableView to add support for the following features: ...