9 #ifndef UI_PQLOCKVIEWSIZECUSTOMDIALOG_H 10 #define UI_PQLOCKVIEWSIZECUSTOMDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QDialog> 15 #include <QtWidgets/QDialogButtonBox> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QLabel> 18 #include <QtWidgets/QLineEdit> 19 #include <QtWidgets/QSpacerItem> 20 #include <QtWidgets/QVBoxLayout> 38 if (pqLockViewSizeCustomDialog->objectName().isEmpty())
39 pqLockViewSizeCustomDialog->setObjectName(QString::fromUtf8(
"pqLockViewSizeCustomDialog"));
40 pqLockViewSizeCustomDialog->resize(287, 126);
41 verticalLayout =
new QVBoxLayout(pqLockViewSizeCustomDialog);
42 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
43 label =
new QLabel(pqLockViewSizeCustomDialog);
44 label->setObjectName(QString::fromUtf8(
"label"));
45 label->setAlignment(Qt::AlignCenter);
47 verticalLayout->addWidget(label);
49 horizontalLayout =
new QHBoxLayout();
50 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
51 Width =
new QLineEdit(pqLockViewSizeCustomDialog);
52 Width->setObjectName(QString::fromUtf8(
"Width"));
53 Width->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
55 horizontalLayout->addWidget(Width);
57 label_2 =
new QLabel(pqLockViewSizeCustomDialog);
58 label_2->setObjectName(QString::fromUtf8(
"label_2"));
60 horizontalLayout->addWidget(label_2);
62 Height =
new QLineEdit(pqLockViewSizeCustomDialog);
63 Height->setObjectName(QString::fromUtf8(
"Height"));
64 Height->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
66 horizontalLayout->addWidget(Height);
69 verticalLayout->addLayout(horizontalLayout);
71 verticalSpacer =
new QSpacerItem(20, 18, QSizePolicy::Minimum, QSizePolicy::Expanding);
73 verticalLayout->addItem(verticalSpacer);
75 ButtonBox =
new QDialogButtonBox(pqLockViewSizeCustomDialog);
76 ButtonBox->setObjectName(QString::fromUtf8(
"ButtonBox"));
77 ButtonBox->setOrientation(Qt::Horizontal);
78 ButtonBox->setStandardButtons(QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
80 verticalLayout->addWidget(ButtonBox);
84 QObject::connect(ButtonBox, SIGNAL(accepted()), pqLockViewSizeCustomDialog, SLOT(accept()));
85 QObject::connect(ButtonBox, SIGNAL(rejected()), pqLockViewSizeCustomDialog, SLOT(reject()));
87 QMetaObject::connectSlotsByName(pqLockViewSizeCustomDialog);
92 pqLockViewSizeCustomDialog->setWindowTitle(QCoreApplication::translate(
"pqLockViewSizeCustomDialog",
"Lock View to Custom Size",
nullptr));
93 label->setText(QCoreApplication::translate(
"pqLockViewSizeCustomDialog",
"Select Maximum Resolution for Each View",
nullptr));
94 label_2->setText(QCoreApplication::translate(
"pqLockViewSizeCustomDialog",
"x",
nullptr));
105 #endif // UI_PQLOCKVIEWSIZECUSTOMDIALOG_H
QVBoxLayout * verticalLayout
Dialog used to ask the user what resolution to lock the views to.
QSpacerItem * verticalSpacer
QHBoxLayout * horizontalLayout
void setupUi(QDialog *pqLockViewSizeCustomDialog)
void retranslateUi(QDialog *pqLockViewSizeCustomDialog)
QDialogButtonBox * ButtonBox