9 #ifndef UI_PQPYTHONSHELL_H 10 #define UI_PQPYTHONSHELL_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QHBoxLayout> 15 #include <QtWidgets/QPushButton> 16 #include <QtWidgets/QSpacerItem> 17 #include <QtWidgets/QVBoxLayout> 18 #include <QtWidgets/QWidget> 36 if (PythonShell->objectName().isEmpty())
37 PythonShell->setObjectName(QString::fromUtf8(
"PythonShell"));
38 PythonShell->resize(296, 78);
39 verticalLayout =
new QVBoxLayout(PythonShell);
40 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
41 verticalLayout->setContentsMargins(0, 0, 0, 0);
43 consoleWidget->setObjectName(QString::fromUtf8(
"consoleWidget"));
44 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
45 sizePolicy.setHorizontalStretch(0);
46 sizePolicy.setVerticalStretch(0);
47 sizePolicy.setHeightForWidth(consoleWidget->sizePolicy().hasHeightForWidth());
48 consoleWidget->setSizePolicy(sizePolicy);
50 verticalLayout->addWidget(consoleWidget);
52 horizontalLayout =
new QHBoxLayout();
53 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
54 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::MinimumExpanding, QSizePolicy::Minimum);
56 horizontalLayout->addItem(horizontalSpacer_2);
58 runScriptButton =
new QPushButton(PythonShell);
59 runScriptButton->setObjectName(QString::fromUtf8(
"runScriptButton"));
61 horizontalLayout->addWidget(runScriptButton);
63 clearButton =
new QPushButton(PythonShell);
64 clearButton->setObjectName(QString::fromUtf8(
"clearButton"));
65 clearButton->setEnabled(
false);
67 horizontalLayout->addWidget(clearButton);
69 resetButton =
new QPushButton(PythonShell);
70 resetButton->setObjectName(QString::fromUtf8(
"resetButton"));
71 resetButton->setEnabled(
false);
73 horizontalLayout->addWidget(resetButton);
76 verticalLayout->addLayout(horizontalLayout);
78 verticalLayout->setStretch(0, 1);
82 QMetaObject::connectSlotsByName(PythonShell);
87 PythonShell->setWindowTitle(QCoreApplication::translate(
"PythonShell",
"Form",
nullptr));
88 runScriptButton->setText(QCoreApplication::translate(
"PythonShell",
"Run Script",
nullptr));
89 clearButton->setText(QCoreApplication::translate(
"PythonShell",
"Clear",
nullptr));
90 resetButton->setText(QCoreApplication::translate(
"PythonShell",
"Reset",
nullptr));
101 #endif // UI_PQPYTHONSHELL_H void setupUi(QWidget *PythonShell)
QPushButton * resetButton
void retranslateUi(QWidget *PythonShell)
pqConsoleWidget * consoleWidget
QSpacerItem * horizontalSpacer_2
QPushButton * clearButton
QHBoxLayout * horizontalLayout
QPushButton * runScriptButton
QVBoxLayout * verticalLayout