9#ifndef UI_CUSTOMPROFILEDIALOG_H
10#define UI_CUSTOMPROFILEDIALOG_H
12#include <QtCore/QVariant>
13#include <QtWidgets/QAbstractButton>
14#include <QtWidgets/QApplication>
15#include <QtWidgets/QComboBox>
16#include <QtWidgets/QDialog>
17#include <QtWidgets/QDialogButtonBox>
18#include <QtWidgets/QDoubleSpinBox>
19#include <QtWidgets/QGridLayout>
20#include <QtWidgets/QHBoxLayout>
21#include <QtWidgets/QLabel>
22#include <QtWidgets/QLineEdit>
23#include <QtWidgets/QSpacerItem>
24#include <QtWidgets/QSpinBox>
25#include <QtWidgets/QVBoxLayout>
26#include <QtWidgets/QWidget>
30class Ui_CustomProfileDialog
33 QVBoxLayout *verticalLayout;
35 QGridLayout *gridLayout_2;
37 QHBoxLayout *horizontalLayout_2;
38 QComboBox *colorspaceCombo;
39 QSpacerItem *horizontalSpacer;
42 QHBoxLayout *horizontalLayout_8;
43 QSpinBox *aspectNumSpinner;
45 QSpinBox *aspectDenSpinner;
46 QComboBox *aspectRatioComboBox;
47 QSpacerItem *horizontalSpacer_8;
49 QHBoxLayout *horizontalLayout_9;
50 QComboBox *scanModeCombo;
51 QSpacerItem *horizontalSpacer_9;
53 QHBoxLayout *horizontalLayout_7;
54 QSpinBox *widthSpinner;
56 QSpinBox *heightSpinner;
57 QComboBox *resolutionComboBox;
58 QSpacerItem *horizontalSpacer_7;
60 QHBoxLayout *horizontalLayout_16;
61 QDoubleSpinBox *fpsSpinner;
62 QComboBox *fpsComboBox;
63 QSpacerItem *horizontalSpacer_16;
65 QSpacerItem *verticalSpacer_2;
67 QDialogButtonBox *buttonBox;
69 void setupUi(QDialog *CustomProfileDialog)
71 if (CustomProfileDialog->objectName().isEmpty())
72 CustomProfileDialog->setObjectName(
"CustomProfileDialog");
73 CustomProfileDialog->resize(496, 322);
74 CustomProfileDialog->setModal(
true);
75 verticalLayout =
new QVBoxLayout(CustomProfileDialog);
76 verticalLayout->setObjectName(
"verticalLayout");
77 widget =
new QWidget(CustomProfileDialog);
78 widget->setObjectName(
"widget");
79 gridLayout_2 =
new QGridLayout(widget);
80 gridLayout_2->setObjectName(
"gridLayout_2");
81 gridLayout_2->setVerticalSpacing(3);
82 label_2 =
new QLabel(widget);
83 label_2->setObjectName(
"label_2");
84 label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
86 gridLayout_2->addWidget(label_2, 7, 0, 1, 1);
88 horizontalLayout_2 =
new QHBoxLayout();
89 horizontalLayout_2->setObjectName(
"horizontalLayout_2");
90 colorspaceCombo =
new QComboBox(widget);
91 colorspaceCombo->addItem(QString::fromUtf8(
"ITU-R BT.601"));
92 colorspaceCombo->addItem(QString::fromUtf8(
"ITU-R BT.709"));
93 colorspaceCombo->addItem(QString());
94 colorspaceCombo->setObjectName(
"colorspaceCombo");
96 horizontalLayout_2->addWidget(colorspaceCombo);
98 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
100 horizontalLayout_2->addItem(horizontalSpacer);
103 gridLayout_2->addLayout(horizontalLayout_2, 7, 1, 1, 2);
105 label_22 =
new QLabel(widget);
106 label_22->setObjectName(
"label_22");
107 label_22->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
109 gridLayout_2->addWidget(label_22, 2, 0, 1, 1);
111 nameEdit =
new QLineEdit(widget);
112 nameEdit->setObjectName(
"nameEdit");
114 gridLayout_2->addWidget(nameEdit, 0, 1, 1, 2);
116 horizontalLayout_8 =
new QHBoxLayout();
117 horizontalLayout_8->setObjectName(
"horizontalLayout_8");
118 aspectNumSpinner =
new QSpinBox(widget);
119 aspectNumSpinner->setObjectName(
"aspectNumSpinner");
120 aspectNumSpinner->setMinimum(1);
121 aspectNumSpinner->setMaximum(8192);
122 aspectNumSpinner->setValue(16);
124 horizontalLayout_8->addWidget(aspectNumSpinner);
126 label_16 =
new QLabel(widget);
127 label_16->setObjectName(
"label_16");
129 horizontalLayout_8->addWidget(label_16);
131 aspectDenSpinner =
new QSpinBox(widget);
132 aspectDenSpinner->setObjectName(
"aspectDenSpinner");
133 aspectDenSpinner->setMinimum(1);
134 aspectDenSpinner->setMaximum(8192);
135 aspectDenSpinner->setValue(9);
137 horizontalLayout_8->addWidget(aspectDenSpinner);
139 aspectRatioComboBox =
new QComboBox(widget);
140 aspectRatioComboBox->addItem(QString::fromUtf8(
"16:9 (wide)"));
141 aspectRatioComboBox->addItem(QString::fromUtf8(
"4:3 (SD)"));
142 aspectRatioComboBox->addItem(QString::fromUtf8(
"9:16 (vertical)"));
143 aspectRatioComboBox->addItem(QString::fromUtf8(
"1:1 (square)"));
144 aspectRatioComboBox->addItem(QString::fromUtf8(
"1.90:1 (DCI)"));
145 aspectRatioComboBox->setObjectName(
"aspectRatioComboBox");
146 aspectRatioComboBox->setMaximumSize(QSize(20, 16777215));
148 horizontalLayout_8->addWidget(aspectRatioComboBox);
150 horizontalSpacer_8 =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
152 horizontalLayout_8->addItem(horizontalSpacer_8);
155 gridLayout_2->addLayout(horizontalLayout_8, 3, 1, 1, 2);
157 label =
new QLabel(widget);
158 label->setObjectName(
"label");
159 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
161 gridLayout_2->addWidget(label, 0, 0, 1, 1);
163 horizontalLayout_9 =
new QHBoxLayout();
164 horizontalLayout_9->setObjectName(
"horizontalLayout_9");
165 scanModeCombo =
new QComboBox(widget);
166 scanModeCombo->addItem(QString());
167 scanModeCombo->addItem(QString());
168 scanModeCombo->setObjectName(
"scanModeCombo");
170 horizontalLayout_9->addWidget(scanModeCombo);
172 horizontalSpacer_9 =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
174 horizontalLayout_9->addItem(horizontalSpacer_9);
177 gridLayout_2->addLayout(horizontalLayout_9, 6, 1, 1, 2);
179 label_13 =
new QLabel(widget);
180 label_13->setObjectName(
"label_13");
181 label_13->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
183 gridLayout_2->addWidget(label_13, 3, 0, 1, 1);
185 horizontalLayout_7 =
new QHBoxLayout();
186 horizontalLayout_7->setObjectName(
"horizontalLayout_7");
187 widthSpinner =
new QSpinBox(widget);
188 widthSpinner->setObjectName(
"widthSpinner");
189 widthSpinner->setMinimum(16);
190 widthSpinner->setMaximum(8192);
191 widthSpinner->setSingleStep(2);
192 widthSpinner->setValue(1280);
194 horizontalLayout_7->addWidget(widthSpinner);
196 label_11 =
new QLabel(widget);
197 label_11->setObjectName(
"label_11");
199 horizontalLayout_7->addWidget(label_11);
201 heightSpinner =
new QSpinBox(widget);
202 heightSpinner->setObjectName(
"heightSpinner");
203 heightSpinner->setMinimum(1);
204 heightSpinner->setMaximum(8192);
205 heightSpinner->setSingleStep(2);
206 heightSpinner->setValue(720);
208 horizontalLayout_7->addWidget(heightSpinner);
210 resolutionComboBox =
new QComboBox(widget);
211 resolutionComboBox->addItem(QString::fromUtf8(
"1280 x 720 (HD)"));
212 resolutionComboBox->addItem(QString::fromUtf8(
"1920 x 1080 (FHD)"));
213 resolutionComboBox->addItem(QString::fromUtf8(
"2048 x 1080 (DCI 2K)"));
214 resolutionComboBox->addItem(QString::fromUtf8(
"2560 x 1440 (QHD 2K)"));
215 resolutionComboBox->addItem(QString::fromUtf8(
"2704 x 1520 (2.7K)"));
216 resolutionComboBox->addItem(QString::fromUtf8(
"3840 x 2160 (UHD 4K)"));
217 resolutionComboBox->addItem(QString::fromUtf8(
"4096 x 2160 (DCI 4K)"));
218 resolutionComboBox->addItem(QString::fromUtf8(
"5120 x 2880 (5K)"));
219 resolutionComboBox->setObjectName(
"resolutionComboBox");
220 resolutionComboBox->setMaximumSize(QSize(20, 16777215));
222 horizontalLayout_7->addWidget(resolutionComboBox);
224 horizontalSpacer_7 =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
226 horizontalLayout_7->addItem(horizontalSpacer_7);
229 gridLayout_2->addLayout(horizontalLayout_7, 2, 1, 1, 2);
231 label_10 =
new QLabel(widget);
232 label_10->setObjectName(
"label_10");
233 label_10->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
235 gridLayout_2->addWidget(label_10, 5, 0, 1, 1);
237 horizontalLayout_16 =
new QHBoxLayout();
238 horizontalLayout_16->setObjectName(
"horizontalLayout_16");
239 fpsSpinner =
new QDoubleSpinBox(widget);
240 fpsSpinner->setObjectName(
"fpsSpinner");
241 fpsSpinner->setDecimals(6);
242 fpsSpinner->setMinimum(1.000000000000000);
243 fpsSpinner->setMaximum(1000.000000000000000);
244 fpsSpinner->setValue(25.000000000000000);
246 horizontalLayout_16->addWidget(fpsSpinner);
248 fpsComboBox =
new QComboBox(widget);
249 fpsComboBox->addItem(QString::fromUtf8(
"23.976024"));
250 fpsComboBox->addItem(QString::fromUtf8(
"24"));
251 fpsComboBox->addItem(QString::fromUtf8(
"25"));
252 fpsComboBox->addItem(QString::fromUtf8(
"29.970030"));
253 fpsComboBox->addItem(QString::fromUtf8(
"30"));
254 fpsComboBox->addItem(QString::fromUtf8(
"48"));
255 fpsComboBox->addItem(QString::fromUtf8(
"50"));
256 fpsComboBox->addItem(QString::fromUtf8(
"59.940060"));
257 fpsComboBox->addItem(QString::fromUtf8(
"60"));
258 fpsComboBox->setObjectName(
"fpsComboBox");
259 fpsComboBox->setMaximumSize(QSize(20, 16777215));
261 horizontalLayout_16->addWidget(fpsComboBox);
263 horizontalSpacer_16 =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
265 horizontalLayout_16->addItem(horizontalSpacer_16);
268 gridLayout_2->addLayout(horizontalLayout_16, 5, 1, 1, 2);
270 label_14 =
new QLabel(widget);
271 label_14->setObjectName(
"label_14");
272 label_14->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
274 gridLayout_2->addWidget(label_14, 6, 0, 1, 1);
276 verticalSpacer_2 =
new QSpacerItem(20, 40, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding);
278 gridLayout_2->addItem(verticalSpacer_2, 10, 0, 1, 1);
280 label_3 =
new QLabel(widget);
281 label_3->setObjectName(
"label_3");
282 QSizePolicy sizePolicy(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::MinimumExpanding);
283 sizePolicy.setHorizontalStretch(0);
284 sizePolicy.setVerticalStretch(0);
285 sizePolicy.setHeightForWidth(label_3->sizePolicy().hasHeightForWidth());
286 label_3->setSizePolicy(sizePolicy);
287 label_3->setScaledContents(
true);
288 label_3->setWordWrap(
true);
289 label_3->setTextInteractionFlags(Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
291 gridLayout_2->addWidget(label_3, 1, 0, 1, 3);
294 verticalLayout->addWidget(widget);
296 buttonBox =
new QDialogButtonBox(CustomProfileDialog);
297 buttonBox->setObjectName(
"buttonBox");
298 buttonBox->setOrientation(Qt::Horizontal);
299 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
301 verticalLayout->addWidget(buttonBox);
303#if QT_CONFIG(shortcut)
304 label_2->setBuddy(colorspaceCombo);
305 label_22->setBuddy(widthSpinner);
306 label->setBuddy(nameEdit);
307 label_13->setBuddy(aspectNumSpinner);
308 label_10->setBuddy(fpsSpinner);
309 label_14->setBuddy(scanModeCombo);
311 QWidget::setTabOrder(nameEdit, widthSpinner);
312 QWidget::setTabOrder(widthSpinner, heightSpinner);
313 QWidget::setTabOrder(heightSpinner, aspectNumSpinner);
314 QWidget::setTabOrder(aspectNumSpinner, aspectDenSpinner);
315 QWidget::setTabOrder(aspectDenSpinner, fpsSpinner);
316 QWidget::setTabOrder(fpsSpinner, scanModeCombo);
317 QWidget::setTabOrder(scanModeCombo, colorspaceCombo);
318 QWidget::setTabOrder(colorspaceCombo, buttonBox);
320 retranslateUi(CustomProfileDialog);
321 QObject::connect(buttonBox, &QDialogButtonBox::accepted, CustomProfileDialog, qOverload<>(&QDialog::accept));
322 QObject::connect(buttonBox, &QDialogButtonBox::rejected, CustomProfileDialog, qOverload<>(&QDialog::reject));
324 colorspaceCombo->setCurrentIndex(1);
325 scanModeCombo->setCurrentIndex(1);
328 QMetaObject::connectSlotsByName(CustomProfileDialog);
331 void retranslateUi(QDialog *CustomProfileDialog)
333 CustomProfileDialog->setWindowTitle(QCoreApplication::translate(
"CustomProfileDialog",
"Add Custom Video Mode",
nullptr));
334 label_2->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Colorspace",
nullptr));
335 colorspaceCombo->setItemText(2, QCoreApplication::translate(
"CustomProfileDialog",
"ITU-R BT.2020",
nullptr));
337 label_22->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Resolution",
nullptr));
338 label_16->setText(QCoreApplication::translate(
"CustomProfileDialog",
":",
nullptr));
340 label->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Name",
nullptr));
341 scanModeCombo->setItemText(0, QCoreApplication::translate(
"CustomProfileDialog",
"Interlaced",
nullptr));
342 scanModeCombo->setItemText(1, QCoreApplication::translate(
"CustomProfileDialog",
"Progressive",
nullptr));
344 label_13->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Aspect ratio",
nullptr));
345 label_11->setText(QCoreApplication::translate(
"CustomProfileDialog",
"x",
nullptr));
347 label_10->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Frames/sec",
nullptr));
349 label_14->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Scan mode",
nullptr));
350 label_3->setText(QCoreApplication::translate(
"CustomProfileDialog",
"<small>(Leave Name blank to skip saving a preset and use a temporary or project-specific Video Mode.)</small>",
nullptr));
356 class CustomProfileDialog:
public Ui_CustomProfileDialog {};