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->setObjectName(
"colorspaceCombo");
95 horizontalLayout_2->addWidget(colorspaceCombo);
97 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
99 horizontalLayout_2->addItem(horizontalSpacer);
102 gridLayout_2->addLayout(horizontalLayout_2, 7, 1, 1, 2);
104 label_22 =
new QLabel(widget);
105 label_22->setObjectName(
"label_22");
106 label_22->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
108 gridLayout_2->addWidget(label_22, 2, 0, 1, 1);
110 nameEdit =
new QLineEdit(widget);
111 nameEdit->setObjectName(
"nameEdit");
113 gridLayout_2->addWidget(nameEdit, 0, 1, 1, 2);
115 horizontalLayout_8 =
new QHBoxLayout();
116 horizontalLayout_8->setObjectName(
"horizontalLayout_8");
117 aspectNumSpinner =
new QSpinBox(widget);
118 aspectNumSpinner->setObjectName(
"aspectNumSpinner");
119 aspectNumSpinner->setMinimum(1);
120 aspectNumSpinner->setMaximum(8192);
121 aspectNumSpinner->setValue(16);
123 horizontalLayout_8->addWidget(aspectNumSpinner);
125 label_16 =
new QLabel(widget);
126 label_16->setObjectName(
"label_16");
128 horizontalLayout_8->addWidget(label_16);
130 aspectDenSpinner =
new QSpinBox(widget);
131 aspectDenSpinner->setObjectName(
"aspectDenSpinner");
132 aspectDenSpinner->setMinimum(1);
133 aspectDenSpinner->setMaximum(8192);
134 aspectDenSpinner->setValue(9);
136 horizontalLayout_8->addWidget(aspectDenSpinner);
138 aspectRatioComboBox =
new QComboBox(widget);
139 aspectRatioComboBox->addItem(QString::fromUtf8(
"16:9 (wide)"));
140 aspectRatioComboBox->addItem(QString::fromUtf8(
"4:3 (SD)"));
141 aspectRatioComboBox->addItem(QString::fromUtf8(
"9:16 (vertical)"));
142 aspectRatioComboBox->addItem(QString::fromUtf8(
"1:1 (square)"));
143 aspectRatioComboBox->addItem(QString::fromUtf8(
"1.90:1 (DCI)"));
144 aspectRatioComboBox->setObjectName(
"aspectRatioComboBox");
145 aspectRatioComboBox->setMaximumSize(QSize(20, 16777215));
147 horizontalLayout_8->addWidget(aspectRatioComboBox);
149 horizontalSpacer_8 =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
151 horizontalLayout_8->addItem(horizontalSpacer_8);
154 gridLayout_2->addLayout(horizontalLayout_8, 3, 1, 1, 2);
156 label =
new QLabel(widget);
157 label->setObjectName(
"label");
158 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
160 gridLayout_2->addWidget(label, 0, 0, 1, 1);
162 horizontalLayout_9 =
new QHBoxLayout();
163 horizontalLayout_9->setObjectName(
"horizontalLayout_9");
164 scanModeCombo =
new QComboBox(widget);
165 scanModeCombo->addItem(QString());
166 scanModeCombo->addItem(QString());
167 scanModeCombo->setObjectName(
"scanModeCombo");
169 horizontalLayout_9->addWidget(scanModeCombo);
171 horizontalSpacer_9 =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
173 horizontalLayout_9->addItem(horizontalSpacer_9);
176 gridLayout_2->addLayout(horizontalLayout_9, 6, 1, 1, 2);
178 label_13 =
new QLabel(widget);
179 label_13->setObjectName(
"label_13");
180 label_13->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
182 gridLayout_2->addWidget(label_13, 3, 0, 1, 1);
184 horizontalLayout_7 =
new QHBoxLayout();
185 horizontalLayout_7->setObjectName(
"horizontalLayout_7");
186 widthSpinner =
new QSpinBox(widget);
187 widthSpinner->setObjectName(
"widthSpinner");
188 widthSpinner->setMinimum(16);
189 widthSpinner->setMaximum(8192);
190 widthSpinner->setSingleStep(2);
191 widthSpinner->setValue(1280);
193 horizontalLayout_7->addWidget(widthSpinner);
195 label_11 =
new QLabel(widget);
196 label_11->setObjectName(
"label_11");
198 horizontalLayout_7->addWidget(label_11);
200 heightSpinner =
new QSpinBox(widget);
201 heightSpinner->setObjectName(
"heightSpinner");
202 heightSpinner->setMinimum(1);
203 heightSpinner->setMaximum(8192);
204 heightSpinner->setSingleStep(2);
205 heightSpinner->setValue(720);
207 horizontalLayout_7->addWidget(heightSpinner);
209 resolutionComboBox =
new QComboBox(widget);
210 resolutionComboBox->addItem(QString::fromUtf8(
"1280 x 720 (HD)"));
211 resolutionComboBox->addItem(QString::fromUtf8(
"1920 x 1080 (FHD)"));
212 resolutionComboBox->addItem(QString::fromUtf8(
"2048 x 1080 (DCI 2K)"));
213 resolutionComboBox->addItem(QString::fromUtf8(
"2560 x 1440 (QHD 2K)"));
214 resolutionComboBox->addItem(QString::fromUtf8(
"2704 x 1520 (2.7K)"));
215 resolutionComboBox->addItem(QString::fromUtf8(
"3840 x 2160 (UHD 4K)"));
216 resolutionComboBox->addItem(QString::fromUtf8(
"4096 x 2160 (DCI 4K)"));
217 resolutionComboBox->addItem(QString::fromUtf8(
"5120 x 2880 (5K)"));
218 resolutionComboBox->setObjectName(
"resolutionComboBox");
219 resolutionComboBox->setMaximumSize(QSize(20, 16777215));
221 horizontalLayout_7->addWidget(resolutionComboBox);
223 horizontalSpacer_7 =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
225 horizontalLayout_7->addItem(horizontalSpacer_7);
228 gridLayout_2->addLayout(horizontalLayout_7, 2, 1, 1, 2);
230 label_10 =
new QLabel(widget);
231 label_10->setObjectName(
"label_10");
232 label_10->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
234 gridLayout_2->addWidget(label_10, 5, 0, 1, 1);
236 horizontalLayout_16 =
new QHBoxLayout();
237 horizontalLayout_16->setObjectName(
"horizontalLayout_16");
238 fpsSpinner =
new QDoubleSpinBox(widget);
239 fpsSpinner->setObjectName(
"fpsSpinner");
240 fpsSpinner->setDecimals(6);
241 fpsSpinner->setMinimum(1.000000000000000);
242 fpsSpinner->setMaximum(1000.000000000000000);
243 fpsSpinner->setValue(25.000000000000000);
245 horizontalLayout_16->addWidget(fpsSpinner);
247 fpsComboBox =
new QComboBox(widget);
248 fpsComboBox->addItem(QString::fromUtf8(
"23.976024"));
249 fpsComboBox->addItem(QString::fromUtf8(
"24"));
250 fpsComboBox->addItem(QString::fromUtf8(
"25"));
251 fpsComboBox->addItem(QString::fromUtf8(
"29.970030"));
252 fpsComboBox->addItem(QString::fromUtf8(
"30"));
253 fpsComboBox->addItem(QString::fromUtf8(
"48"));
254 fpsComboBox->addItem(QString::fromUtf8(
"50"));
255 fpsComboBox->addItem(QString::fromUtf8(
"59.940060"));
256 fpsComboBox->addItem(QString::fromUtf8(
"60"));
257 fpsComboBox->setObjectName(
"fpsComboBox");
258 fpsComboBox->setMaximumSize(QSize(20, 16777215));
260 horizontalLayout_16->addWidget(fpsComboBox);
262 horizontalSpacer_16 =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
264 horizontalLayout_16->addItem(horizontalSpacer_16);
267 gridLayout_2->addLayout(horizontalLayout_16, 5, 1, 1, 2);
269 label_14 =
new QLabel(widget);
270 label_14->setObjectName(
"label_14");
271 label_14->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
273 gridLayout_2->addWidget(label_14, 6, 0, 1, 1);
275 verticalSpacer_2 =
new QSpacerItem(20, 40, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding);
277 gridLayout_2->addItem(verticalSpacer_2, 10, 0, 1, 1);
279 label_3 =
new QLabel(widget);
280 label_3->setObjectName(
"label_3");
281 QSizePolicy sizePolicy(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::MinimumExpanding);
282 sizePolicy.setHorizontalStretch(0);
283 sizePolicy.setVerticalStretch(0);
284 sizePolicy.setHeightForWidth(label_3->sizePolicy().hasHeightForWidth());
285 label_3->setSizePolicy(sizePolicy);
286 label_3->setScaledContents(
true);
287 label_3->setWordWrap(
true);
288 label_3->setTextInteractionFlags(Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
290 gridLayout_2->addWidget(label_3, 1, 0, 1, 3);
293 verticalLayout->addWidget(widget);
295 buttonBox =
new QDialogButtonBox(CustomProfileDialog);
296 buttonBox->setObjectName(
"buttonBox");
297 buttonBox->setOrientation(Qt::Horizontal);
298 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
300 verticalLayout->addWidget(buttonBox);
302#if QT_CONFIG(shortcut)
303 label_2->setBuddy(colorspaceCombo);
304 label_22->setBuddy(widthSpinner);
305 label->setBuddy(nameEdit);
306 label_13->setBuddy(aspectNumSpinner);
307 label_10->setBuddy(fpsSpinner);
308 label_14->setBuddy(scanModeCombo);
310 QWidget::setTabOrder(nameEdit, widthSpinner);
311 QWidget::setTabOrder(widthSpinner, heightSpinner);
312 QWidget::setTabOrder(heightSpinner, aspectNumSpinner);
313 QWidget::setTabOrder(aspectNumSpinner, aspectDenSpinner);
314 QWidget::setTabOrder(aspectDenSpinner, fpsSpinner);
315 QWidget::setTabOrder(fpsSpinner, scanModeCombo);
316 QWidget::setTabOrder(scanModeCombo, colorspaceCombo);
317 QWidget::setTabOrder(colorspaceCombo, buttonBox);
319 retranslateUi(CustomProfileDialog);
320 QObject::connect(buttonBox, &QDialogButtonBox::accepted, CustomProfileDialog, qOverload<>(&QDialog::accept));
321 QObject::connect(buttonBox, &QDialogButtonBox::rejected, CustomProfileDialog, qOverload<>(&QDialog::reject));
323 colorspaceCombo->setCurrentIndex(1);
324 scanModeCombo->setCurrentIndex(1);
327 QMetaObject::connectSlotsByName(CustomProfileDialog);
330 void retranslateUi(QDialog *CustomProfileDialog)
332 CustomProfileDialog->setWindowTitle(QCoreApplication::translate(
"CustomProfileDialog",
"Add Custom Video Mode",
nullptr));
333 label_2->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Colorspace",
nullptr));
335 label_22->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Resolution",
nullptr));
336 label_16->setText(QCoreApplication::translate(
"CustomProfileDialog",
":",
nullptr));
338 label->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Name",
nullptr));
339 scanModeCombo->setItemText(0, QCoreApplication::translate(
"CustomProfileDialog",
"Interlaced",
nullptr));
340 scanModeCombo->setItemText(1, QCoreApplication::translate(
"CustomProfileDialog",
"Progressive",
nullptr));
342 label_13->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Aspect ratio",
nullptr));
343 label_11->setText(QCoreApplication::translate(
"CustomProfileDialog",
"x",
nullptr));
345 label_10->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Frames/sec",
nullptr));
347 label_14->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Scan mode",
nullptr));
348 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));
354 class CustomProfileDialog:
public Ui_CustomProfileDialog {};