mirror of
https://github.com/libretro/RetroArch
synced 2025-02-02 05:54:16 +00:00
44 lines
978 B
C++
44 lines
978 B
C++
|
#include "options.h"
|
||
|
|
||
|
PlaylistsCategory::PlaylistsCategory(QWidget *parent) :
|
||
|
OptionsCategory(parent)
|
||
|
{
|
||
|
setDisplayName(MENU_ENUM_LABEL_VALUE_PLAYLIST_SETTINGS);
|
||
|
setCategoryIcon("menu_playlist");
|
||
|
}
|
||
|
|
||
|
QVector<OptionsPage*> PlaylistsCategory::pages()
|
||
|
{
|
||
|
QVector<OptionsPage*> pages;
|
||
|
|
||
|
pages << new PlaylistsPage(this);
|
||
|
|
||
|
return pages;
|
||
|
}
|
||
|
|
||
|
PlaylistsPage::PlaylistsPage(QObject *parent) :
|
||
|
OptionsPage(parent)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
QWidget *PlaylistsPage::widget()
|
||
|
{
|
||
|
QWidget *widget = new QWidget;
|
||
|
|
||
|
FormLayout *layout = new FormLayout;
|
||
|
|
||
|
CheckableSettingsGroup *history = new CheckableSettingsGroup(MENU_ENUM_LABEL_HISTORY_LIST_ENABLE);
|
||
|
|
||
|
history->addUIntSpinBox(MENU_ENUM_LABEL_CONTENT_HISTORY_SIZE);
|
||
|
|
||
|
layout->addRow(history);
|
||
|
|
||
|
layout->addCheckBox(MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME);
|
||
|
layout->addCheckBox(MENU_ENUM_LABEL_PLAYLIST_ENTRY_REMOVE);
|
||
|
layout->addCheckBox(MENU_ENUM_LABEL_PLAYLIST_USE_OLD_FORMAT);
|
||
|
|
||
|
widget->setLayout(layout);
|
||
|
|
||
|
return widget;
|
||
|
}
|