2017-06-12 16:38:59 +00:00
|
|
|
#pragma once
|
2017-10-31 17:12:50 +00:00
|
|
|
#ifndef ES_APP_GUIS_GUI_COLLECTION_SYSTEM_OPTIONS_H
|
|
|
|
#define ES_APP_GUIS_GUI_COLLECTION_SYSTEM_OPTIONS_H
|
2017-06-12 16:38:59 +00:00
|
|
|
|
|
|
|
#include "GuiComponent.h"
|
|
|
|
#include "SystemData.h"
|
|
|
|
#include "components/MenuComponent.h"
|
|
|
|
#include "CollectionSystemManager.h"
|
2017-07-18 09:45:50 +00:00
|
|
|
#include "components/SwitchComponent.h"
|
2017-06-12 16:38:59 +00:00
|
|
|
#include "Log.h"
|
|
|
|
|
|
|
|
|
|
|
|
template<typename T>
|
|
|
|
class OptionListComponent;
|
|
|
|
|
|
|
|
|
|
|
|
class GuiCollectionSystemsOptions : public GuiComponent
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GuiCollectionSystemsOptions(Window* window);
|
|
|
|
~GuiCollectionSystemsOptions();
|
|
|
|
bool input(InputConfig* config, Input input) override;
|
|
|
|
|
|
|
|
virtual std::vector<HelpPrompt> getHelpPrompts() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void initializeMenu();
|
|
|
|
void applySettings();
|
|
|
|
void addSystemsToMenu();
|
2017-07-18 09:45:50 +00:00
|
|
|
void addEntry(const char* name, unsigned int color, bool add_arrow, const std::function<void()>& func);
|
|
|
|
void updateSettings(std::string newAutoSettings, std::string newCustomSettings);
|
|
|
|
void createCollection(std::string inName);
|
|
|
|
void exitEditMode();
|
2017-06-12 16:38:59 +00:00
|
|
|
std::shared_ptr< OptionListComponent<std::string> > autoOptionList;
|
2017-07-18 09:45:50 +00:00
|
|
|
std::shared_ptr< OptionListComponent<std::string> > customOptionList;
|
|
|
|
std::shared_ptr<SwitchComponent> sortAllSystemsSwitch;
|
|
|
|
std::shared_ptr<SwitchComponent> bundleCustomCollections;
|
2017-06-12 16:38:59 +00:00
|
|
|
MenuComponent mMenu;
|
|
|
|
SystemData* mSystem;
|
|
|
|
};
|
2017-10-31 17:12:50 +00:00
|
|
|
|
|
|
|
#endif // ES_APP_GUIS_GUI_COLLECTION_SYSTEM_OPTIONS_H
|