yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
content_registry.h File Reference
#include <functional>
#include <memory>
#include <string>
#include <vector>
Include dependency graph for content_registry.h:

Go to the source code of this file.

Classes

struct  yaze::editor::ContentRegistry::Shortcuts::ShortcutDef
 
struct  yaze::editor::ContentRegistry::Settings::SettingDef
 

Namespaces

namespace  yaze
 
namespace  yaze::project
 
namespace  yaze::zelda3
 Zelda 3 specific classes and functions.
 
namespace  yaze::editor
 Editors are the view controllers for the application.
 
namespace  yaze::editor::ContentRegistry
 Central registry for editor content and services.
 
namespace  yaze::editor::ContentRegistry::Context
 Global context for accessing shared resources.
 
namespace  yaze::editor::ContentRegistry::Panels
 Registry for editor panels.
 
namespace  yaze::editor::ContentRegistry::Editors
 Registry for Editors (full workspace tabs).
 
namespace  yaze::editor::ContentRegistry::Shortcuts
 Registry for Keyboard Shortcuts. Allows components to declare their shortcuts statically.
 
namespace  yaze::editor::ContentRegistry::Settings
 Registry for User Settings. Allows components to declare their settings statically.
 

Typedefs

using yaze::editor::ContentRegistry::Panels::PanelFactory = std::function<std::unique_ptr<EditorPanel>()>
 
using yaze::editor::ContentRegistry::Editors::EditorFactory = std::function<std::unique_ptr<Editor>(const EditorDependencies&)>
 

Functions

void yaze::editor::ContentRegistry::Context::SetGlobalContext (::yaze::editor::GlobalEditorContext *ctx)
 Set the backing GlobalEditorContext instance.
 
Romyaze::editor::ContentRegistry::Context::rom ()
 Get the current ROM instance.
 
void yaze::editor::ContentRegistry::Context::SetRom (Rom *rom)
 Set the current ROM instance.
 
::yaze::EventBusyaze::editor::ContentRegistry::Context::event_bus ()
 Get the current EventBus instance.
 
void yaze::editor::ContentRegistry::Context::SetEventBus (::yaze::EventBus *bus)
 Set the current EventBus instance.
 
Editoryaze::editor::ContentRegistry::Context::current_editor ()
 Get the currently active editor.
 
void yaze::editor::ContentRegistry::Context::SetCurrentEditor (Editor *editor)
 Set the currently active editor.
 
::yaze::zelda3::GameDatayaze::editor::ContentRegistry::Context::game_data ()
 Get the current game data instance.
 
void yaze::editor::ContentRegistry::Context::SetGameData (::yaze::zelda3::GameData *data)
 Set the current game data instance.
 
::yaze::project::YazeProjectyaze::editor::ContentRegistry::Context::current_project ()
 Get the current project instance.
 
void yaze::editor::ContentRegistry::Context::SetCurrentProject (::yaze::project::YazeProject *project)
 Set the current project instance.
 
void yaze::editor::ContentRegistry::Context::Clear ()
 Clear all context state.
 
void yaze::editor::ContentRegistry::Panels::RegisterFactory (PanelFactory factory)
 Register a panel factory.
 
template<typename T >
void yaze::editor::ContentRegistry::Panels::add ()
 Register a panel type for auto-creation.
 
std::vector< std::unique_ptr< EditorPanel > > yaze::editor::ContentRegistry::Panels::CreateAll ()
 Create new instances of all registered panels.
 
void yaze::editor::ContentRegistry::Panels::Register (std::unique_ptr< EditorPanel > panel)
 Register a panel instance (Legacy/Global).
 
std::vector< EditorPanel * > yaze::editor::ContentRegistry::Panels::GetAll ()
 Get all registered panels.
 
EditorPanelyaze::editor::ContentRegistry::Panels::Get (const std::string &id)
 Get a specific panel by its ID.
 
void yaze::editor::ContentRegistry::Panels::Clear ()
 Clear all registered panels.
 
void yaze::editor::ContentRegistry::Editors::RegisterFactory (EditorFactory factory)
 
template<typename T >
void yaze::editor::ContentRegistry::Editors::add ()
 
std::vector< std::unique_ptr< Editor > > yaze::editor::ContentRegistry::Editors::CreateAll (const EditorDependencies &deps)
 
void yaze::editor::ContentRegistry::Shortcuts::Register (const ShortcutDef &shortcut)
 
void yaze::editor::ContentRegistry::Shortcuts::add (const std::string &id, const std::string &key, const std::string &desc)
 
std::vector< ShortcutDefyaze::editor::ContentRegistry::Shortcuts::GetAll ()
 
void yaze::editor::ContentRegistry::Settings::Register (const SettingDef &setting)
 
void yaze::editor::ContentRegistry::Settings::add (const std::string &section, const std::string &key, const std::string &default_val, const std::string &desc)
 
std::vector< SettingDefyaze::editor::ContentRegistry::Settings::GetAll ()