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;
50 QCheckBox *fpsCheckBox;
51 QCheckBox *convert709CheckBox;
53 QComboBox *frcComboBox;
54 QCheckBox *subclipCheckBox;
56 QCheckBox *deinterlaceCheckBox;
57 QCheckBox *advancedCheckBox;
58 QDialogButtonBox *buttonBox;
60 void setupUi(QDialog *TranscodeDialog)
62 if (TranscodeDialog->objectName().isEmpty())
63 TranscodeDialog->setObjectName(QString::fromUtf8(
"TranscodeDialog"));
64 TranscodeDialog->setWindowModality(Qt::WindowModal);
65 TranscodeDialog->resize(418, 427);
66 verticalLayout =
new QVBoxLayout(TranscodeDialog);
67 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
68 verticalLayout->setSizeConstraint(QLayout::SetFixedSize);
69 messageLabel =
new QLabel(TranscodeDialog);
70 messageLabel->setObjectName(QString::fromUtf8(
"messageLabel"));
71 messageLabel->setText(QString::fromUtf8(
"messageLabel"));
72 messageLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
73 messageLabel->setWordWrap(
true);
75 verticalLayout->addWidget(messageLabel);
77 horizontalLayout =
new QHBoxLayout();
78 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
79 label =
new QLabel(TranscodeDialog);
80 label->setObjectName(QString::fromUtf8(
"label"));
81 label->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
83 horizontalLayout->addWidget(label);
85 label_2 =
new QLabel(TranscodeDialog);
86 label_2->setObjectName(QString::fromUtf8(
"label_2"));
87 label_2->setAlignment(Qt::AlignCenter);
89 horizontalLayout->addWidget(label_2);
91 label_3 =
new QLabel(TranscodeDialog);
92 label_3->setObjectName(QString::fromUtf8(
"label_3"));
93 label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
95 horizontalLayout->addWidget(label_3);
98 verticalLayout->addLayout(horizontalLayout);
100 horizontalSlider =
new QSlider(TranscodeDialog);
101 horizontalSlider->setObjectName(QString::fromUtf8(
"horizontalSlider"));
102 horizontalSlider->setMaximum(2);
103 horizontalSlider->setPageStep(1);
104 horizontalSlider->setValue(0);
105 horizontalSlider->setSliderPosition(0);
106 horizontalSlider->setOrientation(Qt::Horizontal);
107 horizontalSlider->setTickPosition(QSlider::TicksBothSides);
109 verticalLayout->addWidget(horizontalSlider);
111 horizontalLayout_2 =
new QHBoxLayout();
112 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
113 label_4 =
new QLabel(TranscodeDialog);
114 label_4->setObjectName(QString::fromUtf8(
"label_4"));
115 label_4->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
117 horizontalLayout_2->addWidget(label_4);
119 label_5 =
new QLabel(TranscodeDialog);
120 label_5->setObjectName(QString::fromUtf8(
"label_5"));
121 label_5->setAlignment(Qt::AlignCenter);
123 horizontalLayout_2->addWidget(label_5);
125 label_6 =
new QLabel(TranscodeDialog);
126 label_6->setObjectName(QString::fromUtf8(
"label_6"));
127 label_6->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
129 horizontalLayout_2->addWidget(label_6);
132 verticalLayout->addLayout(horizontalLayout_2);
134 formatLabel =
new QLabel(TranscodeDialog);
135 formatLabel->setObjectName(QString::fromUtf8(
"formatLabel"));
136 formatLabel->setText(QString::fromUtf8(
"formatLabel"));
137 formatLabel->setAlignment(Qt::AlignCenter);
139 verticalLayout->addWidget(formatLabel);
141 checkBox =
new QCheckBox(TranscodeDialog);
142 checkBox->setObjectName(QString::fromUtf8(
"checkBox"));
144 verticalLayout->addWidget(checkBox);
146 advancedWidget =
new QWidget(TranscodeDialog);
147 advancedWidget->setObjectName(QString::fromUtf8(
"advancedWidget"));
148 verticalLayout_2 =
new QVBoxLayout(advancedWidget);
149 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
150 gridLayout =
new QGridLayout();
151 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
152 fpsWidget =
new FrameRateWidget(advancedWidget);
153 fpsWidget->setObjectName(QString::fromUtf8(
"fpsWidget"));
155 gridLayout->addWidget(fpsWidget, 4, 1, 1, 1);
157 line =
new QFrame(advancedWidget);
158 line->setObjectName(QString::fromUtf8(
"line"));
159 line->setFrameShape(QFrame::HLine);
160 line->setFrameShadow(QFrame::Sunken);
162 gridLayout->addWidget(line, 0, 0, 1, 2);
164 fpsCheckBox =
new QCheckBox(advancedWidget);
165 fpsCheckBox->setObjectName(QString::fromUtf8(
"fpsCheckBox"));
167 gridLayout->addWidget(fpsCheckBox, 3, 1, 1, 1);
169 convert709CheckBox =
new QCheckBox(advancedWidget);
170 convert709CheckBox->setObjectName(QString::fromUtf8(
"convert709CheckBox"));
172 gridLayout->addWidget(convert709CheckBox, 6, 1, 1, 1);
174 frcLabel =
new QLabel(advancedWidget);
175 frcLabel->setObjectName(QString::fromUtf8(
"frcLabel"));
177 gridLayout->addWidget(frcLabel, 5, 0, 1, 1);
179 frcComboBox =
new QComboBox(advancedWidget);
180 frcComboBox->setObjectName(QString::fromUtf8(
"frcComboBox"));
182 gridLayout->addWidget(frcComboBox, 5, 1, 1, 1);
184 subclipCheckBox =
new QCheckBox(advancedWidget);
185 subclipCheckBox->setObjectName(QString::fromUtf8(
"subclipCheckBox"));
187 gridLayout->addWidget(subclipCheckBox, 1, 1, 1, 1);
189 fpsLabel =
new QLabel(advancedWidget);
190 fpsLabel->setObjectName(QString::fromUtf8(
"fpsLabel"));
192 gridLayout->addWidget(fpsLabel, 4, 0, 1, 1);
194 deinterlaceCheckBox =
new QCheckBox(advancedWidget);
195 deinterlaceCheckBox->setObjectName(QString::fromUtf8(
"deinterlaceCheckBox"));
197 gridLayout->addWidget(deinterlaceCheckBox, 2, 1, 1, 1);
199 advancedCheckBox =
new QCheckBox(advancedWidget);
200 advancedCheckBox->setObjectName(QString::fromUtf8(
"advancedCheckBox"));
202 gridLayout->addWidget(advancedCheckBox, 7, 1, 1, 1);
204 gridLayout->setColumnStretch(1, 1);
206 verticalLayout_2->addLayout(gridLayout);
209 verticalLayout->addWidget(advancedWidget);
211 buttonBox =
new QDialogButtonBox(TranscodeDialog);
212 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
213 buttonBox->setOrientation(Qt::Horizontal);
214 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
216 verticalLayout->addWidget(buttonBox);
219 retranslateUi(TranscodeDialog);
220 QObject::connect(buttonBox, SIGNAL(accepted()), TranscodeDialog, SLOT(accept()));
221 QObject::connect(buttonBox, SIGNAL(rejected()), TranscodeDialog, SLOT(reject()));
223 QMetaObject::connectSlotsByName(TranscodeDialog);
226 void retranslateUi(QDialog *TranscodeDialog)
228 TranscodeDialog->setWindowTitle(QCoreApplication::translate(
"TranscodeDialog",
"Dialog",
nullptr));
229 label->setText(QCoreApplication::translate(
"TranscodeDialog",
"good",
nullptr));
230 label_2->setText(QCoreApplication::translate(
"TranscodeDialog",
"better",
nullptr));
231 label_3->setText(QCoreApplication::translate(
"TranscodeDialog",
"best",
nullptr));
232 label_4->setText(QCoreApplication::translate(
"TranscodeDialog",
"medium",
nullptr));
233 label_5->setText(QCoreApplication::translate(
"TranscodeDialog",
"large",
nullptr));
234 label_6->setText(QCoreApplication::translate(
"TranscodeDialog",
"biggest",
nullptr));
235 checkBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Do not show this anymore.",
"Convert to edit-friendly format dialog"));
236 #if QT_CONFIG(tooltip)
237 fpsWidget->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"Override the frame rate to a specific value.",
nullptr));
239 #if QT_CONFIG(tooltip)
240 fpsCheckBox->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"Change the frame rate from its source.",
nullptr));
242 fpsCheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Override frame rate",
nullptr));
243 #if QT_CONFIG(tooltip)
244 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));
246 convert709CheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Convert to BT.709 colorspace",
nullptr));
247 frcLabel->setText(QCoreApplication::translate(
"TranscodeDialog",
"Frame rate conversion",
nullptr));
248 #if QT_CONFIG(tooltip)
249 frcComboBox->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"Frame rate conversion method\n"
251 "Duplicate: Duplicate frames.\n"
252 "Blend: Blend frames.\n"
253 "Motion Compensation: Interpolate new frames using motion compensation. This method is very slow and may result in artifacts.",
nullptr));
255 #if QT_CONFIG(tooltip)
256 subclipCheckBox->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"This option converts only the trimmed portion of the source\n"
257 "clip plus a little instead of the entire clip. When this option is\n"
258 "used not all of the matching source clips are replaced, instead\n"
259 "only the currently selected one.",
nullptr));
261 subclipCheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Use sub-clip",
nullptr));
262 fpsLabel->setText(QCoreApplication::translate(
"TranscodeDialog",
"Frames/sec",
nullptr));
263 #if QT_CONFIG(tooltip)
264 deinterlaceCheckBox->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"If the source is progressive, each interlaced field will be converted to a progressive frame resulting in double frame rate.",
nullptr));
266 deinterlaceCheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Deinterlace",
nullptr));
267 #if QT_CONFIG(tooltip)
268 advancedCheckBox->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"Enable this to keep the Advanced section open for the next time this dialog appears.",
nullptr));
270 advancedCheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Keep Advanced open",
nullptr));
276 class TranscodeDialog:
public Ui_TranscodeDialog {};