mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-23 22:55:39 +00:00
67aa6b3dbd
Includes lots of conversions from tabs to spaces. Only cosmetic code changes in this commit.
44 lines
1 KiB
C++
44 lines
1 KiB
C++
//
|
|
// GuiMenu.h
|
|
//
|
|
// Main menu.
|
|
// Some submenus are covered in separate source files.
|
|
//
|
|
|
|
#pragma once
|
|
#ifndef ES_APP_GUIS_GUI_MENU_H
|
|
#define ES_APP_GUIS_GUI_MENU_H
|
|
|
|
#include "components/MenuComponent.h"
|
|
#include "GuiComponent.h"
|
|
|
|
class GuiMenu : public GuiComponent
|
|
{
|
|
public:
|
|
GuiMenu(Window* window);
|
|
|
|
bool input(InputConfig* config, Input input) override;
|
|
void onSizeChanged() override;
|
|
std::vector<HelpPrompt> getHelpPrompts() override;
|
|
HelpStyle getHelpStyle() override;
|
|
|
|
private:
|
|
void close(bool closeAllWindows);
|
|
void addEntry(const char* name, unsigned int color,
|
|
bool add_arrow, const std::function<void()>& func);
|
|
void addVersionInfo();
|
|
void openCollectionSystemSettings();
|
|
void openConfigInput();
|
|
void openOtherSettings();
|
|
void openQuitMenu();
|
|
void openScraperSettings();
|
|
void openScreensaverOptions();
|
|
void openSoundSettings();
|
|
void openUISettings();
|
|
|
|
MenuComponent mMenu;
|
|
TextComponent mVersion;
|
|
};
|
|
|
|
#endif // ES_APP_GUIS_GUI_MENU_H
|