#include "options.h" RecordingCategory::RecordingCategory(QWidget *parent) : OptionsCategory(parent) { setDisplayName(MENU_ENUM_LABEL_VALUE_RECORDING_SETTINGS); setCategoryIcon("menu_record"); } QVector RecordingCategory::pages() { QVector pages; pages << new RecordingPage(this); return pages; } RecordingPage::RecordingPage(QObject *parent) : OptionsPage(parent) { } QWidget *RecordingPage::widget() { QWidget * widget = new QWidget; QVBoxLayout *layout = new QVBoxLayout; SettingsGroup *recordingGroup = new SettingsGroup("Recording"); SettingsGroup *streamingGroup = new SettingsGroup("Streaming"); 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); hl->addWidget(new UIntRadioButtons(MENU_ENUM_LABEL_STREAMING_MODE)); hl->addWidget(new UIntRadioButtons(MENU_ENUM_LABEL_VIDEO_STREAM_QUALITY)); streamingGroup->addRow(hl); 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); layout->addWidget(recordingGroup); layout->addWidget(streamingGroup); layout->addStretch(); widget->setLayout(layout); return widget; }