RetroArch/ui/drivers/qt/options/recording.cpp

58 lines
1.6 KiB
C++
Raw Normal View History

2019-03-27 02:37:34 +01:00
#include "options.h"
RecordingCategory::RecordingCategory(QWidget *parent) :
OptionsCategory(parent)
{
setDisplayName(MENU_ENUM_LABEL_VALUE_RECORDING_SETTINGS);
setCategoryIcon("menu_record");
}
QVector<OptionsPage*> RecordingCategory::pages()
{
QVector<OptionsPage*> pages;
pages << new RecordingPage(this);
return pages;
}
RecordingPage::RecordingPage(QObject *parent) :
OptionsPage(parent)
{
}
QWidget *RecordingPage::widget()
{
2019-04-14 23:07:34 +02:00
QWidget * widget = new QWidget;
QVBoxLayout *layout = new QVBoxLayout;
2019-03-27 02:37:34 +01:00
SettingsGroup *recordingGroup = new SettingsGroup("Recording");
SettingsGroup *streamingGroup = new SettingsGroup("Streaming");
2019-04-14 23:07:34 +02:00
QHBoxLayout *hl = new QHBoxLayout;
recordingGroup->add(MENU_ENUM_LABEL_VIDEO_RECORD_QUALITY);
recordingGroup->add(MENU_ENUM_LABEL_RECORD_CONFIG);
recordingGroup->add(MENU_ENUM_LABEL_VIDEO_RECORD_THREADS);
recordingGroup->add(MENU_ENUM_LABEL_RECORDING_OUTPUT_DIRECTORY);
recordingGroup->add(MENU_ENUM_LABEL_VIDEO_POST_FILTER_RECORD);
recordingGroup->add(MENU_ENUM_LABEL_VIDEO_GPU_RECORD);
2019-03-27 02:37:34 +01:00
hl->addWidget(new UIntRadioButtons(MENU_ENUM_LABEL_STREAMING_MODE));
hl->addWidget(new UIntRadioButtons(MENU_ENUM_LABEL_VIDEO_STREAM_QUALITY));
streamingGroup->addRow(hl);
2019-04-14 23:34:28 +02:00
streamingGroup->add(MENU_ENUM_LABEL_STREAM_CONFIG);
streamingGroup->add(MENU_ENUM_LABEL_STREAMING_TITLE);
streamingGroup->add(MENU_ENUM_LABEL_STREAMING_URL);
streamingGroup->add(MENU_ENUM_LABEL_UDP_STREAM_PORT);
2019-03-27 02:37:34 +01:00
layout->addWidget(recordingGroup);
layout->addWidget(streamingGroup);
layout->addStretch();
widget->setLayout(layout);
return widget;
}