yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
content_registry.cc File Reference
#include "app/editor/core/content_registry.h"
#include <algorithm>
#include <memory>
#include <mutex>
#include <string>
#include <vector>
#include "app/editor/core/editor_context.h"
#include "app/editor/core/event_bus.h"
#include "app/editor/system/editor_panel.h"
#include "app/editor/editor.h"
#include "core/project.h"
#include "rom/rom.h"
#include "zelda3/game_data.h"

Go to the source code of this file.

Classes

struct  yaze::editor::anonymous_namespace{content_registry.cc}::RegistryState
 

Namespaces

namespace  yaze
 
namespace  yaze::editor
 Editors are the view controllers for the application.
 
namespace  yaze::editor::anonymous_namespace{content_registry.cc}
 
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.
 

Functions

void yaze::editor::ContentRegistry::Context::SetGlobalContext (GlobalEditorContext *ctx)
 
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.
 
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)
 
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 ()