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 QSpacerItem *horizontalSpacer_8;
47 QHBoxLayout *horizontalLayout_9;
48 QComboBox *scanModeCombo;
49 QSpacerItem *horizontalSpacer_9;
51 QHBoxLayout *horizontalLayout_7;
52 QSpinBox *widthSpinner;
54 QSpinBox *heightSpinner;
55 QSpacerItem *horizontalSpacer_7;
57 QHBoxLayout *horizontalLayout_16;
58 QDoubleSpinBox *fpsSpinner;
59 QComboBox *fpsComboBox;
60 QSpacerItem *horizontalSpacer_16;
62 QSpacerItem *verticalSpacer_2;
64 QDialogButtonBox *buttonBox;
66 void setupUi(QDialog *CustomProfileDialog)
68 if (CustomProfileDialog->objectName().isEmpty())
69 CustomProfileDialog->setObjectName(QString::fromUtf8(
"CustomProfileDialog"));
70 CustomProfileDialog->resize(271, 248);
71 CustomProfileDialog->setModal(
true);
72 verticalLayout =
new QVBoxLayout(CustomProfileDialog);
73 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
74 widget =
new QWidget(CustomProfileDialog);
75 widget->setObjectName(QString::fromUtf8(
"widget"));
76 gridLayout_2 =
new QGridLayout(widget);
77 gridLayout_2->setObjectName(QString::fromUtf8(
"gridLayout_2"));
78 gridLayout_2->setVerticalSpacing(3);
79 label_2 =
new QLabel(widget);
80 label_2->setObjectName(QString::fromUtf8(
"label_2"));
81 label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
83 gridLayout_2->addWidget(label_2, 7, 0, 1, 1);
85 horizontalLayout_2 =
new QHBoxLayout();
86 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
87 colorspaceCombo =
new QComboBox(widget);
88 colorspaceCombo->addItem(QString::fromUtf8(
"ITU-R BT.601"));
89 colorspaceCombo->addItem(QString::fromUtf8(
"ITU-R BT.709"));
90 colorspaceCombo->setObjectName(QString::fromUtf8(
"colorspaceCombo"));
92 horizontalLayout_2->addWidget(colorspaceCombo);
94 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
96 horizontalLayout_2->addItem(horizontalSpacer);
99 gridLayout_2->addLayout(horizontalLayout_2, 7, 1, 1, 2);
101 label_22 =
new QLabel(widget);
102 label_22->setObjectName(QString::fromUtf8(
"label_22"));
103 label_22->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
105 gridLayout_2->addWidget(label_22, 2, 0, 1, 1);
107 nameEdit =
new QLineEdit(widget);
108 nameEdit->setObjectName(QString::fromUtf8(
"nameEdit"));
110 gridLayout_2->addWidget(nameEdit, 0, 1, 1, 2);
112 horizontalLayout_8 =
new QHBoxLayout();
113 horizontalLayout_8->setSpacing(2);
114 horizontalLayout_8->setObjectName(QString::fromUtf8(
"horizontalLayout_8"));
115 aspectNumSpinner =
new QSpinBox(widget);
116 aspectNumSpinner->setObjectName(QString::fromUtf8(
"aspectNumSpinner"));
117 aspectNumSpinner->setMinimum(1);
118 aspectNumSpinner->setMaximum(8192);
119 aspectNumSpinner->setValue(16);
121 horizontalLayout_8->addWidget(aspectNumSpinner);
123 label_16 =
new QLabel(widget);
124 label_16->setObjectName(QString::fromUtf8(
"label_16"));
126 horizontalLayout_8->addWidget(label_16);
128 aspectDenSpinner =
new QSpinBox(widget);
129 aspectDenSpinner->setObjectName(QString::fromUtf8(
"aspectDenSpinner"));
130 aspectDenSpinner->setMinimum(1);
131 aspectDenSpinner->setMaximum(8192);
132 aspectDenSpinner->setValue(9);
134 horizontalLayout_8->addWidget(aspectDenSpinner);
136 horizontalSpacer_8 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
138 horizontalLayout_8->addItem(horizontalSpacer_8);
141 gridLayout_2->addLayout(horizontalLayout_8, 3, 1, 1, 2);
143 label =
new QLabel(widget);
144 label->setObjectName(QString::fromUtf8(
"label"));
145 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
147 gridLayout_2->addWidget(label, 0, 0, 1, 1);
149 horizontalLayout_9 =
new QHBoxLayout();
150 horizontalLayout_9->setSpacing(2);
151 horizontalLayout_9->setObjectName(QString::fromUtf8(
"horizontalLayout_9"));
152 scanModeCombo =
new QComboBox(widget);
153 scanModeCombo->addItem(QString());
154 scanModeCombo->addItem(QString());
155 scanModeCombo->setObjectName(QString::fromUtf8(
"scanModeCombo"));
157 horizontalLayout_9->addWidget(scanModeCombo);
159 horizontalSpacer_9 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
161 horizontalLayout_9->addItem(horizontalSpacer_9);
164 gridLayout_2->addLayout(horizontalLayout_9, 6, 1, 1, 2);
166 label_13 =
new QLabel(widget);
167 label_13->setObjectName(QString::fromUtf8(
"label_13"));
168 label_13->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
170 gridLayout_2->addWidget(label_13, 3, 0, 1, 1);
172 horizontalLayout_7 =
new QHBoxLayout();
173 horizontalLayout_7->setSpacing(2);
174 horizontalLayout_7->setObjectName(QString::fromUtf8(
"horizontalLayout_7"));
175 widthSpinner =
new QSpinBox(widget);
176 widthSpinner->setObjectName(QString::fromUtf8(
"widthSpinner"));
177 widthSpinner->setMinimum(16);
178 widthSpinner->setMaximum(8192);
179 widthSpinner->setSingleStep(2);
180 widthSpinner->setValue(1280);
182 horizontalLayout_7->addWidget(widthSpinner);
184 label_11 =
new QLabel(widget);
185 label_11->setObjectName(QString::fromUtf8(
"label_11"));
187 horizontalLayout_7->addWidget(label_11);
189 heightSpinner =
new QSpinBox(widget);
190 heightSpinner->setObjectName(QString::fromUtf8(
"heightSpinner"));
191 heightSpinner->setMinimum(1);
192 heightSpinner->setMaximum(8192);
193 heightSpinner->setSingleStep(2);
194 heightSpinner->setValue(720);
196 horizontalLayout_7->addWidget(heightSpinner);
198 horizontalSpacer_7 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
200 horizontalLayout_7->addItem(horizontalSpacer_7);
203 gridLayout_2->addLayout(horizontalLayout_7, 2, 1, 1, 2);
205 label_10 =
new QLabel(widget);
206 label_10->setObjectName(QString::fromUtf8(
"label_10"));
207 label_10->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
209 gridLayout_2->addWidget(label_10, 5, 0, 1, 1);
211 horizontalLayout_16 =
new QHBoxLayout();
212 horizontalLayout_16->setObjectName(QString::fromUtf8(
"horizontalLayout_16"));
213 fpsSpinner =
new QDoubleSpinBox(widget);
214 fpsSpinner->setObjectName(QString::fromUtf8(
"fpsSpinner"));
215 fpsSpinner->setDecimals(6);
216 fpsSpinner->setMinimum(1.000000000000000);
217 fpsSpinner->setMaximum(1000.000000000000000);
218 fpsSpinner->setValue(25.000000000000000);
220 horizontalLayout_16->addWidget(fpsSpinner);
222 fpsComboBox =
new QComboBox(widget);
223 fpsComboBox->addItem(QString::fromUtf8(
""));
224 fpsComboBox->addItem(QString::fromUtf8(
"23.976024"));
225 fpsComboBox->addItem(QString::fromUtf8(
"24"));
226 fpsComboBox->addItem(QString::fromUtf8(
"25"));
227 fpsComboBox->addItem(QString::fromUtf8(
"29.970030"));
228 fpsComboBox->addItem(QString::fromUtf8(
"30"));
229 fpsComboBox->addItem(QString::fromUtf8(
"48"));
230 fpsComboBox->addItem(QString::fromUtf8(
"50"));
231 fpsComboBox->addItem(QString::fromUtf8(
"59.940060"));
232 fpsComboBox->addItem(QString::fromUtf8(
"60"));
233 fpsComboBox->setObjectName(QString::fromUtf8(
"fpsComboBox"));
234 fpsComboBox->setMaximumSize(QSize(20, 16777215));
236 horizontalLayout_16->addWidget(fpsComboBox);
238 horizontalSpacer_16 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
240 horizontalLayout_16->addItem(horizontalSpacer_16);
243 gridLayout_2->addLayout(horizontalLayout_16, 5, 1, 1, 2);
245 label_14 =
new QLabel(widget);
246 label_14->setObjectName(QString::fromUtf8(
"label_14"));
247 label_14->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
249 gridLayout_2->addWidget(label_14, 6, 0, 1, 1);
251 verticalSpacer_2 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
253 gridLayout_2->addItem(verticalSpacer_2, 10, 0, 1, 1);
255 label_3 =
new QLabel(widget);
256 label_3->setObjectName(QString::fromUtf8(
"label_3"));
257 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
258 sizePolicy.setHorizontalStretch(0);
259 sizePolicy.setVerticalStretch(0);
260 sizePolicy.setHeightForWidth(label_3->sizePolicy().hasHeightForWidth());
261 label_3->setSizePolicy(sizePolicy);
262 label_3->setScaledContents(
true);
263 label_3->setWordWrap(
true);
264 label_3->setTextInteractionFlags(Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
266 gridLayout_2->addWidget(label_3, 1, 0, 1, 3);
269 verticalLayout->addWidget(widget);
271 buttonBox =
new QDialogButtonBox(CustomProfileDialog);
272 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
273 buttonBox->setOrientation(Qt::Horizontal);
274 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
276 verticalLayout->addWidget(buttonBox);
278 #if QT_CONFIG(shortcut)
279 label_2->setBuddy(colorspaceCombo);
280 label_22->setBuddy(widthSpinner);
281 label->setBuddy(nameEdit);
282 label_13->setBuddy(aspectNumSpinner);
283 label_10->setBuddy(fpsSpinner);
284 label_14->setBuddy(scanModeCombo);
285 #endif // QT_CONFIG(shortcut)
286 QWidget::setTabOrder(nameEdit, widthSpinner);
287 QWidget::setTabOrder(widthSpinner, heightSpinner);
288 QWidget::setTabOrder(heightSpinner, aspectNumSpinner);
289 QWidget::setTabOrder(aspectNumSpinner, aspectDenSpinner);
290 QWidget::setTabOrder(aspectDenSpinner, fpsSpinner);
291 QWidget::setTabOrder(fpsSpinner, scanModeCombo);
292 QWidget::setTabOrder(scanModeCombo, colorspaceCombo);
293 QWidget::setTabOrder(colorspaceCombo, buttonBox);
295 retranslateUi(CustomProfileDialog);
296 QObject::connect(buttonBox, SIGNAL(accepted()), CustomProfileDialog, SLOT(accept()));
297 QObject::connect(buttonBox, SIGNAL(rejected()), CustomProfileDialog, SLOT(reject()));
299 colorspaceCombo->setCurrentIndex(1);
300 scanModeCombo->setCurrentIndex(1);
303 QMetaObject::connectSlotsByName(CustomProfileDialog);
306 void retranslateUi(QDialog *CustomProfileDialog)
308 CustomProfileDialog->setWindowTitle(QCoreApplication::translate(
"CustomProfileDialog",
"Add Custom Video Mode",
nullptr));
309 label_2->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Colorspace",
nullptr));
311 label_22->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Resolution",
nullptr));
312 label_16->setText(QCoreApplication::translate(
"CustomProfileDialog",
":",
nullptr));
313 label->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Name",
nullptr));
314 scanModeCombo->setItemText(0, QCoreApplication::translate(
"CustomProfileDialog",
"Interlaced",
nullptr));
315 scanModeCombo->setItemText(1, QCoreApplication::translate(
"CustomProfileDialog",
"Progressive",
nullptr));
317 label_13->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Aspect ratio",
nullptr));
318 label_11->setText(QCoreApplication::translate(
"CustomProfileDialog",
"x",
nullptr));
319 label_10->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Frames/sec",
nullptr));
321 label_14->setText(QCoreApplication::translate(
"CustomProfileDialog",
"Scan mode",
nullptr));
322 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));
328 class CustomProfileDialog:
public Ui_CustomProfileDialog {};
333 #endif // UI_CUSTOMPROFILEDIALOG_H