9 #ifndef UI_PQVIEWFRAME_H 10 #define UI_PQVIEWFRAME_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QFrame> 15 #include <QtWidgets/QHBoxLayout> 16 #include <QtWidgets/QLabel> 17 #include <QtWidgets/QSpacerItem> 18 #include <QtWidgets/QVBoxLayout> 19 #include <QtWidgets/QWidget> 37 if (pqViewFrame->objectName().isEmpty())
38 pqViewFrame->setObjectName(QString::fromUtf8(
"pqViewFrame"));
39 pqViewFrame->resize(400, 300);
40 pqViewFrame->setFocusPolicy(Qt::ClickFocus);
41 verticalLayout =
new QVBoxLayout(pqViewFrame);
42 verticalLayout->setSpacing(1);
43 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
44 verticalLayout->setContentsMargins(0, 0, 0, 0);
45 TitleBar =
new QWidget(pqViewFrame);
46 TitleBar->setObjectName(QString::fromUtf8(
"TitleBar"));
47 TitleBar->setContextMenuPolicy(Qt::CustomContextMenu);
48 TitleBar->setAcceptDrops(
true);
49 TitleBarLayout =
new QHBoxLayout(TitleBar);
50 TitleBarLayout->setSpacing(1);
51 TitleBarLayout->setObjectName(QString::fromUtf8(
"TitleBarLayout"));
52 TitleBarLayout->setContentsMargins(0, 0, 0, 0);
53 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
55 TitleBarLayout->addItem(horizontalSpacer);
57 TitleLabel =
new QLabel(TitleBar);
58 TitleLabel->setObjectName(QString::fromUtf8(
"TitleLabel"));
59 TitleLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
61 TitleBarLayout->addWidget(TitleLabel);
63 horizontalSpacer_2 =
new QSpacerItem(10, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
65 TitleBarLayout->addItem(horizontalSpacer_2);
68 verticalLayout->addWidget(TitleBar);
70 CentralWidgetFrame =
new QFrame(pqViewFrame);
71 CentralWidgetFrame->setObjectName(QString::fromUtf8(
"CentralWidgetFrame"));
72 CentralWidgetFrame->setFrameShape(QFrame::Box);
73 CentralWidgetFrame->setFrameShadow(QFrame::Plain);
74 CentralWidgetFrame->setLineWidth(2);
75 CentralWidgetFrameLayout =
new QVBoxLayout(CentralWidgetFrame);
76 CentralWidgetFrameLayout->setSpacing(0);
77 CentralWidgetFrameLayout->setObjectName(QString::fromUtf8(
"CentralWidgetFrameLayout"));
78 CentralWidgetFrameLayout->setContentsMargins(1, 1, 1, 1);
80 verticalLayout->addWidget(CentralWidgetFrame);
82 verticalLayout->setStretch(1, 1);
86 QMetaObject::connectSlotsByName(pqViewFrame);
91 pqViewFrame->setWindowTitle(QCoreApplication::translate(
"pqViewFrame",
"Form",
nullptr));
92 TitleLabel->setText(QString());
103 #endif // UI_PQVIEWFRAME_H void setupUi(QWidget *pqViewFrame)
pqViewFrame is used to represent a frame for any ParaView view shown in the pqMultiViewWidget.
QVBoxLayout * verticalLayout
QSpacerItem * horizontalSpacer
QFrame * CentralWidgetFrame
QSpacerItem * horizontalSpacer_2
void retranslateUi(QWidget *pqViewFrame)
QHBoxLayout * TitleBarLayout
QVBoxLayout * CentralWidgetFrameLayout