implemented export dialog functionality and some base formats/codecs to support

This commit is contained in:
itsmattkc
2019-12-16 01:21:30 +11:00
parent d6d8409bb9
commit 3f79845464
13 changed files with 407 additions and 64 deletions
+18 -3
View File
@@ -1,11 +1,12 @@
#include "exportvideotab.h"
#include <QCheckBox>
#include <QComboBox>
#include <QGridLayout>
#include <QGroupBox>
#include <QLabel>
#include "core.h"
#include "common/rational.h"
#include "widget/slider/integerslider.h"
ExportVideoTab::ExportVideoTab(QWidget *parent) :
@@ -22,6 +23,11 @@ ExportVideoTab::ExportVideoTab(QWidget *parent) :
outer_layout->addStretch();
}
QComboBox *ExportVideoTab::codec_combobox() const
{
return codec_combobox_;
}
QWidget* ExportVideoTab::SetupResolutionSection()
{
int row = 0;
@@ -56,7 +62,14 @@ QWidget* ExportVideoTab::SetupResolutionSection()
row++;
layout->addWidget(new QLabel(tr("Frame Rate:")), row, 0);
layout->addWidget(new QComboBox(), row, 1);
frame_rate_combobox_ = new QComboBox();
QList<rational> frame_rates = Core::SupportedFrameRates();
foreach (const rational& fr, frame_rates) {
frame_rate_combobox_->addItem(Core::FrameRateToString(fr));
}
layout->addWidget(frame_rate_combobox_, row, 1);
return resolution_group;
}
@@ -98,7 +111,9 @@ QWidget *ExportVideoTab::SetupCodecSection()
QGridLayout* codec_layout = new QGridLayout(codec_group);
codec_layout->addWidget(new QLabel(tr("Codec:")), row, 0);
codec_layout->addWidget(new QComboBox(), row, 1);
codec_combobox_ = new QComboBox();
codec_layout->addWidget(codec_combobox_, row, 1);
return codec_group;
}