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> 60 void setupUi(QWidget *MultiBlockInspectorWidget)
62 if (MultiBlockInspectorWidget->objectName().isEmpty())
63 MultiBlockInspectorWidget->setObjectName(QString::fromUtf8(
"MultiBlockInspectorWidget"));
64 MultiBlockInspectorWidget->resize(662, 640);
65 verticalLayout =
new QVBoxLayout(MultiBlockInspectorWidget);
66 verticalLayout->setSpacing(2);
67 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
68 container =
new QWidget(MultiBlockInspectorWidget);
69 container->setObjectName(QString::fromUtf8(
"container"));
70 containerLayout =
new QVBoxLayout(container);
71 containerLayout->setObjectName(QString::fromUtf8(
"containerLayout"));
72 containerLayout->setContentsMargins(0, 0, 0, 0);
74 verticalLayout->addWidget(container);
76 extractBlocks =
new QPushButton(MultiBlockInspectorWidget);
77 extractBlocks->setObjectName(QString::fromUtf8(
"extractBlocks"));
79 verticalLayout->addWidget(extractBlocks);
81 horizontalLayout =
new QHBoxLayout();
82 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
83 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
85 horizontalLayout->addItem(horizontalSpacer);
87 showHints =
new QPushButton(MultiBlockInspectorWidget);
88 showHints->setObjectName(QString::fromUtf8(
"showHints"));
90 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqHelp.svg"), QSize(), QIcon::Normal, QIcon::Off);
91 showHints->setIcon(icon);
92 showHints->setCheckable(
true);
93 showHints->setChecked(
true);
95 horizontalLayout->addWidget(showHints);
98 verticalLayout->addLayout(horizontalLayout);
100 labelHeader =
new QLabel(MultiBlockInspectorWidget);
101 labelHeader->setObjectName(QString::fromUtf8(
"labelHeader"));
105 labelHeader->setFont(font);
106 labelHeader->setTextFormat(Qt::PlainText);
107 labelHeader->setWordWrap(
true);
109 verticalLayout->addWidget(labelHeader);
111 horizontalLayout_stateDisabled =
new QHBoxLayout();
112 horizontalLayout_stateDisabled->setObjectName(QString::fromUtf8(
"horizontalLayout_stateDisabled"));
113 iconStateDisabled =
new QLabel(MultiBlockInspectorWidget);
114 iconStateDisabled->setObjectName(QString::fromUtf8(
"iconStateDisabled"));
115 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
116 sizePolicy.setHorizontalStretch(0);
117 sizePolicy.setVerticalStretch(0);
118 sizePolicy.setHeightForWidth(iconStateDisabled->sizePolicy().hasHeightForWidth());
119 iconStateDisabled->setSizePolicy(sizePolicy);
120 iconStateDisabled->setPixmap(QPixmap(QString::fromUtf8(
":/pqWidgets/Icons/pqStateDisabled.svg")));
122 horizontalLayout_stateDisabled->addWidget(iconStateDisabled);
124 labelStateDisabled =
new QLabel(MultiBlockInspectorWidget);
125 labelStateDisabled->setObjectName(QString::fromUtf8(
"labelStateDisabled"));
126 labelStateDisabled->setTextFormat(Qt::PlainText);
127 labelStateDisabled->setWordWrap(
true);
129 horizontalLayout_stateDisabled->addWidget(labelStateDisabled);
132 verticalLayout->addLayout(horizontalLayout_stateDisabled);
134 horizontalLayout_stateRepresentationInherited =
new QHBoxLayout();
135 horizontalLayout_stateRepresentationInherited->setObjectName(QString::fromUtf8(
"horizontalLayout_stateRepresentationInherited"));
136 iconStateRepresentationInherited =
new QLabel(MultiBlockInspectorWidget);
137 iconStateRepresentationInherited->setObjectName(QString::fromUtf8(
"iconStateRepresentationInherited"));
138 sizePolicy.setHeightForWidth(iconStateRepresentationInherited->sizePolicy().hasHeightForWidth());
139 iconStateRepresentationInherited->setSizePolicy(sizePolicy);
140 iconStateRepresentationInherited->setPixmap(QPixmap(QString::fromUtf8(
":/pqWidgets/Icons/pqStateRepresentationInherited.svg")));
142 horizontalLayout_stateRepresentationInherited->addWidget(iconStateRepresentationInherited);
144 labelStateRepresentationInherited =
new QLabel(MultiBlockInspectorWidget);
145 labelStateRepresentationInherited->setObjectName(QString::fromUtf8(
"labelStateRepresentationInherited"));
146 labelStateRepresentationInherited->setTextFormat(Qt::PlainText);
147 labelStateRepresentationInherited->setWordWrap(
true);
149 horizontalLayout_stateRepresentationInherited->addWidget(labelStateRepresentationInherited);
152 verticalLayout->addLayout(horizontalLayout_stateRepresentationInherited);
154 horizontalLayout_stateBlockInherited =
new QHBoxLayout();
155 horizontalLayout_stateBlockInherited->setObjectName(QString::fromUtf8(
"horizontalLayout_stateBlockInherited"));
156 iconStateBlockInherited =
new QLabel(MultiBlockInspectorWidget);
157 iconStateBlockInherited->setObjectName(QString::fromUtf8(
"iconStateBlockInherited"));
158 sizePolicy.setHeightForWidth(iconStateBlockInherited->sizePolicy().hasHeightForWidth());
159 iconStateBlockInherited->setSizePolicy(sizePolicy);
160 iconStateBlockInherited->setPixmap(QPixmap(QString::fromUtf8(
":/pqWidgets/Icons/pqStateBlockInherited.svg")));
162 horizontalLayout_stateBlockInherited->addWidget(iconStateBlockInherited);
164 labelStateBlockInherited =
new QLabel(MultiBlockInspectorWidget);
165 labelStateBlockInherited->setObjectName(QString::fromUtf8(
"labelStateBlockInherited"));
166 labelStateBlockInherited->setTextFormat(Qt::PlainText);
167 labelStateBlockInherited->setWordWrap(
true);
169 horizontalLayout_stateBlockInherited->addWidget(labelStateBlockInherited);
172 verticalLayout->addLayout(horizontalLayout_stateBlockInherited);
174 horizontalLayout_stateMixedInherited =
new QHBoxLayout();
175 horizontalLayout_stateMixedInherited->setObjectName(QString::fromUtf8(
"horizontalLayout_stateMixedInherited"));
176 iconStateMixedInherited =
new QLabel(MultiBlockInspectorWidget);
177 iconStateMixedInherited->setObjectName(QString::fromUtf8(
"iconStateMixedInherited"));
178 sizePolicy.setHeightForWidth(iconStateMixedInherited->sizePolicy().hasHeightForWidth());
179 iconStateMixedInherited->setSizePolicy(sizePolicy);
180 iconStateMixedInherited->setPixmap(QPixmap(QString::fromUtf8(
":/pqWidgets/Icons/pqStateMixedInherited.svg")));
182 horizontalLayout_stateMixedInherited->addWidget(iconStateMixedInherited);
184 labelStateMixedInherited =
new QLabel(MultiBlockInspectorWidget);
185 labelStateMixedInherited->setObjectName(QString::fromUtf8(
"labelStateMixedInherited"));
186 labelStateMixedInherited->setTextFormat(Qt::PlainText);
187 labelStateMixedInherited->setWordWrap(
true);
189 horizontalLayout_stateMixedInherited->addWidget(labelStateMixedInherited);
192 verticalLayout->addLayout(horizontalLayout_stateMixedInherited);
194 horizontalLayout_stateSet =
new QHBoxLayout();
195 horizontalLayout_stateSet->setObjectName(QString::fromUtf8(
"horizontalLayout_stateSet"));
196 iconStateSet =
new QLabel(MultiBlockInspectorWidget);
197 iconStateSet->setObjectName(QString::fromUtf8(
"iconStateSet"));
198 sizePolicy.setHeightForWidth(iconStateSet->sizePolicy().hasHeightForWidth());
199 iconStateSet->setSizePolicy(sizePolicy);
200 iconStateSet->setPixmap(QPixmap(QString::fromUtf8(
":/pqWidgets/Icons/pqStateSet.svg")));
202 horizontalLayout_stateSet->addWidget(iconStateSet);
204 labelStateSet =
new QLabel(MultiBlockInspectorWidget);
205 labelStateSet->setObjectName(QString::fromUtf8(
"labelStateSet"));
206 labelStateSet->setTextFormat(Qt::PlainText);
207 labelStateSet->setWordWrap(
true);
209 horizontalLayout_stateSet->addWidget(labelStateSet);
212 verticalLayout->addLayout(horizontalLayout_stateSet);
214 horizontalLayout_stateSetAndRepresentationInherited =
new QHBoxLayout();
215 horizontalLayout_stateSetAndRepresentationInherited->setObjectName(QString::fromUtf8(
"horizontalLayout_stateSetAndRepresentationInherited"));
216 iconStateSetAndRepresentationInherited =
new QLabel(MultiBlockInspectorWidget);
217 iconStateSetAndRepresentationInherited->setObjectName(QString::fromUtf8(
"iconStateSetAndRepresentationInherited"));
218 sizePolicy.setHeightForWidth(iconStateSetAndRepresentationInherited->sizePolicy().hasHeightForWidth());
219 iconStateSetAndRepresentationInherited->setSizePolicy(sizePolicy);
220 iconStateSetAndRepresentationInherited->setPixmap(QPixmap(QString::fromUtf8(
":/pqWidgets/Icons/pqStateSetAndRepresentationInherited.svg")));
222 horizontalLayout_stateSetAndRepresentationInherited->addWidget(iconStateSetAndRepresentationInherited);
224 labelStateSetAndRepresentationInherited =
new QLabel(MultiBlockInspectorWidget);
225 labelStateSetAndRepresentationInherited->setObjectName(QString::fromUtf8(
"labelStateSetAndRepresentationInherited"));
226 labelStateSetAndRepresentationInherited->setTextFormat(Qt::PlainText);
227 labelStateSetAndRepresentationInherited->setWordWrap(
true);
229 horizontalLayout_stateSetAndRepresentationInherited->addWidget(labelStateSetAndRepresentationInherited);
232 verticalLayout->addLayout(horizontalLayout_stateSetAndRepresentationInherited);
234 horizontalLayout_stateSetAndBlockInherited =
new QHBoxLayout();
235 horizontalLayout_stateSetAndBlockInherited->setObjectName(QString::fromUtf8(
"horizontalLayout_stateSetAndBlockInherited"));
236 iconStateSetAndBlockInherited =
new QLabel(MultiBlockInspectorWidget);
237 iconStateSetAndBlockInherited->setObjectName(QString::fromUtf8(
"iconStateSetAndBlockInherited"));
238 sizePolicy.setHeightForWidth(iconStateSetAndBlockInherited->sizePolicy().hasHeightForWidth());
239 iconStateSetAndBlockInherited->setSizePolicy(sizePolicy);
240 iconStateSetAndBlockInherited->setPixmap(QPixmap(QString::fromUtf8(
":/pqWidgets/Icons/pqStateSetAndBlockInherited.svg")));
242 horizontalLayout_stateSetAndBlockInherited->addWidget(iconStateSetAndBlockInherited);
244 labelStateSetAndBlockInherited =
new QLabel(MultiBlockInspectorWidget);
245 labelStateSetAndBlockInherited->setObjectName(QString::fromUtf8(
"labelStateSetAndBlockInherited"));
246 labelStateSetAndBlockInherited->setTextFormat(Qt::PlainText);
247 labelStateSetAndBlockInherited->setWordWrap(
true);
249 horizontalLayout_stateSetAndBlockInherited->addWidget(labelStateSetAndBlockInherited);
252 verticalLayout->addLayout(horizontalLayout_stateSetAndBlockInherited);
254 horizontalLayout_stateSetAndMixedInherited =
new QHBoxLayout();
255 horizontalLayout_stateSetAndMixedInherited->setObjectName(QString::fromUtf8(
"horizontalLayout_stateSetAndMixedInherited"));
256 iconStateSetAndMixedInherited =
new QLabel(MultiBlockInspectorWidget);
257 iconStateSetAndMixedInherited->setObjectName(QString::fromUtf8(
"iconStateSetAndMixedInherited"));
258 sizePolicy.setHeightForWidth(iconStateSetAndMixedInherited->sizePolicy().hasHeightForWidth());
259 iconStateSetAndMixedInherited->setSizePolicy(sizePolicy);
260 iconStateSetAndMixedInherited->setPixmap(QPixmap(QString::fromUtf8(
":/pqWidgets/Icons/pqStateSetAndMixedInherited.svg")));
262 horizontalLayout_stateSetAndMixedInherited->addWidget(iconStateSetAndMixedInherited);
264 labelStateSetAndMixedInherited =
new QLabel(MultiBlockInspectorWidget);
265 labelStateSetAndMixedInherited->setObjectName(QString::fromUtf8(
"labelStateSetAndMixedInherited"));
266 labelStateSetAndMixedInherited->setTextFormat(Qt::PlainText);
267 labelStateSetAndMixedInherited->setWordWrap(
true);
269 horizontalLayout_stateSetAndMixedInherited->addWidget(labelStateSetAndMixedInherited);
272 verticalLayout->addLayout(horizontalLayout_stateSetAndMixedInherited);
274 verticalLayout->setStretch(0, 1);
277 QObject::connect(showHints, SIGNAL(toggled(
bool)), labelHeader, SLOT(setVisible(
bool)));
278 QObject::connect(showHints, SIGNAL(toggled(
bool)), iconStateDisabled, SLOT(setVisible(
bool)));
279 QObject::connect(showHints, SIGNAL(toggled(
bool)), labelStateDisabled, SLOT(setVisible(
bool)));
280 QObject::connect(showHints, SIGNAL(toggled(
bool)), iconStateRepresentationInherited, SLOT(setVisible(
bool)));
281 QObject::connect(showHints, SIGNAL(toggled(
bool)), labelStateRepresentationInherited, SLOT(setVisible(
bool)));
282 QObject::connect(showHints, SIGNAL(toggled(
bool)), iconStateBlockInherited, SLOT(setVisible(
bool)));
283 QObject::connect(showHints, SIGNAL(toggled(
bool)), labelStateBlockInherited, SLOT(setVisible(
bool)));
284 QObject::connect(showHints, SIGNAL(toggled(
bool)), iconStateMixedInherited, SLOT(setVisible(
bool)));
285 QObject::connect(showHints, SIGNAL(toggled(
bool)), labelStateMixedInherited, SLOT(setVisible(
bool)));
286 QObject::connect(showHints, SIGNAL(toggled(
bool)), iconStateSet, SLOT(setVisible(
bool)));
287 QObject::connect(showHints, SIGNAL(toggled(
bool)), labelStateSet, SLOT(setVisible(
bool)));
288 QObject::connect(showHints, SIGNAL(toggled(
bool)), iconStateSetAndRepresentationInherited, SLOT(setVisible(
bool)));
289 QObject::connect(showHints, SIGNAL(toggled(
bool)), labelStateSetAndRepresentationInherited, SLOT(setVisible(
bool)));
290 QObject::connect(showHints, SIGNAL(toggled(
bool)), iconStateSetAndBlockInherited, SLOT(setVisible(
bool)));
291 QObject::connect(showHints, SIGNAL(toggled(
bool)), labelStateSetAndBlockInherited, SLOT(setVisible(
bool)));
292 QObject::connect(showHints, SIGNAL(toggled(
bool)), iconStateSetAndMixedInherited, SLOT(setVisible(
bool)));
293 QObject::connect(showHints, SIGNAL(toggled(
bool)), labelStateSetAndMixedInherited, SLOT(setVisible(
bool)));
295 QMetaObject::connectSlotsByName(MultiBlockInspectorWidget);
300 MultiBlockInspectorWidget->setWindowTitle(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"MultiBlock Inspector",
nullptr));
301 extractBlocks->setText(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"Extract Blocks",
nullptr));
302 #if QT_CONFIG(tooltip) 303 showHints->setToolTip(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"Show/Hide legend",
nullptr));
304 #endif // QT_CONFIG(tooltip) 305 showHints->setText(QString());
306 labelHeader->setText(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"State Legend:",
nullptr));
307 labelStateDisabled->setText(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"At least one property is disabled because no blocks are selected.",
nullptr));
308 labelStateRepresentationInherited->setText(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"At least one property is inherited from the representation.",
nullptr));
309 labelStateBlockInherited->setText(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"At least one property is inherited from block(s).",
nullptr));
310 labelStateMixedInherited->setText(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"At least one property is inherited from block(s) and the representation.",
nullptr));
311 labelStateSet->setText(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"At least one property is set in block(s).",
nullptr));
312 labelStateSetAndRepresentationInherited->setText(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"At least one property is set in block(s) and inherited from the representation.",
nullptr));
313 labelStateSetAndBlockInherited->setText(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"At least one property is set in block(s) and inherited from block(s).",
nullptr));
314 labelStateSetAndMixedInherited->setText(QCoreApplication::translate(
"MultiBlockInspectorWidget",
"At least one property is set in block(s) and inherited from block(s) and the representation.",
nullptr));
325 #endif // UI_PQMULTIBLOCKINSPECTORWIDGET_H