2020-05-24 08:29:29 +00:00
|
|
|
//
|
|
|
|
// GuiGamelistOptions.h
|
|
|
|
//
|
|
|
|
// Gamelist options menu for the 'Jump to...' quick selector,
|
|
|
|
// game sorting, game filters, and metadata edit.
|
|
|
|
//
|
2020-05-26 16:34:33 +00:00
|
|
|
// The filter interface is covered by GuiGamelistFilter and the
|
|
|
|
// metadata edit interface is covered by GuiMetaDataEd.
|
|
|
|
//
|
2020-05-24 08:29:29 +00:00
|
|
|
|
2017-10-31 17:12:50 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef ES_APP_GUIS_GUI_GAME_LIST_OPTIONS_H
|
|
|
|
#define ES_APP_GUIS_GUI_GAME_LIST_OPTIONS_H
|
|
|
|
|
2014-06-25 16:29:58 +00:00
|
|
|
#include "components/MenuComponent.h"
|
|
|
|
#include "components/OptionListComponent.h"
|
2017-11-01 22:21:10 +00:00
|
|
|
#include "FileData.h"
|
|
|
|
#include "GuiComponent.h"
|
2020-05-17 17:30:29 +00:00
|
|
|
#include "utils/StringUtil.h"
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
class IGameListView;
|
2017-11-01 22:21:10 +00:00
|
|
|
class SystemData;
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
class GuiGamelistOptions : public GuiComponent
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GuiGamelistOptions(Window* window, SystemData* system);
|
|
|
|
virtual ~GuiGamelistOptions();
|
|
|
|
|
|
|
|
virtual bool input(InputConfig* config, Input input) override;
|
|
|
|
virtual std::vector<HelpPrompt> getHelpPrompts() override;
|
2017-05-28 18:13:00 +00:00
|
|
|
virtual HelpStyle getHelpStyle() override;
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
private:
|
2017-03-18 17:54:39 +00:00
|
|
|
void openGamelistFilter();
|
2014-06-25 16:29:58 +00:00
|
|
|
void openMetaDataEd();
|
2017-07-18 09:45:50 +00:00
|
|
|
void startEditMode();
|
|
|
|
void exitEditMode();
|
2020-05-24 08:29:29 +00:00
|
|
|
|
2014-07-27 22:49:43 +00:00
|
|
|
void jumpToLetter();
|
2020-05-24 08:29:29 +00:00
|
|
|
void jumpToFirstRow();
|
2020-05-15 16:16:04 +00:00
|
|
|
|
2020-05-17 17:30:29 +00:00
|
|
|
const std::string FAVORITE_CHAR = "\uF005";
|
2017-05-18 10:16:57 +00:00
|
|
|
|
2014-06-25 16:29:58 +00:00
|
|
|
MenuComponent mMenu;
|
|
|
|
|
2020-05-17 17:30:29 +00:00
|
|
|
typedef OptionListComponent<std::string> LetterList;
|
2014-07-27 22:49:43 +00:00
|
|
|
std::shared_ptr<LetterList> mJumpToLetterList;
|
|
|
|
|
2014-06-25 16:29:58 +00:00
|
|
|
typedef OptionListComponent<const FileData::SortType*> SortList;
|
|
|
|
std::shared_ptr<SortList> mListSort;
|
2017-05-18 10:16:57 +00:00
|
|
|
|
2014-06-25 16:29:58 +00:00
|
|
|
SystemData* mSystem;
|
|
|
|
IGameListView* getGamelist();
|
2020-05-24 08:29:29 +00:00
|
|
|
bool mFavoritesSorting;
|
2017-03-18 17:54:39 +00:00
|
|
|
bool fromPlaceholder;
|
|
|
|
bool mFiltersChanged;
|
2020-06-09 18:03:31 +00:00
|
|
|
bool mCancelled;
|
2014-06-25 16:29:58 +00:00
|
|
|
};
|
2017-10-31 17:12:50 +00:00
|
|
|
|
|
|
|
#endif // ES_APP_GUIS_GUI_GAME_LIST_OPTIONS_H
|