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

58 lines
1.8 KiB
C++
Raw Normal View History

2019-03-27 02:37:34 +01:00
#include "options.h"
DirectoryCategory::DirectoryCategory(QWidget *parent) :
OptionsCategory(parent)
{
setDisplayName(MENU_ENUM_LABEL_VALUE_DIRECTORY_SETTINGS);
setCategoryIcon("folder");
}
QVector<OptionsPage*> DirectoryCategory::pages()
{
QVector<OptionsPage*> pages;
pages << new DirectoryPage(this);
return pages;
}
DirectoryPage::DirectoryPage(QObject *parent) :
OptionsPage(parent)
{
}
QWidget *DirectoryPage::widget()
{
2019-04-14 17:26:14 +02:00
QWidget *widget = new QWidget;
2019-03-27 02:37:34 +01:00
FormLayout *layout = new FormLayout;
2019-04-14 17:26:14 +02:00
layout->add(MENU_ENUM_LABEL_CORE_ASSETS_DIRECTORY);
layout->add(MENU_ENUM_LABEL_ASSETS_DIRECTORY);
layout->add(MENU_ENUM_LABEL_DYNAMIC_WALLPAPERS_DIRECTORY);
layout->add(MENU_ENUM_LABEL_THUMBNAILS_DIRECTORY);
layout->add(MENU_ENUM_LABEL_RGUI_BROWSER_DIRECTORY);
layout->add(MENU_ENUM_LABEL_RGUI_CONFIG_DIRECTORY);
layout->add(MENU_ENUM_LABEL_LIBRETRO_DIR_PATH);
layout->add(MENU_ENUM_LABEL_LIBRETRO_INFO_PATH);
layout->add(MENU_ENUM_LABEL_CONTENT_DATABASE_DIRECTORY);
layout->add(MENU_ENUM_LABEL_CURSOR_DIRECTORY);
layout->add(MENU_ENUM_LABEL_CHEAT_DATABASE_PATH);
layout->add(MENU_ENUM_LABEL_VIDEO_FILTER_DIR);
layout->add(MENU_ENUM_LABEL_AUDIO_FILTER_DIR);
layout->add(MENU_ENUM_LABEL_VIDEO_SHADER_DIR);
layout->add(MENU_ENUM_LABEL_RECORDING_OUTPUT_DIRECTORY);
layout->add(MENU_ENUM_LABEL_RECORDING_CONFIG_DIRECTORY);
layout->add(MENU_ENUM_LABEL_OVERLAY_DIRECTORY);
layout->add(MENU_ENUM_LABEL_SCREENSHOT_DIRECTORY);
layout->add(MENU_ENUM_LABEL_JOYPAD_AUTOCONFIG_DIR);
layout->add(MENU_ENUM_LABEL_INPUT_REMAPPING_DIRECTORY);
layout->add(MENU_ENUM_LABEL_PLAYLIST_DIRECTORY);
layout->add(MENU_ENUM_LABEL_SAVEFILE_DIRECTORY);
layout->add(MENU_ENUM_LABEL_SAVESTATE_DIRECTORY);
layout->add(MENU_ENUM_LABEL_CACHE_DIRECTORY);
2019-03-27 02:37:34 +01:00
widget->setLayout(layout);
return widget;
}