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;
52 QCheckBox *convert709CheckBox;
53 QComboBox *frcComboBox;
55 QCheckBox *deinterlaceCheckBox;
56 QDialogButtonBox *buttonBox;
58 void setupUi(QDialog *TranscodeDialog)
60 if (TranscodeDialog->objectName().isEmpty())
61 TranscodeDialog->setObjectName(QString::fromUtf8(
"TranscodeDialog"));
62 TranscodeDialog->setWindowModality(Qt::WindowModal);
63 TranscodeDialog->resize(418, 369);
64 verticalLayout =
new QVBoxLayout(TranscodeDialog);
65 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
66 verticalLayout->setSizeConstraint(QLayout::SetFixedSize);
67 messageLabel =
new QLabel(TranscodeDialog);
68 messageLabel->setObjectName(QString::fromUtf8(
"messageLabel"));
69 messageLabel->setText(QString::fromUtf8(
"messageLabel"));
70 messageLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
71 messageLabel->setWordWrap(
true);
73 verticalLayout->addWidget(messageLabel);
75 horizontalLayout =
new QHBoxLayout();
76 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
77 label =
new QLabel(TranscodeDialog);
78 label->setObjectName(QString::fromUtf8(
"label"));
79 label->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
81 horizontalLayout->addWidget(label);
83 label_2 =
new QLabel(TranscodeDialog);
84 label_2->setObjectName(QString::fromUtf8(
"label_2"));
85 label_2->setAlignment(Qt::AlignCenter);
87 horizontalLayout->addWidget(label_2);
89 label_3 =
new QLabel(TranscodeDialog);
90 label_3->setObjectName(QString::fromUtf8(
"label_3"));
91 label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
93 horizontalLayout->addWidget(label_3);
96 verticalLayout->addLayout(horizontalLayout);
98 horizontalSlider =
new QSlider(TranscodeDialog);
99 horizontalSlider->setObjectName(QString::fromUtf8(
"horizontalSlider"));
100 horizontalSlider->setMaximum(2);
101 horizontalSlider->setPageStep(1);
102 horizontalSlider->setValue(0);
103 horizontalSlider->setSliderPosition(0);
104 horizontalSlider->setOrientation(Qt::Horizontal);
105 horizontalSlider->setTickPosition(QSlider::TicksBothSides);
107 verticalLayout->addWidget(horizontalSlider);
109 horizontalLayout_2 =
new QHBoxLayout();
110 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
111 label_4 =
new QLabel(TranscodeDialog);
112 label_4->setObjectName(QString::fromUtf8(
"label_4"));
113 label_4->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
115 horizontalLayout_2->addWidget(label_4);
117 label_5 =
new QLabel(TranscodeDialog);
118 label_5->setObjectName(QString::fromUtf8(
"label_5"));
119 label_5->setAlignment(Qt::AlignCenter);
121 horizontalLayout_2->addWidget(label_5);
123 label_6 =
new QLabel(TranscodeDialog);
124 label_6->setObjectName(QString::fromUtf8(
"label_6"));
125 label_6->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
127 horizontalLayout_2->addWidget(label_6);
130 verticalLayout->addLayout(horizontalLayout_2);
132 formatLabel =
new QLabel(TranscodeDialog);
133 formatLabel->setObjectName(QString::fromUtf8(
"formatLabel"));
134 formatLabel->setText(QString::fromUtf8(
"formatLabel"));
135 formatLabel->setAlignment(Qt::AlignCenter);
137 verticalLayout->addWidget(formatLabel);
139 checkBox =
new QCheckBox(TranscodeDialog);
140 checkBox->setObjectName(QString::fromUtf8(
"checkBox"));
142 verticalLayout->addWidget(checkBox);
144 advancedWidget =
new QWidget(TranscodeDialog);
145 advancedWidget->setObjectName(QString::fromUtf8(
"advancedWidget"));
146 verticalLayout_2 =
new QVBoxLayout(advancedWidget);
147 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
148 gridLayout =
new QGridLayout();
149 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
150 fpsWidget =
new FrameRateWidget(advancedWidget);
151 fpsWidget->setObjectName(QString::fromUtf8(
"fpsWidget"));
153 gridLayout->addWidget(fpsWidget, 3, 1, 1, 1);
155 line =
new QFrame(advancedWidget);
156 line->setObjectName(QString::fromUtf8(
"line"));
157 line->setFrameShape(QFrame::HLine);
158 line->setFrameShadow(QFrame::Sunken);
160 gridLayout->addWidget(line, 0, 0, 1, 2);
162 fpsCheckBox =
new QCheckBox(advancedWidget);
163 fpsCheckBox->setObjectName(QString::fromUtf8(
"fpsCheckBox"));
165 gridLayout->addWidget(fpsCheckBox, 2, 1, 1, 1);
167 fpsLabel =
new QLabel(advancedWidget);
168 fpsLabel->setObjectName(QString::fromUtf8(
"fpsLabel"));
170 gridLayout->addWidget(fpsLabel, 3, 0, 1, 1);
172 convert709CheckBox =
new QCheckBox(advancedWidget);
173 convert709CheckBox->setObjectName(QString::fromUtf8(
"convert709CheckBox"));
175 gridLayout->addWidget(convert709CheckBox, 5, 1, 1, 1);
177 frcComboBox =
new QComboBox(advancedWidget);
178 frcComboBox->setObjectName(QString::fromUtf8(
"frcComboBox"));
180 gridLayout->addWidget(frcComboBox, 4, 1, 1, 1);
182 frcLabel =
new QLabel(advancedWidget);
183 frcLabel->setObjectName(QString::fromUtf8(
"frcLabel"));
185 gridLayout->addWidget(frcLabel, 4, 0, 1, 1);
187 deinterlaceCheckBox =
new QCheckBox(advancedWidget);
188 deinterlaceCheckBox->setObjectName(QString::fromUtf8(
"deinterlaceCheckBox"));
190 gridLayout->addWidget(deinterlaceCheckBox, 1, 1, 1, 1);
192 gridLayout->setColumnStretch(1, 1);
194 verticalLayout_2->addLayout(gridLayout);
197 verticalLayout->addWidget(advancedWidget);
199 buttonBox =
new QDialogButtonBox(TranscodeDialog);
200 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
201 buttonBox->setOrientation(Qt::Horizontal);
202 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
204 verticalLayout->addWidget(buttonBox);
207 retranslateUi(TranscodeDialog);
208 QObject::connect(buttonBox, SIGNAL(accepted()), TranscodeDialog, SLOT(accept()));
209 QObject::connect(buttonBox, SIGNAL(rejected()), TranscodeDialog, SLOT(reject()));
211 QMetaObject::connectSlotsByName(TranscodeDialog);
214 void retranslateUi(QDialog *TranscodeDialog)
216 TranscodeDialog->setWindowTitle(QCoreApplication::translate(
"TranscodeDialog",
"Dialog",
nullptr));
217 label->setText(QCoreApplication::translate(
"TranscodeDialog",
"good",
nullptr));
218 label_2->setText(QCoreApplication::translate(
"TranscodeDialog",
"better",
nullptr));
219 label_3->setText(QCoreApplication::translate(
"TranscodeDialog",
"best",
nullptr));
220 label_4->setText(QCoreApplication::translate(
"TranscodeDialog",
"medium",
nullptr));
221 label_5->setText(QCoreApplication::translate(
"TranscodeDialog",
"large",
nullptr));
222 label_6->setText(QCoreApplication::translate(
"TranscodeDialog",
"biggest",
nullptr));
223 checkBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Do not show this anymore.",
"Convert to edit-friendly format dialog"));
224 #if QT_CONFIG(tooltip)
225 fpsWidget->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"Override the frame rate to a specific value.",
nullptr));
227 #if QT_CONFIG(tooltip)
228 fpsCheckBox->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"Enable frame rate override.",
nullptr));
230 fpsCheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Override frame rate",
nullptr));
231 fpsLabel->setText(QCoreApplication::translate(
"TranscodeDialog",
"Frames/sec",
nullptr));
232 convert709CheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Convert to BT.709 colorspace",
nullptr));
233 #if QT_CONFIG(tooltip)
234 frcComboBox->setToolTip(QCoreApplication::translate(
"TranscodeDialog",
"Frame rate conversion method\n"
236 "Duplicate: Duplicate frames.\n"
237 "Blend: Blend frames.\n"
238 "Motion Compensation: Interpolate new frames using motion compensation. This method is very slow and may result in artifacts.",
nullptr));
240 frcLabel->setText(QCoreApplication::translate(
"TranscodeDialog",
"Frame rate conversion",
nullptr));
241 #if QT_CONFIG(tooltip)
242 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));
244 deinterlaceCheckBox->setText(QCoreApplication::translate(
"TranscodeDialog",
"Deinterlace",
nullptr));
250 class TranscodeDialog:
public Ui_TranscodeDialog {};