ES-DE/es-app/src/guis/GuiGamelistOptions.h
pjft 01a55ba6a2 Added support for custom Game Collection creation
- Create from a theme folder
- Create by specifying a name
- Refactored collection creation to be on-demand rather than on startup
2017-08-17 16:09:37 +01:00

39 lines
956 B
C++

#include "GuiComponent.h"
#include "components/MenuComponent.h"
#include "components/OptionListComponent.h"
#include "GuiGamelistFilter.h"
#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;
virtual HelpStyle getHelpStyle() override;
private:
void openGamelistFilter();
void openMetaDataEd();
void startEditMode();
void exitEditMode();
void jumpToLetter();
MenuComponent mMenu;
typedef OptionListComponent<char> LetterList;
std::shared_ptr<LetterList> mJumpToLetterList;
typedef OptionListComponent<const FileData::SortType*> SortList;
std::shared_ptr<SortList> mListSort;
SystemData* mSystem;
IGameListView* getGamelist();
bool fromPlaceholder;
bool mFiltersChanged;
};