mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-23 22:55:39 +00:00
62 lines
1.5 KiB
C++
62 lines
1.5 KiB
C++
//
|
|
// GuiGamelistOptions.h
|
|
//
|
|
// Gamelist options menu for the 'Jump to...' quick selector,
|
|
// game sorting, game filters, and metadata edit.
|
|
//
|
|
// The filter interface is covered by GuiGamelistFilter and the
|
|
// metadata edit interface is covered by GuiMetaDataEd.
|
|
//
|
|
|
|
#pragma once
|
|
#ifndef ES_APP_GUIS_GUI_GAME_LIST_OPTIONS_H
|
|
#define ES_APP_GUIS_GUI_GAME_LIST_OPTIONS_H
|
|
|
|
#include "components/MenuComponent.h"
|
|
#include "components/OptionListComponent.h"
|
|
#include "FileData.h"
|
|
#include "GuiComponent.h"
|
|
#include "utils/StringUtil.h"
|
|
|
|
class IGameListView;
|
|
class SystemData;
|
|
|
|
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();
|
|
void jumpToFirstRow();
|
|
|
|
const std::string FAVORITE_CHAR = "\uF005";
|
|
|
|
MenuComponent mMenu;
|
|
|
|
typedef OptionListComponent<std::string> LetterList;
|
|
std::shared_ptr<LetterList> mJumpToLetterList;
|
|
|
|
typedef OptionListComponent<const FileData::SortType*> SortList;
|
|
std::shared_ptr<SortList> mListSort;
|
|
|
|
SystemData* mSystem;
|
|
IGameListView* getGamelist();
|
|
bool mFavoritesSorting;
|
|
bool fromPlaceholder;
|
|
bool mFiltersChanged;
|
|
bool mCancelled;
|
|
};
|
|
|
|
#endif // ES_APP_GUIS_GUI_GAME_LIST_OPTIONS_H
|