mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-09 11:15:39 +00:00
56ccba81d1
Also changed some source file headers
57 lines
1.4 KiB
C++
57 lines
1.4 KiB
C++
// 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<HelpPrompt> 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<void()>& 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 openUtilities();
|
|
void openQuitMenu();
|
|
|
|
Renderer* mRenderer;
|
|
MenuComponent mMenu;
|
|
TextComponent mVersion;
|
|
int mThemeDownloaderReloadCounter;
|
|
};
|
|
|
|
#endif // ES_APP_GUIS_GUI_MENU_H
|