9#ifndef UI_TRANSCODEDIALOG_H
10#define UI_TRANSCODEDIALOG_H
12#include <QtCore/QVariant>
13#include <QtWidgets/QAbstractButton>
14#include <QtWidgets/QApplication>
15#include <QtWidgets/QCheckBox>
16#include <QtWidgets/QComboBox>
17#include <QtWidgets/QDialog>
18#include <QtWidgets/QDialogButtonBox>
19#include <QtWidgets/QFrame>
20#include <QtWidgets/QGridLayout>
21#include <QtWidgets/QHBoxLayout>
22#include <QtWidgets/QLabel>
23#include <QtWidgets/QSlider>
24#include <QtWidgets/QVBoxLayout>
25#include <QtWidgets/QWidget>
26#include "widgets/frameratewidget.h"
30class Ui_TranscodeDialog
33 QVBoxLayout *verticalLayout;
35 QHBoxLayout *horizontalLayout;
39 QSlider *horizontalSlider;
40 QHBoxLayout *horizontalLayout_2;
46 QWidget *advancedWidget;
47 QVBoxLayout *verticalLayout_2;
48 QGridLayout *gridLayout;
49 FrameRateWidget *fpsWidget;
50 QCheckBox *convert709CheckBox;
51 QCheckBox *subclipCheckBox;
52 QCheckBox *advancedCheckBox;
53 QComboBox *frcComboBox;
55 QCheckBox *fpsCheckBox;
56 QLabel *sampleRateLabel;
58 QCheckBox *deinterlaceCheckBox;
60 QComboBox *sampleRateComboBox;
61 QDialogButtonBox *buttonBox;
63 void setupUi(QDialog *TranscodeDialog)
65 if (TranscodeDialog->objectName().isEmpty())
66 TranscodeDialog->setObjectName(
"TranscodeDialog");
67 TranscodeDialog->setWindowModality(Qt::WindowModal);
68 TranscodeDialog->resize(418, 427);
69 verticalLayout =
new QVBoxLayout(TranscodeDialog);
70 verticalLayout->setObjectName(
"verticalLayout");
71 verticalLayout->setSizeConstraint(QLayout::SetFixedSize);
72 messageLabel =
new QLabel(TranscodeDialog);
73 messageLabel->setObjectName(
"messageLabel");
74 messageLabel->setText(QString::fromUtf8(
"messageLabel"));
75 messageLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
76 messageLabel->setWordWrap(
true);
78 verticalLayout->addWidget(messageLabel);
80 horizontalLayout =
new QHBoxLayout();
81 horizontalLayout->setObjectName(
"horizontalLayout");
82 label =
new QLabel(TranscodeDialog);
83 label->setObjectName(
"label");
84 label->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
86 horizontalLayout->addWidget(label);
88 label_2 =
new QLabel(TranscodeDialog);
89 label_2->setObjectName(
"label_2");
90 label_2->setAlignment(Qt::AlignCenter);
92 horizontalLayout->addWidget(label_2);
94 label_3 =
new QLabel(TranscodeDialog);
95 label_3->setObjectName(
"label_3");
96 label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
98 horizontalLayout->addWidget(label_3);
101 verticalLayout->addLayout(horizontalLayout);
103 horizontalSlider =
new QSlider(TranscodeDialog);
104 horizontalSlider->setObjectName(
"horizontalSlider");
105 horizontalSlider->setMaximum(2);
106 horizontalSlider->setPageStep(1);
107 horizontalSlider->setValue(0);
108 horizontalSlider->setSliderPosition(0);
109 horizontalSlider->setOrientation(Qt::Horizontal);
110 horizontalSlider->setTickPosition(QSlider::TicksBothSides);
112 verticalLayout->addWidget(horizontalSlider);
114 horizontalLayout_2 =
new QHBoxLayout();
115 horizontalLayout_2->setObjectName(
"horizontalLayout_2");
116 label_4 =
new QLabel(TranscodeDialog);
117 label_4->setObjectName(
"label_4");
118 label_4->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
120 horizontalLayout_2->addWidget(label_4);
122 label_5 =
new QLabel(TranscodeDialog);
123 label_5->setObjectName(
"label_5");
124 label_5->setAlignment(Qt::AlignCenter);
126 horizontalLayout_2->addWidget(label_5);
128 label_6 =
new QLabel(TranscodeDialog);
129 label_6->setObjectName(
"label_6");
130 label_6->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
132 horizontalLayout_2->addWidget(label_6);
135 verticalLayout->addLayout(horizontalLayout_2);
137 formatLabel =
new QLabel(TranscodeDialog);
138 formatLabel->setObjectName(
"formatLabel");
139 formatLabel->setText(QString::fromUtf8(
"formatLabel"));
140 formatLabel->setAlignment(Qt::AlignCenter);
142 verticalLayout->addWidget(formatLabel);
144 checkBox =
new QCheckBox(TranscodeDialog);
145 checkBox->setObjectName(
"checkBox");
147 verticalLayout->addWidget(checkBox);
149 advancedWidget =
new QWidget(TranscodeDialog);
150 advancedWidget->setObjectName(
"advancedWidget");
151 verticalLayout_2 =
new QVBoxLayout(advancedWidget);
152 verticalLayout_2->setObjectName(
"verticalLayout_2");
153 gridLayout =
new QGridLayout();
154 gridLayout->setObjectName(
"gridLayout");
155 fpsWidget =
new FrameRateWidget(advancedWidget);
156 fpsWidget->setObjectName(
"fpsWidget");
158 gridLayout->addWidget(fpsWidget, 4, 1, 1, 1);
160 convert709CheckBox =
new QCheckBox(advancedWidget);
161 convert709CheckBox->setObjectName(
"convert709CheckBox");
163 gridLayout->addWidget(convert709CheckBox, 6, 1, 1, 1);
165 subclipCheckBox =
new QCheckBox(advancedWidget);
166 subclipCheckBox->setObjectName(
"subclipCheckBox");
168 gridLayout->addWidget(subclipCheckBox, 1, 1, 1, 1);
170 advancedCheckBox =
new QCheckBox(advancedWidget);
171 advancedCheckBox->setObjectName(
"advancedCheckBox");
173 gridLayout->addWidget(advancedCheckBox, 9, 1, 1, 1);
175 frcComboBox =
new QComboBox(advancedWidget);
176 frcComboBox->setObjectName(
"frcComboBox");
178 gridLayout->addWidget(frcComboBox, 5, 1, 1, 1);
180 line =
new QFrame(advancedWidget);
181 line->setObjectName(
"line");
182 line->setFrameShape(QFrame::Shape::HLine);
183 line->setFrameShadow(QFrame::Shadow::Sunken);
185 gridLayout->addWidget(line, 0, 0, 1, 2);
187 fpsCheckBox =
new QCheckBox(advancedWidget);
188 fpsCheckBox->setObjectName(
"fpsCheckBox");
190 gridLayout->addWidget(fpsCheckBox, 3, 1, 1, 1);
192 sampleRateLabel =
new QLabel(advancedWidget);
193 sampleRateLabel->setObjectName(
"sampleRateLabel");
194 sampleRateLabel->setEnabled(
true);
195 sampleRateLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
197 gridLayout->addWidget(sampleRateLabel, 7, 0, 1, 1);
199 fpsLabel =
new QLabel(advancedWidget);
200 fpsLabel->setObjectName(
"fpsLabel");
201 fpsLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
203 gridLayout->addWidget(fpsLabel, 4, 0, 1, 1);
205 deinterlaceCheckBox =
new QCheckBox(advancedWidget);
206 deinterlaceCheckBox->setObjectName(
"deinterlaceCheckBox");
208 gridLayout->addWidget(deinterlaceCheckBox, 2, 1, 1, 1);
210 frcLabel =
new QLabel(advancedWidget);
211 frcLabel->setObjectName(
"frcLabel");
212 frcLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
214 gridLayout->addWidget(frcLabel, 5, 0, 1, 1);
216 sampleRateComboBox =
new QComboBox(advancedWidget);
217 sampleRateComboBox->addItem(QString());
218 sampleRateComboBox->addItem(QString());
219 sampleRateComboBox->addItem(QString());
220 sampleRateComboBox->setObjectName(
"sampleRateComboBox");
221 sampleRateComboBox->setEnabled(
true);
223 gridLayout->addWidget(sampleRateComboBox, 7, 1, 1, 1);
225 gridLayout->setColumnStretch(1, 1);
227 verticalLayout_2->addLayout(gridLayout);
230 verticalLayout->addWidget(advancedWidget);
232 buttonBox =
new QDialogButtonBox(TranscodeDialog);
233 buttonBox->setObjectName(
"buttonBox");
234 buttonBox->setOrientation(Qt::Horizontal);
235 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
237 verticalLayout->addWidget(buttonBox);
240 retranslateUi(TranscodeDialog);
241 QObject::connect(buttonBox, &QDialogButtonBox::accepted, TranscodeDialog, qOverload<>(&QDialog::accept));
242 QObject::connect(buttonBox, &QDialogButtonBox::rejected, TranscodeDialog, qOverload<>(&QDialog::reject));
244 QMetaObject::connectSlotsByName(TranscodeDialog);
247 void retranslateUi(QDialog *TranscodeDialog)
249 label->setText(QCoreApplication::translate(
"TranscodeDialog",
"good",
nullptr));
250 label_2->setText(QCoreApplication::translate(
"TranscodeDialog",
"better",
nullptr));
251 label_3->setText(QCoreApplication::translate(
"TranscodeDialog",
"best",
nullptr));
252 label_4->setText(QCoreApplication::translate(
"TranscodeDialog",
"medium",
nullptr));
253 label_5->setText(QCoreApplication::translate(
"TranscodeDialog",
"large",
nullptr));
254 label_6->setText(QCoreApplication::translate(
"TranscodeDialog",
"biggest",
nullptr));
255 checkBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Do not show this anymore.",
"Convert to edit-friendly format dialog"));
256#if QT_CONFIG(tooltip)
257 fpsWidget->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"Override the frame rate to a specific value.",
nullptr));
259#if QT_CONFIG(tooltip)
260 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));
262 convert709CheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Convert to BT.709 colorspace",
nullptr));
263#if QT_CONFIG(tooltip)
264 subclipCheckBox->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"This option converts only the trimmed portion of the source\n"
265"clip plus a little instead of the entire clip. When this option is\n"
266"used not all of the matching source clips are replaced, instead\n"
267"only the currently selected one.",
nullptr));
269 subclipCheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Use sub-clip",
nullptr));
270#if QT_CONFIG(tooltip)
271 advancedCheckBox->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"Enable this to keep the Advanced section open for the next time this dialog appears.",
nullptr));
273 advancedCheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Keep Advanced open",
nullptr));
274#if QT_CONFIG(tooltip)
275 frcComboBox->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"Frame rate conversion method\n"
277"Duplicate: Duplicate frames.\n"
278"Blend: Blend frames.\n"
279"Motion Compensation: Interpolate new frames using motion compensation. This method is very slow and may result in artifacts.",
nullptr));
281#if QT_CONFIG(tooltip)
282 fpsCheckBox->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"Change the frame rate from its source.",
nullptr));
284 fpsCheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Override frame rate",
nullptr));
285 sampleRateLabel->setText(QCoreApplication::translate(
"TranscodeDialog",
"Sample rate",
nullptr));
286 fpsLabel->setText(QCoreApplication::translate(
"TranscodeDialog",
"Frames/sec",
nullptr));
287#if QT_CONFIG(tooltip)
288 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));
290 deinterlaceCheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Deinterlace",
nullptr));
291 frcLabel->setText(QCoreApplication::translate(
"TranscodeDialog",
"Frame rate conversion",
nullptr));
292 sampleRateComboBox->setItemText(0, QCoreApplication::translate(
"TranscodeDialog",
"Same as original",
nullptr));
293 sampleRateComboBox->setItemText(1, QCoreApplication::translate(
"TranscodeDialog",
"44100",
nullptr));
294 sampleRateComboBox->setItemText(2, QCoreApplication::translate(
"TranscodeDialog",
"48000",
nullptr));
296 sampleRateComboBox->setCurrentText(QCoreApplication::translate(
"TranscodeDialog",
"Same as original",
nullptr));
297 (void)TranscodeDialog;
303 class TranscodeDialog:
public Ui_TranscodeDialog {};