22 #ifndef GUI_LAUNCHER_DIALOG_H 23 #define GUI_LAUNCHER_DIALOG_H 26 #ifdef DISABLE_FANCY_THEMES 27 #define DISABLE_LAUNCHERDISPLAY_GRID 29 #define kSwitchLauncherDialog -2 31 #include "common/hashmap.h" 33 #include "gui/dialog.h" 34 #include "gui/widgets/popup.h" 35 #include "gui/MetadataParser.h" 37 #include "engines/game.h" 41 enum LauncherDisplayType {
42 kLauncherDisplayList = 1,
43 kLauncherDisplayGrid = 2
83 class EntryContainerWidget;
103 key(k), engineid(e), gameid(g),
description(d), title(t), domain(v) {
114 void handleCommand(
CommandSender *sender, uint32 cmd, uint32 data)
override;
116 virtual LauncherDisplayType getType()
const = 0;
127 #ifndef DISABLE_FANCY_THEMES 144 GroupingMethod _groupBy;
149 #ifndef DISABLE_LAUNCHERDISPLAY_GRID 157 void addLayoutChooserButtons();
159 #endif // !DISABLE_LAUNCHERDISPLAY_GRID 161 void reflowLayout()
override;
167 virtual void updateListing(
int selPos = -1) = 0;
169 virtual int getNextPos(
int item) = 0;
171 virtual void updateButtons() = 0;
173 virtual void build();
176 void open()
override;
177 void close()
override;
182 virtual void addGame();
188 void removeGame(
int item);
193 void editGame(
int item);
198 void recordGame(
int item);
203 void loadGame(
int item);
214 virtual int getSelected() = 0;
218 bool checkModifier(
int modifier);
230 void selectLauncher();
const char * name
Definition: launcher.h:61
Definition: launcher.h:107
Definition: edittext.h:32
Definition: launcher.h:93
Definition: saveload.h:32
GroupingMethod id
Definition: launcher.h:76
Definition: config-manager.h:59
Definition: launcher.h:57
Definition: launcher.h:221
const char * description
Definition: launcher.h:66
const char * lowresDescription
Definition: launcher.h:71
Definition: keyboard.h:294