Global context for accessing shared resources. More...
Global context for accessing shared resources.
Context provides access to the current ROM and other shared state. This replaces the need for panels to receive dependencies via constructor.
| void yaze::editor::ContentRegistry::Context::SetGlobalContext | ( | GlobalEditorContext * | ctx | ) |
Definition at line 75 of file content_registry.cc.
Referenced by yaze::editor::EditorManager::EditorManager(), and yaze::editor::EditorManager::~EditorManager().
| Rom * yaze::editor::ContentRegistry::Context::rom | ( | ) |
Get the current ROM instance.
Definition at line 80 of file content_registry.cc.
Referenced by yaze::editor::OracleValidationPanel::DefaultRomPath(), yaze::editor::OracleValidationPanel::GetRom(), yaze::test::CoreSystemsTestSuite::RunContentRegistryContextClearTest(), yaze::test::CoreSystemsTestSuite::RunContentRegistryContextSetRomTest(), yaze::test::CoreSystemsTestSuite::RunContentRegistryThreadSafetyTest(), and SetRom().
| void yaze::editor::ContentRegistry::Context::SetRom | ( | Rom * | rom | ) |
Set the current ROM instance.
| rom | Pointer to the ROM to set as current. |
Definition at line 88 of file content_registry.cc.
References rom().
Referenced by yaze::editor::EditorManager::HandleSessionRomLoaded(), yaze::editor::EditorManager::HandleSessionSwitched(), yaze::test::CoreSystemsTestSuite::RunContentRegistryContextClearTest(), yaze::test::CoreSystemsTestSuite::RunContentRegistryContextSetRomTest(), and yaze::test::CoreSystemsTestSuite::RunContentRegistryThreadSafetyTest().

| yaze::EventBus * yaze::editor::ContentRegistry::Context::event_bus | ( | ) |
Get the current EventBus instance.
Definition at line 97 of file content_registry.cc.
Referenced by yaze::editor::DungeonRoomSelector::DrawEntranceSelectorInternal(), yaze::editor::DungeonRoomSelector::DrawGroupedRoomList(), yaze::editor::DungeonRoomSelector::DrawRoomSelectorInternal(), yaze::Controller::OnLoad(), yaze::editor::StoryEventGraphPanel::PublishJumpToAssemblySymbol(), yaze::editor::StoryEventGraphPanel::PublishJumpToMap(), yaze::editor::StoryEventGraphPanel::PublishJumpToMessage(), yaze::editor::StoryEventGraphPanel::PublishJumpToRoom(), yaze::editor::WorkspaceWindowManager::PublishWindowVisibilityChanged(), yaze::editor::CommandPalette::RegisterDungeonRoomCommands(), yaze::gui::Canvas::set_global_scale(), yaze::Application::Tick(), yaze::gui::Canvas::ZoomIn(), and yaze::gui::Canvas::ZoomOut().
| void yaze::editor::ContentRegistry::Context::SetEventBus | ( | ::yaze::EventBus * | bus | ) |
Set the current EventBus instance.
| bus | Pointer to the EventBus to set as current. |
Definition at line 105 of file content_registry.cc.
Referenced by yaze::editor::EditorManager::InitializeSubsystems().
| Editor * yaze::editor::ContentRegistry::Context::current_editor | ( | ) |
Get the currently active editor.
Definition at line 113 of file content_registry.cc.
| void yaze::editor::ContentRegistry::Context::SetCurrentEditor | ( | Editor * | editor | ) |
Set the currently active editor.
| editor | Pointer to the editor to set as current. |
Called when switching between editors (Overworld, Dungeon, etc.)
Definition at line 121 of file content_registry.cc.
Referenced by yaze::editor::WorkspaceWindowManager::DrawAllVisiblePanels(), and yaze::editor::EditorManager::SetCurrentEditor().
| Editor * yaze::editor::ContentRegistry::Context::editor_window_context | ( | const std::string & | category | ) |
Definition at line 130 of file content_registry.cc.
Referenced by yaze::editor::CurrentTypedWindowContext().
| void yaze::editor::ContentRegistry::Context::SetEditorWindowContext | ( | const std::string & | category, |
| Editor * | editor ) |
Definition at line 137 of file content_registry.cc.
Referenced by yaze::editor::EditorManager::HandleSessionSwitched(), and yaze::editor::EditorManager::SetupSidebarCallbacks().
| yaze::zelda3::GameData * yaze::editor::ContentRegistry::Context::game_data | ( | ) |
Get the current game data instance.
Definition at line 145 of file content_registry.cc.
| void yaze::editor::ContentRegistry::Context::SetGameData | ( | ::yaze::zelda3::GameData * | data | ) |
Set the current game data instance.
| data | Pointer to the GameData to set as current. |
Called when loading a ROM or switching sessions.
Definition at line 153 of file content_registry.cc.
Referenced by yaze::editor::EditorManager::EnsureGameDataLoaded(), yaze::editor::EditorManager::HandleSessionRomLoaded(), and yaze::editor::EditorManager::HandleSessionSwitched().
| yaze::project::YazeProject * yaze::editor::ContentRegistry::Context::current_project | ( | ) |
Get the current project instance.
Definition at line 162 of file content_registry.cc.
Referenced by yaze::editor::OracleValidationPanel::DefaultRomPath(), yaze::editor::anonymous_namespace{menu_inspector_panel.cc}::DetermineInitialProjectPath(), yaze::editor::AnnotationOverlayPanel::Draw(), yaze::editor::StoryEventGraphPanel::Draw(), yaze::editor::ProgressionDashboardPanel::Draw(), yaze::editor::anonymous_namespace{oracle_validation_panel.cc}::DrawZ3dkArtifactSummary(), yaze::editor::OracleValidationPanel::IsEnabled(), yaze::editor::ProgressionDashboardPanel::IsEnabled(), and yaze::editor::StoryEventGraphPanel::IsEnabled().
| void yaze::editor::ContentRegistry::Context::SetCurrentProject | ( | ::yaze::project::YazeProject * | project | ) |
Set the current project instance.
| project | Pointer to the project to set as current. |
Called when opening or switching projects.
Definition at line 170 of file content_registry.cc.
Referenced by yaze::editor::EditorManager::ApplyCurrentProjectRuntimeContext(), and yaze::editor::EditorManager::LoadProjectWithRom().
| UserSettings * yaze::editor::ContentRegistry::Context::user_settings | ( | ) |
Get the current UserSettings instance.
Cross-editor panels (e.g. Layout Designer) need to read and write user-scoped preferences without a constructor-injection hook. The setter is called from EditorManager::Initialize; consumers should treat the returned pointer as nullable.
Definition at line 179 of file content_registry.cc.
Referenced by yaze::editor::layout_designer::LayoutDesignerPanel::ApplyCurrentTreeToLiveDockspace(), yaze::editor::layout_designer::LayoutDesignerPanel::DrawFileRow(), yaze::editor::layout_designer::LayoutDesignerPanel::DrawOpenPopup(), yaze::editor::layout_designer::LayoutDesignerPanel::LoadNamedLayoutIntoTree(), yaze::Controller::OnLoad(), and yaze::editor::layout_designer::LayoutDesignerPanel::SaveCurrentTreeToNamedLayouts().
| void yaze::editor::ContentRegistry::Context::SetUserSettings | ( | UserSettings * | settings | ) |
Definition at line 184 of file content_registry.cc.
Referenced by yaze::editor::EditorManager::InitializeSubsystems().
| LayoutManager * yaze::editor::ContentRegistry::Context::layout_manager | ( | ) |
Get the shared LayoutManager instance.
Cross-editor panels that drive the live dockspace (Layout Designer) use this to call ApplyDockTree / CaptureDockTree. Consumers should null-check before use.
Definition at line 189 of file content_registry.cc.
Referenced by yaze::editor::layout_designer::LayoutDesignerPanel::ApplyCurrentTreeToLiveDockspace(), yaze::editor::SettingsPanel::ApplyNamedLayoutToDockspace(), yaze::editor::layout_designer::LayoutDesignerPanel::DrawFileRow(), and yaze::Controller::OnLoad().
| void yaze::editor::ContentRegistry::Context::SetLayoutManager | ( | LayoutManager * | manager | ) |
Definition at line 194 of file content_registry.cc.
Referenced by yaze::editor::EditorManager::InitializeSubsystems().
| workflow::HackWorkflowBackend * yaze::editor::ContentRegistry::Context::hack_workflow_backend | ( | ) |
Definition at line 199 of file content_registry.cc.
Referenced by yaze::editor::ProgressionDashboardPanel::GetWorkflowBackend(), and yaze::editor::StoryEventGraphPanel::GetWorkflowBackend().
| workflow::ValidationCapability * yaze::editor::ContentRegistry::Context::hack_validation_backend | ( | ) |
Definition at line 204 of file content_registry.cc.
Referenced by yaze::editor::OracleValidationPanel::IsEnabled(), and yaze::editor::OracleValidationPanel::LaunchRun().
| workflow::ProgressionCapability * yaze::editor::ContentRegistry::Context::hack_progression_backend | ( | ) |
Definition at line 210 of file content_registry.cc.
Referenced by yaze::editor::ProgressionDashboardPanel::GetProgressionBackend(), and yaze::editor::StoryEventGraphPanel::GetProgressionBackend().
| workflow::PlanningCapability * yaze::editor::ContentRegistry::Context::hack_planning_backend | ( | ) |
Definition at line 216 of file content_registry.cc.
Referenced by yaze::editor::StoryEventGraphPanel::GetPlanningBackend().
| void yaze::editor::ContentRegistry::Context::SetHackWorkflowBackend | ( | workflow::HackWorkflowBackend * | backend | ) |
Definition at line 222 of file content_registry.cc.
Referenced by yaze::editor::EditorManager::RefreshHackWorkflowBackend().
| ProjectWorkflowStatus yaze::editor::ContentRegistry::Context::build_workflow_status | ( | ) |
Definition at line 227 of file content_registry.cc.
Referenced by yaze::editor::workflow::ProjectWorkflowOutputPanel::Draw(), and yaze::editor::RightDrawerManager::DrawNotificationsPanel().
| void yaze::editor::ContentRegistry::Context::SetBuildWorkflowStatus | ( | const ProjectWorkflowStatus & | status | ) |
Definition at line 232 of file content_registry.cc.
Referenced by yaze::editor::EditorManager::LoadProjectWithRom(), and yaze::editor::anonymous_namespace{editor_manager.cc}::UpdateBuildWorkflowStatus().
| ProjectWorkflowStatus yaze::editor::ContentRegistry::Context::run_workflow_status | ( | ) |
Definition at line 237 of file content_registry.cc.
Referenced by yaze::editor::workflow::ProjectWorkflowOutputPanel::Draw(), and yaze::editor::RightDrawerManager::DrawNotificationsPanel().
| void yaze::editor::ContentRegistry::Context::SetRunWorkflowStatus | ( | const ProjectWorkflowStatus & | status | ) |
Definition at line 242 of file content_registry.cc.
Referenced by yaze::editor::EditorManager::LoadProjectWithRom(), and yaze::editor::anonymous_namespace{editor_manager.cc}::UpdateRunWorkflowStatus().
| std::string yaze::editor::ContentRegistry::Context::build_workflow_log | ( | ) |
Definition at line 247 of file content_registry.cc.
Referenced by yaze::editor::workflow::ProjectWorkflowOutputPanel::Draw().
| void yaze::editor::ContentRegistry::Context::SetBuildWorkflowLog | ( | const std::string & | output | ) |
Definition at line 252 of file content_registry.cc.
Referenced by yaze::editor::EditorManager::LoadProjectWithRom(), yaze::editor::EditorManager::PollProjectWorkflowTasks(), and yaze::editor::EditorManager::QueueBuildCurrentProject().
| std::vector< ProjectWorkflowHistoryEntry > yaze::editor::ContentRegistry::Context::workflow_history | ( | ) |
Definition at line 257 of file content_registry.cc.
Referenced by yaze::editor::workflow::ProjectWorkflowOutputPanel::Draw(), and yaze::editor::RightDrawerManager::DrawNotificationsPanel().
| void yaze::editor::ContentRegistry::Context::AppendWorkflowHistory | ( | const ProjectWorkflowHistoryEntry & | entry | ) |
Definition at line 262 of file content_registry.cc.
Referenced by yaze::editor::anonymous_namespace{editor_manager.cc}::AppendWorkflowHistoryEntry().
| void yaze::editor::ContentRegistry::Context::ClearWorkflowHistory | ( | ) |
Definition at line 272 of file content_registry.cc.
Referenced by yaze::editor::workflow::ProjectWorkflowOutputPanel::Draw(), and yaze::editor::EditorManager::LoadProjectWithRom().
| std::function< void()> yaze::editor::ContentRegistry::Context::start_build_workflow_callback | ( | ) |
Definition at line 277 of file content_registry.cc.
Referenced by yaze::editor::workflow::ProjectWorkflowOutputPanel::DrawHistoryEntry(), and yaze::editor::RightDrawerManager::DrawNotificationsPanel().
| void yaze::editor::ContentRegistry::Context::SetStartBuildWorkflowCallback | ( | std::function< void()> | callback | ) |
Definition at line 282 of file content_registry.cc.
Referenced by yaze::editor::EditorManager::InitializeSubsystems().
| std::function< void()> yaze::editor::ContentRegistry::Context::run_project_workflow_callback | ( | ) |
Definition at line 287 of file content_registry.cc.
Referenced by yaze::editor::workflow::ProjectWorkflowOutputPanel::DrawHistoryEntry(), and yaze::editor::RightDrawerManager::DrawNotificationsPanel().
| void yaze::editor::ContentRegistry::Context::SetRunProjectWorkflowCallback | ( | std::function< void()> | callback | ) |
Definition at line 292 of file content_registry.cc.
Referenced by yaze::editor::EditorManager::InitializeSubsystems().
| std::function< void()> yaze::editor::ContentRegistry::Context::show_workflow_output_callback | ( | ) |
Definition at line 297 of file content_registry.cc.
Referenced by yaze::editor::RightDrawerManager::DrawNotificationsPanel().
| void yaze::editor::ContentRegistry::Context::SetShowWorkflowOutputCallback | ( | std::function< void()> | callback | ) |
Definition at line 302 of file content_registry.cc.
Referenced by yaze::editor::EditorManager::InitializeSubsystems().
| std::function< void()> yaze::editor::ContentRegistry::Context::cancel_build_workflow_callback | ( | ) |
Definition at line 307 of file content_registry.cc.
Referenced by yaze::editor::workflow::ProjectWorkflowOutputPanel::Draw(), and yaze::editor::RightDrawerManager::DrawNotificationsPanel().
| void yaze::editor::ContentRegistry::Context::SetCancelBuildWorkflowCallback | ( | std::function< void()> | callback | ) |
Definition at line 312 of file content_registry.cc.
Referenced by yaze::editor::EditorManager::InitializeSubsystems().
| void yaze::editor::ContentRegistry::Context::Clear | ( | ) |
Clear all context state.
Called during shutdown or when switching sessions.
Definition at line 317 of file content_registry.cc.
Referenced by yaze::editor::EditorManager::HandleSessionClosed(), yaze::test::CoreSystemsTestSuite::RunContentRegistryContextClearTest(), and yaze::editor::EditorManager::~EditorManager().
| void yaze::editor::ContentRegistry::Context::SetGlobalContext | ( | ::yaze::editor::GlobalEditorContext * | ctx | ) |
Set the backing GlobalEditorContext instance.
When set, Context getters/setters delegate to this instance. Called once during EditorManager initialization. Pass nullptr to revert to standalone static storage.