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 "GuiComponent.h"
|
|
|
|
#include "components/MenuComponent.h"
|
|
|
|
#include "components/OptionListComponent.h"
|
2017-03-18 17:54:39 +00:00
|
|
|
#include "GuiGamelistFilter.h"
|
2014-06-25 16:29:58 +00:00
|
|
|
#include "FileSorts.h"
|
|
|
|
|
|
|
|
class IGameListView;
|
|
|
|
|
|
|
|
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();
|
2014-07-27 22:49:43 +00:00
|
|
|
void jumpToLetter();
|
2017-05-18 10:16:57 +00:00
|
|
|
|
2014-06-25 16:29:58 +00:00
|
|
|
MenuComponent mMenu;
|
|
|
|
|
2014-07-27 22:49:43 +00:00
|
|
|
typedef OptionListComponent<char> LetterList;
|
|
|
|
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();
|
2017-03-18 17:54:39 +00:00
|
|
|
bool fromPlaceholder;
|
|
|
|
bool mFiltersChanged;
|
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
|