9 #ifndef UI_PQMULTIBLOCKINSPECTORWIDGET_H 10 #define UI_PQMULTIBLOCKINSPECTORWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QHBoxLayout> 16 #include <QtWidgets/QHeaderView> 17 #include <QtWidgets/QLabel> 18 #include <QtWidgets/QPushButton> 19 #include <QtWidgets/QSpacerItem> 20 #include <QtWidgets/QVBoxLayout> 21 #include <QtWidgets/QWidget> 36 void setupUi(QWidget *MultiBlockInspectorWidget)
38 if (MultiBlockInspectorWidget->objectName().isEmpty())
39 MultiBlockInspectorWidget->setObjectName(QString::fromUtf8(
"MultiBlockInspectorWidget"));
40 MultiBlockInspectorWidget->resize(480, 640);
41 verticalLayout =
new QVBoxLayout(MultiBlockInspectorWidget);
42 verticalLayout->setSpacing(2);
43 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
44 treeView =
new pqTreeView(MultiBlockInspectorWidget);
45 treeView->setObjectName(QString::fromUtf8(
"treeView"));
46 treeView->setContextMenuPolicy(Qt::CustomContextMenu);
47 treeView->setSelectionMode(QAbstractItemView::ExtendedSelection);
48 treeView->setUniformRowHeights(
true);
49 treeView->setHeaderHidden(
true);
50 treeView->setExpandsOnDoubleClick(
false);
52 verticalLayout->addWidget(treeView);
54 horizontalLayout =
new QHBoxLayout();
55 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
56 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
58 horizontalLayout->addItem(horizontalSpacer);
60 showHints =
new QPushButton(MultiBlockInspectorWidget);
61 showHints->setObjectName(QString::fromUtf8(
"showHints"));
63 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqHelp.svg"), QSize(), QIcon::Normal, QIcon::Off);
64 showHints->setIcon(icon);
65 showHints->setCheckable(
true);
66 showHints->setChecked(
true);
68 horizontalLayout->addWidget(showHints);
71 verticalLayout->addLayout(horizontalLayout);
73 label =
new QLabel(MultiBlockInspectorWidget);
74 label->setObjectName(QString::fromUtf8(
"label"));
75 label->setTextFormat(Qt::RichText);
76 label->setWordWrap(
true);
78 verticalLayout->addWidget(label);
82 QObject::connect(showHints, SIGNAL(toggled(
bool)), label, SLOT(setVisible(
bool)));
84 QMetaObject::connectSlotsByName(MultiBlockInspectorWidget);
89 MultiBlockInspectorWidget->setWindowTitle(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"Multi-block Inspector",
nullptr));
90 #if QT_CONFIG(tooltip) 91 showHints->setToolTip(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"Show/Hide legend",
nullptr));
92 #endif // QT_CONFIG(tooltip) 93 showHints->setText(QString());
94 label->setText(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"<html><head/><body><p><span style=\" font-weight:600;\">Color Legend:</span><br/><img src=\":/pqWidgets/Icons/no_color.png\"/> - using coloring parameters from display<br/><img src=\":/pqWidgets/Icons/inherited_color.png\"/> - color is inherited from a parent node or color map<br/><img src=\":/pqWidgets/Icons/explicit_color.png\"/> - color explicitly specified for this node</p><p><span style=\" font-weight:600;\">Opacity Legend:</span><br/><img src=\":/pqWidgets/Icons/no_opacity.png\"/> - using opacity parameters from display<br/><img src=\":/pqWidgets/Icons/inherited_opacity.png\"/> - opacity is inherited from a parent node<br/><img src=\":/pqWidgets/Icons/explicit_opacity.png\"/> - opacity explicitly specified for this node</p></body></html>",
nullptr));
105 #endif // UI_PQMULTIBLOCKINSPECTORWIDGET_H
: QTreeView subclass that add ParaView specific customizations.