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/QLabel> 17 #include <QtWidgets/QPushButton> 18 #include <QtWidgets/QSpacerItem> 19 #include <QtWidgets/QVBoxLayout> 20 #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 container =
new QWidget(MultiBlockInspectorWidget);
45 container->setObjectName(QString::fromUtf8(
"container"));
46 containerLayout =
new QVBoxLayout(container);
47 containerLayout->setObjectName(QString::fromUtf8(
"containerLayout"));
48 containerLayout->setContentsMargins(0, 0, 0, 0);
50 verticalLayout->addWidget(container);
52 extractBlocks =
new QPushButton(MultiBlockInspectorWidget);
53 extractBlocks->setObjectName(QString::fromUtf8(
"extractBlocks"));
55 verticalLayout->addWidget(extractBlocks);
57 horizontalLayout =
new QHBoxLayout();
58 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
59 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
61 horizontalLayout->addItem(horizontalSpacer);
63 showHints =
new QPushButton(MultiBlockInspectorWidget);
64 showHints->setObjectName(QString::fromUtf8(
"showHints"));
66 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqHelp.svg"), QSize(), QIcon::Normal, QIcon::Off);
67 showHints->setIcon(icon);
68 showHints->setCheckable(
true);
69 showHints->setChecked(
true);
71 horizontalLayout->addWidget(showHints);
74 verticalLayout->addLayout(horizontalLayout);
76 label =
new QLabel(MultiBlockInspectorWidget);
77 label->setObjectName(QString::fromUtf8(
"label"));
78 label->setTextFormat(Qt::RichText);
79 label->setWordWrap(
true);
81 verticalLayout->addWidget(label);
83 verticalLayout->setStretch(0, 1);
86 QObject::connect(showHints, SIGNAL(toggled(
bool)), label, SLOT(setVisible(
bool)));
88 QMetaObject::connectSlotsByName(MultiBlockInspectorWidget);
93 MultiBlockInspectorWidget->setWindowTitle(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"MultiBlock Inspector",
nullptr));
94 extractBlocks->setText(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"Extract Blocks",
nullptr));
95 #if QT_CONFIG(tooltip) 96 showHints->setToolTip(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"Show/Hide legend",
nullptr));
97 #endif // QT_CONFIG(tooltip) 98 showHints->setText(QString());
99 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));
110 #endif // UI_PQMULTIBLOCKINSPECTORWIDGET_H