9 #ifndef UI_TRANSCODEDIALOG_H
10 #define UI_TRANSCODEDIALOG_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QApplication>
14 #include <QtWidgets/QCheckBox>
15 #include <QtWidgets/QComboBox>
16 #include <QtWidgets/QDialog>
17 #include <QtWidgets/QDialogButtonBox>
18 #include <QtWidgets/QFrame>
19 #include <QtWidgets/QGridLayout>
20 #include <QtWidgets/QHBoxLayout>
21 #include <QtWidgets/QLabel>
22 #include <QtWidgets/QSlider>
23 #include <QtWidgets/QVBoxLayout>
24 #include <QtWidgets/QWidget>
25 #include "widgets/frameratewidget.h"
29 class Ui_TranscodeDialog
32 QVBoxLayout *verticalLayout;
34 QHBoxLayout *horizontalLayout;
38 QSlider *horizontalSlider;
39 QHBoxLayout *horizontalLayout_2;
45 QWidget *advancedWidget;
46 QVBoxLayout *verticalLayout_2;
47 QGridLayout *gridLayout;
48 FrameRateWidget *fpsWidget;
49 QCheckBox *convert709CheckBox;
50 QCheckBox *subclipCheckBox;
51 QCheckBox *advancedCheckBox;
52 QComboBox *frcComboBox;
54 QCheckBox *fpsCheckBox;
55 QLabel *sampleRateLabel;
57 QCheckBox *deinterlaceCheckBox;
59 QComboBox *sampleRateComboBox;
60 QDialogButtonBox *buttonBox;
62 void setupUi(QDialog *TranscodeDialog)
64 if (TranscodeDialog->objectName().isEmpty())
65 TranscodeDialog->setObjectName(QString::fromUtf8(
"TranscodeDialog"));
66 TranscodeDialog->setWindowModality(Qt::WindowModal);
67 TranscodeDialog->resize(418, 427);
68 verticalLayout =
new QVBoxLayout(TranscodeDialog);
69 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
70 verticalLayout->setSizeConstraint(QLayout::SetFixedSize);
71 messageLabel =
new QLabel(TranscodeDialog);
72 messageLabel->setObjectName(QString::fromUtf8(
"messageLabel"));
73 messageLabel->setText(QString::fromUtf8(
"messageLabel"));
74 messageLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
75 messageLabel->setWordWrap(
true);
77 verticalLayout->addWidget(messageLabel);
79 horizontalLayout =
new QHBoxLayout();
80 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
81 label =
new QLabel(TranscodeDialog);
82 label->setObjectName(QString::fromUtf8(
"label"));
83 label->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
85 horizontalLayout->addWidget(label);
87 label_2 =
new QLabel(TranscodeDialog);
88 label_2->setObjectName(QString::fromUtf8(
"label_2"));
89 label_2->setAlignment(Qt::AlignCenter);
91 horizontalLayout->addWidget(label_2);
93 label_3 =
new QLabel(TranscodeDialog);
94 label_3->setObjectName(QString::fromUtf8(
"label_3"));
95 label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
97 horizontalLayout->addWidget(label_3);
100 verticalLayout->addLayout(horizontalLayout);
102 horizontalSlider =
new QSlider(TranscodeDialog);
103 horizontalSlider->setObjectName(QString::fromUtf8(
"horizontalSlider"));
104 horizontalSlider->setMaximum(2);
105 horizontalSlider->setPageStep(1);
106 horizontalSlider->setValue(0);
107 horizontalSlider->setSliderPosition(0);
108 horizontalSlider->setOrientation(Qt::Horizontal);
109 horizontalSlider->setTickPosition(QSlider::TicksBothSides);
111 verticalLayout->addWidget(horizontalSlider);
113 horizontalLayout_2 =
new QHBoxLayout();
114 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
115 label_4 =
new QLabel(TranscodeDialog);
116 label_4->setObjectName(QString::fromUtf8(
"label_4"));
117 label_4->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
119 horizontalLayout_2->addWidget(label_4);
121 label_5 =
new QLabel(TranscodeDialog);
122 label_5->setObjectName(QString::fromUtf8(
"label_5"));
123 label_5->setAlignment(Qt::AlignCenter);
125 horizontalLayout_2->addWidget(label_5);
127 label_6 =
new QLabel(TranscodeDialog);
128 label_6->setObjectName(QString::fromUtf8(
"label_6"));
129 label_6->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
131 horizontalLayout_2->addWidget(label_6);
134 verticalLayout->addLayout(horizontalLayout_2);
136 formatLabel =
new QLabel(TranscodeDialog);
137 formatLabel->setObjectName(QString::fromUtf8(
"formatLabel"));
138 formatLabel->setText(QString::fromUtf8(
"formatLabel"));
139 formatLabel->setAlignment(Qt::AlignCenter);
141 verticalLayout->addWidget(formatLabel);
143 checkBox =
new QCheckBox(TranscodeDialog);
144 checkBox->setObjectName(QString::fromUtf8(
"checkBox"));
146 verticalLayout->addWidget(checkBox);
148 advancedWidget =
new QWidget(TranscodeDialog);
149 advancedWidget->setObjectName(QString::fromUtf8(
"advancedWidget"));
150 verticalLayout_2 =
new QVBoxLayout(advancedWidget);
151 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
152 gridLayout =
new QGridLayout();
153 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
154 fpsWidget =
new FrameRateWidget(advancedWidget);
155 fpsWidget->setObjectName(QString::fromUtf8(
"fpsWidget"));
157 gridLayout->addWidget(fpsWidget, 4, 1, 1, 1);
159 convert709CheckBox =
new QCheckBox(advancedWidget);
160 convert709CheckBox->setObjectName(QString::fromUtf8(
"convert709CheckBox"));
162 gridLayout->addWidget(convert709CheckBox, 6, 1, 1, 1);
164 subclipCheckBox =
new QCheckBox(advancedWidget);
165 subclipCheckBox->setObjectName(QString::fromUtf8(
"subclipCheckBox"));
167 gridLayout->addWidget(subclipCheckBox, 1, 1, 1, 1);
169 advancedCheckBox =
new QCheckBox(advancedWidget);
170 advancedCheckBox->setObjectName(QString::fromUtf8(
"advancedCheckBox"));
172 gridLayout->addWidget(advancedCheckBox, 9, 1, 1, 1);
174 frcComboBox =
new QComboBox(advancedWidget);
175 frcComboBox->setObjectName(QString::fromUtf8(
"frcComboBox"));
177 gridLayout->addWidget(frcComboBox, 5, 1, 1, 1);
179 line =
new QFrame(advancedWidget);
180 line->setObjectName(QString::fromUtf8(
"line"));
181 line->setFrameShape(QFrame::HLine);
182 line->setFrameShadow(QFrame::Sunken);
184 gridLayout->addWidget(line, 0, 0, 1, 2);
186 fpsCheckBox =
new QCheckBox(advancedWidget);
187 fpsCheckBox->setObjectName(QString::fromUtf8(
"fpsCheckBox"));
189 gridLayout->addWidget(fpsCheckBox, 3, 1, 1, 1);
191 sampleRateLabel =
new QLabel(advancedWidget);
192 sampleRateLabel->setObjectName(QString::fromUtf8(
"sampleRateLabel"));
193 sampleRateLabel->setEnabled(
true);
194 sampleRateLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
196 gridLayout->addWidget(sampleRateLabel, 7, 0, 1, 1);
198 fpsLabel =
new QLabel(advancedWidget);
199 fpsLabel->setObjectName(QString::fromUtf8(
"fpsLabel"));
200 fpsLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
202 gridLayout->addWidget(fpsLabel, 4, 0, 1, 1);
204 deinterlaceCheckBox =
new QCheckBox(advancedWidget);
205 deinterlaceCheckBox->setObjectName(QString::fromUtf8(
"deinterlaceCheckBox"));
207 gridLayout->addWidget(deinterlaceCheckBox, 2, 1, 1, 1);
209 frcLabel =
new QLabel(advancedWidget);
210 frcLabel->setObjectName(QString::fromUtf8(
"frcLabel"));
211 frcLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
213 gridLayout->addWidget(frcLabel, 5, 0, 1, 1);
215 sampleRateComboBox =
new QComboBox(advancedWidget);
216 sampleRateComboBox->addItem(QString());
217 sampleRateComboBox->addItem(QString());
218 sampleRateComboBox->addItem(QString());
219 sampleRateComboBox->setObjectName(QString::fromUtf8(
"sampleRateComboBox"));
220 sampleRateComboBox->setEnabled(
true);
222 gridLayout->addWidget(sampleRateComboBox, 7, 1, 1, 1);
224 gridLayout->setColumnStretch(1, 1);
226 verticalLayout_2->addLayout(gridLayout);
229 verticalLayout->addWidget(advancedWidget);
231 buttonBox =
new QDialogButtonBox(TranscodeDialog);
232 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
233 buttonBox->setOrientation(Qt::Horizontal);
234 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
236 verticalLayout->addWidget(buttonBox);
239 retranslateUi(TranscodeDialog);
240 QObject::connect(buttonBox, SIGNAL(accepted()), TranscodeDialog, SLOT(accept()));
241 QObject::connect(buttonBox, SIGNAL(rejected()), TranscodeDialog, SLOT(reject()));
243 QMetaObject::connectSlotsByName(TranscodeDialog);
246 void retranslateUi(QDialog *TranscodeDialog)
248 label->setText(QCoreApplication::translate(
"TranscodeDialog",
"good",
nullptr));
249 label_2->setText(QCoreApplication::translate(
"TranscodeDialog",
"better",
nullptr));
250 label_3->setText(QCoreApplication::translate(
"TranscodeDialog",
"best",
nullptr));
251 label_4->setText(QCoreApplication::translate(
"TranscodeDialog",
"medium",
nullptr));
252 label_5->setText(QCoreApplication::translate(
"TranscodeDialog",
"large",
nullptr));
253 label_6->setText(QCoreApplication::translate(
"TranscodeDialog",
"biggest",
nullptr));
254 checkBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Do not show this anymore.",
"Convert to edit-friendly format dialog"));
255 #if QT_CONFIG(tooltip)
256 fpsWidget->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"Override the frame rate to a specific value.",
nullptr));
258 #if QT_CONFIG(tooltip)
259 convert709CheckBox->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"This is useful when the source video is HDR (High Dynamic Range), which requires tone-mapping to the old, standard range.",
nullptr));
261 convert709CheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Convert to BT.709 colorspace",
nullptr));
262 #if QT_CONFIG(tooltip)
263 subclipCheckBox->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"This option converts only the trimmed portion of the source\n"
264 "clip plus a little instead of the entire clip. When this option is\n"
265 "used not all of the matching source clips are replaced, instead\n"
266 "only the currently selected one.",
nullptr));
268 subclipCheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Use sub-clip",
nullptr));
269 #if QT_CONFIG(tooltip)
270 advancedCheckBox->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"Enable this to keep the Advanced section open for the next time this dialog appears.",
nullptr));
272 advancedCheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Keep Advanced open",
nullptr));
273 #if QT_CONFIG(tooltip)
274 frcComboBox->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"Frame rate conversion method\n"
276 "Duplicate: Duplicate frames.\n"
277 "Blend: Blend frames.\n"
278 "Motion Compensation: Interpolate new frames using motion compensation. This method is very slow and may result in artifacts.",
nullptr));
280 #if QT_CONFIG(tooltip)
281 fpsCheckBox->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"Change the frame rate from its source.",
nullptr));
283 fpsCheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Override frame rate",
nullptr));
284 sampleRateLabel->setText(QCoreApplication::translate(
"TranscodeDialog",
"Sample rate",
nullptr));
285 fpsLabel->setText(QCoreApplication::translate(
"TranscodeDialog",
"Frames/sec",
nullptr));
286 #if QT_CONFIG(tooltip)
287 deinterlaceCheckBox->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"If the source is interlaced, each interlaced field will be converted to a progressive frame resulting in double frame rate.",
nullptr));
289 deinterlaceCheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Deinterlace",
nullptr));
290 frcLabel->setText(QCoreApplication::translate(
"TranscodeDialog",
"Frame rate conversion",
nullptr));
291 sampleRateComboBox->setItemText(0, QCoreApplication::translate(
"TranscodeDialog",
"Same as original",
nullptr));
292 sampleRateComboBox->setItemText(1, QCoreApplication::translate(
"TranscodeDialog",
"44100",
nullptr));
293 sampleRateComboBox->setItemText(2, QCoreApplication::translate(
"TranscodeDialog",
"48000",
nullptr));
295 sampleRateComboBox->setCurrentText(QCoreApplication::translate(
"TranscodeDialog",
"Same as original",
nullptr));
296 (void)TranscodeDialog;
302 class TranscodeDialog:
public Ui_TranscodeDialog {};