2020-05-24 08:29:29 +00:00
|
|
|
//
|
2020-06-21 12:25:28 +00:00
|
|
|
// GuiMenu.h
|
2020-05-24 08:29:29 +00:00
|
|
|
//
|
2020-06-21 12:25:28 +00:00
|
|
|
// Main menu.
|
|
|
|
// Some submenus are covered in separate source files.
|
2020-05-24 08:29:29 +00:00
|
|
|
//
|
|
|
|
|
2014-06-25 16:29:58 +00:00
|
|
|
#pragma once
|
2017-10-31 17:12:50 +00:00
|
|
|
#ifndef ES_APP_GUIS_GUI_MENU_H
|
|
|
|
#define ES_APP_GUIS_GUI_MENU_H
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
#include "components/MenuComponent.h"
|
2017-11-01 22:21:10 +00:00
|
|
|
#include "GuiComponent.h"
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
class GuiMenu : public GuiComponent
|
|
|
|
{
|
|
|
|
public:
|
2020-06-21 12:25:28 +00:00
|
|
|
GuiMenu(Window* window);
|
2014-06-25 16:29:58 +00:00
|
|
|
|
2020-06-21 12:25:28 +00:00
|
|
|
bool input(InputConfig* config, Input input) override;
|
|
|
|
void onSizeChanged() override;
|
|
|
|
std::vector<HelpPrompt> getHelpPrompts() override;
|
|
|
|
HelpStyle getHelpStyle() override;
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
private:
|
2020-06-21 12:25:28 +00:00
|
|
|
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();
|
2017-09-08 14:49:47 +00:00
|
|
|
|
2020-06-21 12:25:28 +00:00
|
|
|
MenuComponent mMenu;
|
|
|
|
TextComponent mVersion;
|
2014-06-25 16:29:58 +00:00
|
|
|
};
|
2017-10-31 17:12:50 +00:00
|
|
|
|
|
|
|
#endif // ES_APP_GUIS_GUI_MENU_H
|