2019-03-27 02:37:34 +01:00
|
|
|
#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()
|
|
|
|
{
|
2019-04-14 17:45:12 +02:00
|
|
|
QWidget *widget = new QWidget;
|
|
|
|
FormLayout *layout = new FormLayout;
|
2019-03-27 02:37:34 +01:00
|
|
|
CheckableSettingsGroup *history = new CheckableSettingsGroup(MENU_ENUM_LABEL_HISTORY_LIST_ENABLE);
|
|
|
|
|
2019-04-14 17:45:12 +02:00
|
|
|
history->add(MENU_ENUM_LABEL_CONTENT_HISTORY_SIZE);
|
2019-03-27 02:37:34 +01:00
|
|
|
|
|
|
|
layout->addRow(history);
|
|
|
|
|
2019-04-14 17:45:12 +02:00
|
|
|
layout->add(MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME);
|
2019-06-06 01:10:45 +02:00
|
|
|
/*layout->add(MENU_ENUM_LABEL_PLAYLIST_ENTRY_REMOVE); TOFIX */
|
2019-05-06 00:11:57 +02:00
|
|
|
layout->add(MENU_ENUM_LABEL_PLAYLIST_SORT_ALPHABETICAL);
|
2019-04-14 17:45:12 +02:00
|
|
|
layout->add(MENU_ENUM_LABEL_PLAYLIST_USE_OLD_FORMAT);
|
2020-04-21 16:44:26 +01:00
|
|
|
layout->add(MENU_ENUM_LABEL_PLAYLIST_COMPRESSION);
|
2019-05-06 00:11:57 +02:00
|
|
|
layout->add(MENU_ENUM_LABEL_PLAYLIST_SHOW_SUBLABELS);
|
|
|
|
layout->add(MENU_ENUM_LABEL_PLAYLIST_FUZZY_ARCHIVE_MATCH);
|
|
|
|
layout->add(MENU_ENUM_LABEL_SCAN_WITHOUT_CORE_MATCH);
|
2019-03-27 02:37:34 +01:00
|
|
|
|
|
|
|
widget->setLayout(layout);
|
|
|
|
|
|
|
|
return widget;
|
|
|
|
}
|