9 #ifndef UI_CUSTOMPROFILEDIALOG_H 10 #define UI_CUSTOMPROFILEDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QComboBox> 15 #include <QtWidgets/QDialog> 16 #include <QtWidgets/QDialogButtonBox> 17 #include <QtWidgets/QDoubleSpinBox> 18 #include <QtWidgets/QGridLayout> 19 #include <QtWidgets/QHBoxLayout> 20 #include <QtWidgets/QLabel> 21 #include <QtWidgets/QLineEdit> 22 #include <QtWidgets/QSpacerItem> 23 #include <QtWidgets/QSpinBox> 24 #include <QtWidgets/QVBoxLayout> 25 #include <QtWidgets/QWidget> 29 class Ui_CustomProfileDialog
32 QVBoxLayout *verticalLayout;
34 QGridLayout *gridLayout_2;
36 QHBoxLayout *horizontalLayout_2;
37 QComboBox *colorspaceCombo;
38 QSpacerItem *horizontalSpacer;
41 QHBoxLayout *horizontalLayout_8;
42 QSpinBox *aspectNumSpinner;
44 QSpinBox *aspectDenSpinner;
45 QComboBox *aspectRatioComboBox;
46 QSpacerItem *horizontalSpacer_8;
48 QHBoxLayout *horizontalLayout_9;
49 QComboBox *scanModeCombo;
50 QSpacerItem *horizontalSpacer_9;
52 QHBoxLayout *horizontalLayout_7;
53 QSpinBox *widthSpinner;
55 QSpinBox *heightSpinner;
56 QComboBox *resolutionComboBox;
57 QSpacerItem *horizontalSpacer_7;
59 QHBoxLayout *horizontalLayout_16;
60 QDoubleSpinBox *fpsSpinner;
61 QComboBox *fpsComboBox;
62 QSpacerItem *horizontalSpacer_16;
64 QSpacerItem *verticalSpacer_2;
66 QDialogButtonBox *buttonBox;
68 void setupUi(QDialog *CustomProfileDialog)
70 if (CustomProfileDialog->objectName().isEmpty())
71 CustomProfileDialog->setObjectName(QString::fromUtf8(
"CustomProfileDialog"));
72 CustomProfileDialog->resize(496, 322);
73 CustomProfileDialog->setModal(
true);
74 verticalLayout =
new QVBoxLayout(CustomProfileDialog);
75 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
76 widget =
new QWidget(CustomProfileDialog);
77 widget->setObjectName(QString::fromUtf8(
"widget"));
78 gridLayout_2 =
new QGridLayout(widget);
79 gridLayout_2->setObjectName(QString::fromUtf8(
"gridLayout_2"));
80 gridLayout_2->setVerticalSpacing(3);
81 label_2 =
new QLabel(widget);
82 label_2->setObjectName(QString::fromUtf8(
"label_2"));
83 label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
85 gridLayout_2->addWidget(label_2, 7, 0, 1, 1);
87 horizontalLayout_2 =
new QHBoxLayout();
88 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
89 colorspaceCombo =
new QComboBox(widget);
90 colorspaceCombo->addItem(QString::fromUtf8(
"ITU-R BT.601"));
91 colorspaceCombo->addItem(QString::fromUtf8(
"ITU-R BT.709"));
92 colorspaceCombo->setObjectName(QString::fromUtf8(
"colorspaceCombo"));
94 horizontalLayout_2->addWidget(colorspaceCombo);
96 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
98 horizontalLayout_2->addItem(horizontalSpacer);
101 gridLayout_2->addLayout(horizontalLayout_2, 7, 1, 1, 2);
103 label_22 =
new QLabel(widget);
104 label_22->setObjectName(QString::fromUtf8(
"label_22"));
105 label_22->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
107 gridLayout_2->addWidget(label_22, 2, 0, 1, 1);
109 nameEdit =
new QLineEdit(widget);
110 nameEdit->setObjectName(QString::fromUtf8(
"nameEdit"));
112 gridLayout_2->addWidget(nameEdit, 0, 1, 1, 2);
114 horizontalLayout_8 =
new QHBoxLayout();
115 horizontalLayout_8->setSpacing(2);
116 horizontalLayout_8->setObjectName(QString::fromUtf8(
"horizontalLayout_8"));
117 aspectNumSpinner =
new QSpinBox(widget);
118 aspectNumSpinner->setObjectName(QString::fromUtf8(
"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(QString::fromUtf8(
"label_16"));
128 horizontalLayout_8->addWidget(label_16);
130 aspectDenSpinner =
new QSpinBox(widget);
131 aspectDenSpinner->setObjectName(QString::fromUtf8(
"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(QString::fromUtf8(
"aspectRatioComboBox"));
145 aspectRatioComboBox->setMaximumSize(QSize(20, 16777215));
147 horizontalLayout_8->addWidget(aspectRatioComboBox);
149 horizontalSpacer_8 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::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(QString::fromUtf8(
"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->setSpacing(2);
164 horizontalLayout_9->setObjectName(QString::fromUtf8(
"horizontalLayout_9"));
165 scanModeCombo =
new QComboBox(widget);
166 scanModeCombo->addItem(QString());
167 scanModeCombo->addItem(QString());
168 scanModeCombo->setObjectName(QString::fromUtf8(
"scanModeCombo"));
170 horizontalLayout_9->addWidget(scanModeCombo);
172 horizontalSpacer_9 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::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(QString::fromUtf8(
"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->setSpacing(2);
187 horizontalLayout_7->setObjectName(QString::fromUtf8(
"horizontalLayout_7"));
188 widthSpinner =
new QSpinBox(widget);
189 widthSpinner->setObjectName(QString::fromUtf8(
"widthSpinner"));
190 widthSpinner->setMinimum(16);
191 widthSpinner->setMaximum(8192);
192 widthSpinner->setSingleStep(2);
193 widthSpinner->setValue(1280);
195 horizontalLayout_7->addWidget(widthSpinner);
197 label_11 =
new QLabel(widget);
198 label_11->setObjectName(QString::fromUtf8(
"label_11"));
200 horizontalLayout_7->addWidget(label_11);
202 heightSpinner =
new QSpinBox(widget);
203 heightSpinner->setObjectName(QString::fromUtf8(
"heightSpinner"));
204 heightSpinner->setMinimum(1);
205 heightSpinner->setMaximum(8192);
206 heightSpinner->setSingleStep(2);
207 heightSpinner->setValue(720);
209 horizontalLayout_7->addWidget(heightSpinner);
211 resolutionComboBox =
new QComboBox(widget);
212 resolutionComboBox->addItem(QString::fromUtf8(
"1280 x 720 (HD)"));
213 resolutionComboBox->addItem(QString::fromUtf8(
"1920 x 1080 (FHD)"));
214 resolutionComboBox->addItem(QString::fromUtf8(
"2048 x 1080 (DCI 2K)"));
215 resolutionComboBox->addItem(QString::fromUtf8(
"2560 x 1440 (QHD 2K)"));
216 resolutionComboBox->addItem(QString::fromUtf8(
"2704 x 1520 (2.7K)"));
217 resolutionComboBox->addItem(QString::fromUtf8(
"3840 x 2160 (UHD 4K)"));
218 resolutionComboBox->addItem(QString::fromUtf8(
"4096 x 2160 (DCI 4K)"));
219 resolutionComboBox->addItem(QString::fromUtf8(
"5120 x 2880 (5K)"));
220 resolutionComboBox->setObjectName(QString::fromUtf8(
"resolutionComboBox"));
221 resolutionComboBox->setMaximumSize(QSize(20, 16777215));
223 horizontalLayout_7->addWidget(resolutionComboBox);
225 horizontalSpacer_7 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
227 horizontalLayout_7->addItem(horizontalSpacer_7);
230 gridLayout_2->addLayout(horizontalLayout_7, 2, 1, 1, 2);
232 label_10 =
new QLabel(widget);
233 label_10->setObjectName(QString::fromUtf8(
"label_10"));
234 label_10->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
236 gridLayout_2->addWidget(label_10, 5, 0, 1, 1);
238 horizontalLayout_16 =
new QHBoxLayout();
239 horizontalLayout_16->setObjectName(QString::fromUtf8(
"horizontalLayout_16"));
240 fpsSpinner =
new QDoubleSpinBox(widget);
241 fpsSpinner->setObjectName(QString::fromUtf8(
"fpsSpinner"));
242 fpsSpinner->setDecimals(6);
243 fpsSpinner->setMinimum(1.000000000000000);
244 fpsSpinner->setMaximum(1000.000000000000000);
245 fpsSpinner->setValue(25.000000000000000);
247 horizontalLayout_16->addWidget(fpsSpinner);
249 fpsComboBox =
new QComboBox(widget);
250 fpsComboBox->addItem(QString::fromUtf8(
"23.976024"));
251 fpsComboBox->addItem(QString::fromUtf8(
"24"));
252 fpsComboBox->addItem(QString::fromUtf8(
"25"));
253 fpsComboBox->addItem(QString::fromUtf8(
"29.970030"));
254 fpsComboBox->addItem(QString::fromUtf8(
"30"));
255 fpsComboBox->addItem(QString::fromUtf8(
"48"));
256 fpsComboBox->addItem(QString::fromUtf8(
"50"));
257 fpsComboBox->addItem(QString::fromUtf8(
"59.940060"));
258 fpsComboBox->addItem(QString::fromUtf8(
"60"));
259 fpsComboBox->setObjectName(QString::fromUtf8(
"fpsComboBox"));
260 fpsComboBox->setMaximumSize(QSize(20, 16777215));
262 horizontalLayout_16->addWidget(fpsComboBox);
264 horizontalSpacer_16 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
266 horizontalLayout_16->addItem(horizontalSpacer_16);
269 gridLayout_2->addLayout(horizontalLayout_16, 5, 1, 1, 2);
271 label_14 =
new QLabel(widget);
272 label_14->setObjectName(QString::fromUtf8(
"label_14"));
273 label_14->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
275 gridLayout_2->addWidget(label_14, 6, 0, 1, 1);
277 verticalSpacer_2 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
279 gridLayout_2->addItem(verticalSpacer_2, 10, 0, 1, 1);
281 label_3 =
new QLabel(widget);
282 label_3->setObjectName(QString::fromUtf8(
"label_3"));
283 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
284 sizePolicy.setHorizontalStretch(0);
285 sizePolicy.setVerticalStretch(0);
286 sizePolicy.setHeightForWidth(label_3->sizePolicy().hasHeightForWidth());
287 label_3->setSizePolicy(sizePolicy);
288 label_3->setScaledContents(
true);
289 label_3->setWordWrap(
true);
290 label_3->setTextInteractionFlags(Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
292 gridLayout_2->addWidget(label_3, 1, 0, 1, 3);
295 verticalLayout->addWidget(widget);
297 buttonBox =
new QDialogButtonBox(CustomProfileDialog);
298 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
299 buttonBox->setOrientation(Qt::Horizontal);
300 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
302 verticalLayout->addWidget(buttonBox);
304 #if QT_CONFIG(shortcut) 305 label_2->setBuddy(colorspaceCombo);
306 label_22->setBuddy(widthSpinner);
307 label->setBuddy(nameEdit);
308 label_13->setBuddy(aspectNumSpinner);
309 label_10->setBuddy(fpsSpinner);
310 label_14->setBuddy(scanModeCombo);
311 #endif // QT_CONFIG(shortcut) 312 QWidget::setTabOrder(nameEdit, widthSpinner);
313 QWidget::setTabOrder(widthSpinner, heightSpinner);
314 QWidget::setTabOrder(heightSpinner, aspectNumSpinner);
315 QWidget::setTabOrder(aspectNumSpinner, aspectDenSpinner);
316 QWidget::setTabOrder(aspectDenSpinner, fpsSpinner);
317 QWidget::setTabOrder(fpsSpinner, scanModeCombo);
318 QWidget::setTabOrder(scanModeCombo, colorspaceCombo);
319 QWidget::setTabOrder(colorspaceCombo, buttonBox);
321 retranslateUi(CustomProfileDialog);
322 QObject::connect(buttonBox, SIGNAL(accepted()), CustomProfileDialog, SLOT(accept()));
323 QObject::connect(buttonBox, SIGNAL(rejected()), CustomProfileDialog, SLOT(reject()));
325 colorspaceCombo->setCurrentIndex(1);
326 scanModeCombo->setCurrentIndex(1);
329 QMetaObject::connectSlotsByName(CustomProfileDialog);
332 void retranslateUi(QDialog *CustomProfileDialog)
334 CustomProfileDialog->setWindowTitle(QCoreApplication::translate(
"CustomProfileDialog",
"Add Custom Video Mode",
nullptr));
335 label_2->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Colorspace",
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 {};
361 #endif // UI_CUSTOMPROFILEDIALOG_H