// SPDX-License-Identifier: MIT // // ES-DE // GuiMenu.h // // Main menu. // Some submenus are covered in separate source files. // #ifndef ES_APP_GUIS_GUI_MENU_H #define ES_APP_GUIS_GUI_MENU_H #include "GuiComponent.h" #include "components/MenuComponent.h" #include "guis/GuiSettings.h" #include "views/ViewController.h" class GuiMenu : public GuiComponent { public: GuiMenu(); ~GuiMenu(); bool input(InputConfig* config, Input input) override; void onSizeChanged() override; std::vector getHelpPrompts() override; HelpStyle getHelpStyle() override { return ViewController::getInstance()->getViewHelpStyle(); } private: void close(bool closeAllWindows); void addEntry(const std::string& name, unsigned int color, bool add_arrow, const std::function& func); void addVersionInfo(); void openScraperOptions(); void openUIOptions(); void openThemeDownloader(GuiSettings* settings); void openMediaViewerOptions(); void openScreensaverOptions(); void openSoundOptions(); void openInputDeviceOptions(); void openConfigInput(GuiSettings* settings); void openCollectionSystemOptions(); void openOtherOptions(); void openRetroDeckConfigurator(); void openESDEConfiguration(); void openUtilities(); void openQuitMenu(); Renderer* mRenderer; MenuComponent mMenu; TextComponent mVersion; int mThemeDownloaderReloadCounter; }; #endif // ES_APP_GUIS_GUI_MENU_H