The UI for this isn't perfect, I just wrote this in because I needed it. But the backend is solid.
79 lines
2.0 KiB
C++
79 lines
2.0 KiB
C++
/***
|
|
|
|
Olive - Non-Linear Video Editor
|
|
Copyright (C) 2020 Olive Team
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
***/
|
|
|
|
#include "exportaudiotab.h"
|
|
|
|
#include <QGridLayout>
|
|
#include <QLabel>
|
|
|
|
#include "core.h"
|
|
|
|
namespace olive {
|
|
|
|
ExportAudioTab::ExportAudioTab(QWidget* parent) :
|
|
QWidget(parent)
|
|
{
|
|
QVBoxLayout* outer_layout = new QVBoxLayout(this);
|
|
|
|
QGridLayout* layout = new QGridLayout();
|
|
outer_layout->addLayout(layout);
|
|
|
|
int row = 0;
|
|
|
|
layout->addWidget(new QLabel(tr("Codec:")), row, 0);
|
|
|
|
codec_combobox_ = new QComboBox();
|
|
layout->addWidget(codec_combobox_, row, 1);
|
|
|
|
row++;
|
|
|
|
layout->addWidget(new QLabel(tr("Sample Rate:")), row, 0);
|
|
|
|
sample_rate_combobox_ = new SampleRateComboBox();
|
|
layout->addWidget(sample_rate_combobox_, row, 1);
|
|
|
|
row++;
|
|
|
|
layout->addWidget(new QLabel(tr("Channel Layout:")), row, 0);
|
|
|
|
channel_layout_combobox_ = new ChannelLayoutComboBox();
|
|
layout->addWidget(channel_layout_combobox_, row, 1);
|
|
|
|
row++;
|
|
|
|
layout->addWidget(new QLabel(tr("Format:")), row, 0);
|
|
layout->addWidget(new QComboBox(), row, 1);
|
|
|
|
row++;
|
|
|
|
layout->addWidget(new QLabel(tr("Bit Rate:")), row, 0);
|
|
|
|
bit_rate_slider_ = new IntegerSlider();
|
|
bit_rate_slider_->SetMinimum(32);
|
|
bit_rate_slider_->SetMaximum(320);
|
|
bit_rate_slider_->SetValue(256);
|
|
bit_rate_slider_->SetFormat(tr("%1 kbps"));
|
|
layout->addWidget(bit_rate_slider_, row, 1);
|
|
|
|
outer_layout->addStretch();
|
|
}
|
|
|
|
}
|