The EditorManager controls the main editor window and manages the various editor classes. More...
#include <editor_manager.h>

Classes | |
| class | SessionScope |
| struct | UiSyncState |
Public Types | |
| enum class | PotItemSaveDecision { kSaveWithPotItems , kSaveWithoutPotItems , kCancel } |
Static Public Member Functions | |
| static bool | IsPanelBasedEditor (EditorType type) |
The EditorManager controls the main editor window and manages the various editor classes.
The EditorManager class contains instances of various editor classes such as AssemblyEditor, DungeonEditor, GraphicsEditor, MusicEditor, OverworldEditor, PaletteEditor, ScreenEditor, and SpriteEditor. The current_editor_ member variable points to the currently active editor in the tab view.
EditorManager subscribes to EventBus events for session lifecycle notifications (SessionSwitchedEvent, SessionCreatedEvent, etc.) and updates cross-cutting concerns accordingly.
Definition at line 89 of file editor_manager.h.
|
strong |
| Enumerator | |
|---|---|
| kSaveWithPotItems | |
| kSaveWithoutPotItems | |
| kCancel | |
Definition at line 98 of file editor_manager.h.
| yaze::editor::EditorManager::EditorManager | ( | ) |
Definition at line 482 of file editor_manager.cc.
References editor_context_, event_bus_, yaze::editor::StatusBar::Initialize(), InitializeSubsystems(), RegisterEditors(), yaze::editor::ContentRegistry::Context::SetGlobalContext(), status_bar_, SubscribeToEvents(), and version_.
| yaze::editor::EditorManager::~EditorManager | ( | ) |
Definition at line 825 of file editor_manager.cc.
| void yaze::editor::EditorManager::Initialize | ( | gfx::IRenderer * | renderer, |
| const std::string & | filename = "" ) |
Definition at line 1136 of file editor_manager.cc.
References editor_registry_, emulator_, yaze::editor::PanelManager::GetActiveSessionId(), GetPreferredStartupCategory(), InitializeServices(), InitializeShortcutSystem(), InitializeTestSuites(), OpenRomOrProject(), yaze::editor::UserSettings::Preferences::panel_browser_category_width, panel_manager_, yaze::editor::UserSettings::Preferences::panel_visibility_state, pending_layout_defaults_reset_, yaze::editor::UserSettings::prefs(), PRINT_IF_ERROR, yaze::editor::RegisterDefaultEditorFactories(), RegisterEmulatorPanels(), renderer_, ResetWorkspaceLayout(), yaze::editor::PanelManager::RestoreVisibilityState(), yaze::emu::Emulator::set_panel_manager(), yaze::editor::WorkspaceManager::set_panel_manager(), yaze::editor::PanelManager::SetActiveCategory(), yaze::editor::PanelManager::SetPanelBrowserCategoryWidth(), yaze::editor::PanelManager::SetPanelExpanded(), yaze::editor::PanelManager::SetSidebarVisible(), yaze::editor::PanelManager::SetStoredSidePanelWidth(), SetupComponentCallbacks(), yaze::editor::UserSettings::Preferences::sidebar_active_category, yaze::editor::UserSettings::Preferences::sidebar_panel_expanded, yaze::editor::UserSettings::Preferences::sidebar_panel_width, yaze::editor::UserSettings::Preferences::sidebar_visible, SyncEditorContextForCategory(), user_settings_, and workspace_manager_.
Referenced by yaze::Controller::OnEntry().
| void yaze::editor::EditorManager::OpenEditorAndPanelsFromFlags | ( | const std::string & | editor_name, |
| const std::string & | panels_str ) |
Definition at line 1609 of file editor_manager.cc.
References yaze::editor::JumpToRoomRequestEvent::Create(), dashboard_panel_, event_bus_, yaze::editor::PanelManager::GetActiveCategory(), yaze::editor::PanelManager::GetAllPanelDescriptors(), GetCurrentEditorSet(), GetCurrentSessionId(), yaze::editor::PanelManager::GetPanelDescriptor(), yaze::editor::PanelManager::kDashboardCategory, yaze::kShow, LOG_DEBUG, LOG_INFO, LOG_WARN, panel_manager_, yaze::EventBus::Publish(), yaze::editor::PanelManager::SetActiveCategory(), yaze::editor::PanelManager::ShowPanel(), SwitchToEditor(), and ui_coordinator_.
Referenced by ProcessStartupActions(), and yaze::Controller::SetStartupEditor().
| void yaze::editor::EditorManager::ProcessStartupActions | ( | const AppConfig & | config | ) |
Definition at line 1809 of file editor_manager.cc.
References ApplyStartupVisibility(), yaze::editor::JumpToMapRequestEvent::Create(), yaze::editor::JumpToRoomRequestEvent::Create(), event_bus_, GetCurrentSessionId(), yaze::AppConfig::jump_to_map, yaze::AppConfig::jump_to_room, yaze::AppConfig::open_panels, OpenEditorAndPanelsFromFlags(), yaze::EventBus::Publish(), and yaze::AppConfig::startup_editor.
| void yaze::editor::EditorManager::ApplyStartupVisibility | ( | const AppConfig & | config | ) |
Definition at line 1729 of file editor_manager.cc.
References ApplyStartupVisibilityOverrides(), yaze::AppConfig::dashboard_mode, dashboard_mode_override_, yaze::AppConfig::sidebar_mode, sidebar_mode_override_, yaze::AppConfig::welcome_mode, and welcome_mode_override_.
Referenced by ProcessStartupActions().

| void yaze::editor::EditorManager::SetAssetLoadMode | ( | AssetLoadMode | mode | ) |
Definition at line 1774 of file editor_manager.cc.
References asset_load_mode_.
Referenced by yaze::Controller::LoadRomForTesting(), and yaze::Controller::OnEntry().
|
inline |
Definition at line 120 of file editor_manager.h.
References asset_load_mode_.
Referenced by yaze::Controller::LoadRomForTesting().
| absl::Status yaze::editor::EditorManager::Update | ( | ) |
Main update loop for the editor application.
DELEGATION FLOW:
Note: EditorManager retains the main loop to coordinate multi-session updates, but delegates specific drawing/state operations to specialized components.
Definition at line 2044 of file editor_manager.cc.
References DrawInterface(), ProcessInput(), status_, and UpdateEditorState().
Referenced by yaze::Controller::OnLoad().

| void yaze::editor::EditorManager::DrawMainMenuBar | ( | ) |
Definition at line 2304 of file editor_manager.cc.
References yaze::gui::GetPrimaryVec4(), yaze::gui::GetSurfaceContainerHighestVec4(), yaze::gui::GetSurfaceContainerHighVec4(), yaze::gui::GetTextSecondaryVec4(), ICON_MD_MENU, ICON_MD_MENU_OPEN, yaze::editor::PanelManager::IsSidebarVisible(), menu_orchestrator_, panel_manager_, yaze::editor::PanelManager::ToggleSidebarVisibility(), and ui_coordinator_.
Referenced by yaze::Controller::OnLoad().
| void yaze::editor::EditorManager::HandleHostVisibilityChanged | ( | bool | visible | ) |
Definition at line 2052 of file editor_manager.cc.
References yaze::gui::Animator::ClearAllAnimations(), yaze::gui::GetAnimator(), and right_panel_manager_.
Referenced by yaze::Controller::OnInput().

|
inline |
Definition at line 128 of file editor_manager.h.
References emulator_.
Referenced by yaze::app::GetGlobalEmulator(), main(), yaze::Controller::OnEntry(), and yaze::Controller::OnInput().
|
inline |
Definition at line 129 of file editor_manager.h.
References quit_.
Referenced by yaze::Controller::OnLoad().
|
inline |
Definition at line 130 of file editor_manager.h.
References version_.
Referenced by yaze::editor::PopupManager::DrawAboutPopup(), and yaze::editor::UICoordinator::DrawMenuBarExtras().
|
inline |
Definition at line 132 of file editor_manager.h.
References menu_builder_.
|
inline |
Definition at line 133 of file editor_manager.h.
References workspace_manager_.
Referenced by yaze::editor::UICoordinator::DrawWorkspacePresetDialogs().
|
inline |
Definition at line 134 of file editor_manager.h.
References right_panel_manager_.
Referenced by yaze::editor::UICoordinator::DrawAllUI(), yaze::editor::UICoordinator::DrawMenuBarExtras(), and yaze::editor::UICoordinator::DrawNotificationBell().
|
inline |
Definition at line 137 of file editor_manager.h.
References status_bar_.
|
inline |
Definition at line 138 of file editor_manager.h.
References toast_manager_.
Referenced by yaze::editor::PopupManager::DrawRomBackupManagerPopup(), yaze::editor::PopupManager::DrawRomWriteConfirmPopup(), yaze::editor::PopupManager::DrawWriteConflictWarningPopup(), and InitializeSubsystems().
|
inline |
Definition at line 139 of file editor_manager.h.
References panel_manager_.
|
inline |
Definition at line 140 of file editor_manager.h.
References panel_manager_.
Referenced by yaze::editor::PopupManager::DrawLayoutPresetsPopup(), yaze::editor::MenuOrchestrator::OnShowHexEditor(), and yaze::editor::MenuOrchestrator::OnShowMemoryEditor().
|
inline |
Definition at line 141 of file editor_manager.h.
References panel_manager_.
|
inline |
Definition at line 142 of file editor_manager.h.
References panel_host_.
|
inline |
Definition at line 143 of file editor_manager.h.
References panel_host_.
|
inline |
Definition at line 146 of file editor_manager.h.
References panel_manager_.
Referenced by yaze::editor::PopupManager::DrawLayoutPresetsPopup().
|
inline |
Definition at line 147 of file editor_manager.h.
References panel_manager_.
|
inline |
Definition at line 151 of file editor_manager.h.
References yaze::editor::LayoutCoordinator::GetLeftLayoutOffset(), and layout_coordinator_.
Referenced by yaze::editor::UICoordinator::DrawWelcomeScreen(), and yaze::Controller::OnLoad().

|
inline |
Definition at line 154 of file editor_manager.h.
References yaze::editor::LayoutCoordinator::GetRightLayoutOffset(), and layout_coordinator_.
Referenced by yaze::editor::UICoordinator::DrawWelcomeScreen(), and yaze::Controller::OnLoad().

|
inline |
Definition at line 157 of file editor_manager.h.
References yaze::editor::LayoutCoordinator::GetBottomLayoutOffset(), and layout_coordinator_.
Referenced by yaze::Controller::OnLoad().

| absl::Status yaze::editor::EditorManager::SetCurrentRom | ( | Rom * | rom | ) |
Definition at line 3543 of file editor_manager.cc.
References yaze::test::TestManager::Get(), GetCurrentRom(), RefreshResourceLabelProvider(), session_coordinator_, yaze::test::TestManager::SetCurrentRom(), and UpdateCurrentRomHash().
|
inlineoverridevirtual |
Implements yaze::editor::IEditorSwitcher.
Definition at line 162 of file editor_manager.h.
References session_coordinator_.
Referenced by yaze::editor::MenuOrchestrator::CanSaveRom(), CheckRomWritePolicy(), yaze::editor::UICoordinator::DrawGlobalSearch(), DrawInterface(), yaze::editor::UICoordinator::DrawMenuBarExtras(), yaze::editor::UICoordinator::DrawNotificationBell(), yaze::editor::PopupManager::DrawRomBackupManagerPopup(), yaze::editor::PopupManager::DrawRomInfoPopup(), yaze::editor::PopupManager::DrawSaveAsPopup(), yaze::editor::UICoordinator::DrawSessionButton(), yaze::editor::PopupManager::DrawSessionManagerPopup(), yaze::editor::UICoordinator::DrawWelcomeScreen(), yaze::Controller::GetCurrentRom(), GetRomBackups(), yaze::editor::MenuOrchestrator::GetRomFilename(), HandleSessionClosed(), HandleUIActionRequest(), yaze::editor::MenuOrchestrator::HasActiveRom(), LoadAssets(), LoadAssetsLazy(), LoadProjectWithRom(), LoadRom(), yaze::editor::MenuOrchestrator::OnCheckRomVersion(), yaze::editor::MenuOrchestrator::OnCreateBackup(), yaze::Controller::OnLoad(), yaze::editor::MenuOrchestrator::OnRunDataIntegrityCheck(), yaze::editor::MenuOrchestrator::OnTestSaveLoad(), yaze::editor::MenuOrchestrator::OnToggleAsarPatch(), yaze::editor::MenuOrchestrator::OnUpgradeRom(), yaze::editor::MenuOrchestrator::OnValidateRom(), OpenRomOrProject(), PruneRomBackups(), RefreshResourceLabelProvider(), RestoreRomBackup(), RunEmulator(), SaveProject(), SaveRom(), SaveRomAs(), SetCurrentRom(), SetupDialogCallbacks(), yaze::editor::UICoordinator::ShouldShowActivityBar(), ShowProjectManagement(), UpdateCurrentRomHash(), UpdateEditorState(), and UpdateSystemUIs().
|
inline |
Definition at line 166 of file editor_manager.h.
References session_coordinator_.
|
inline |
Definition at line 170 of file editor_manager.h.
References session_coordinator_.
Referenced by DrawInterface(), DrawSecondaryWindows(), InitializeSubsystems(), LoadAssets(), LoadAssetsLazy(), LoadProjectWithRom(), LoadRom(), OpenEditorAndPanelsFromFlags(), OpenRomOrProject(), overworld(), ResolveEditorForCategory(), SaveProject(), SaveRom(), SetupSidebarCallbacks(), and UpdateEditorState().
|
inline |
Definition at line 174 of file editor_manager.h.
References current_editor_.
Referenced by yaze::editor::PopupManager::DrawLayoutPresetsPopup(), HandleUIActionRequest(), yaze::editor::MenuOrchestrator::HasCurrentEditor(), yaze::editor::MenuOrchestrator::OnCopy(), yaze::editor::MenuOrchestrator::OnCut(), yaze::editor::MenuOrchestrator::OnFind(), yaze::Controller::OnLoad(), yaze::editor::MenuOrchestrator::OnPaste(), yaze::editor::MenuOrchestrator::OnRedo(), and yaze::editor::MenuOrchestrator::OnUndo().
|
inline |
Definition at line 175 of file editor_manager.h.
References yaze::editor::RomLifecycleManager::current_rom_hash(), and rom_lifecycle_.
Referenced by yaze::editor::PopupManager::DrawRomInfoPopup(), and yaze::editor::PopupManager::DrawRomWriteConfirmPopup().

|
inline |
Definition at line 178 of file editor_manager.h.
References current_project_, yaze::project::RomMetadata::role, and yaze::project::YazeProject::rom_metadata.
Referenced by yaze::editor::PopupManager::DrawRomWriteConfirmPopup().
|
inline |
Definition at line 181 of file editor_manager.h.
References current_project_, yaze::project::YazeProject::rom_metadata, and yaze::project::RomMetadata::write_policy.
Referenced by yaze::editor::PopupManager::DrawRomWriteConfirmPopup().
|
inline |
Definition at line 184 of file editor_manager.h.
References current_project_, yaze::project::RomMetadata::expected_hash, and yaze::project::YazeProject::rom_metadata.
Referenced by yaze::editor::PopupManager::DrawRomWriteConfirmPopup().
|
inline |
Definition at line 187 of file editor_manager.h.
References yaze::editor::RomLifecycleManager::IsRomHashMismatch(), and rom_lifecycle_.
Referenced by yaze::editor::PopupManager::DrawRomInfoPopup(), and LoadProjectWithRom().

| std::vector< RomFileManager::BackupEntry > yaze::editor::EditorManager::GetRomBackups | ( | ) | const |
Definition at line 3581 of file editor_manager.cc.
References GetCurrentRom(), yaze::editor::RomLifecycleManager::GetRomBackups(), and rom_lifecycle_.
Referenced by yaze::editor::PopupManager::DrawRomBackupManagerPopup().

| absl::Status yaze::editor::EditorManager::RestoreRomBackup | ( | const std::string & | backup_path | ) |
Definition at line 3585 of file editor_manager.cc.
References yaze::Rom::filename(), GetCurrentRom(), LoadAssetsForMode(), yaze::editor::RomFileManager::LoadRom(), ResetAssetState(), RETURN_IF_ERROR, rom_file_manager_, session_coordinator_, yaze::Rom::set_filename(), and UpdateCurrentRomHash().
Referenced by yaze::editor::PopupManager::DrawRomBackupManagerPopup().
| absl::Status yaze::editor::EditorManager::PruneRomBackups | ( | ) |
Definition at line 3605 of file editor_manager.cc.
References GetCurrentRom(), yaze::editor::RomLifecycleManager::PruneRomBackups(), and rom_lifecycle_.
Referenced by yaze::editor::PopupManager::DrawRomBackupManagerPopup().

|
inline |
Definition at line 193 of file editor_manager.h.
References yaze::editor::RomLifecycleManager::ConfirmRomWrite(), and rom_lifecycle_.
Referenced by yaze::editor::PopupManager::DrawRomWriteConfirmPopup().

|
inline |
Definition at line 194 of file editor_manager.h.
References yaze::editor::RomLifecycleManager::CancelRomWriteConfirm(), and rom_lifecycle_.
Referenced by yaze::editor::PopupManager::DrawRomWriteConfirmPopup().

|
inline |
Definition at line 195 of file editor_manager.h.
References yaze::editor::RomLifecycleManager::IsRomWriteConfirmPending(), and rom_lifecycle_.

|
inline |
Definition at line 200 of file editor_manager.h.
References yaze::editor::RomLifecycleManager::pending_write_conflicts(), and rom_lifecycle_.
Referenced by yaze::editor::PopupManager::DrawWriteConflictWarningPopup().

|
inline |
Definition at line 203 of file editor_manager.h.
References yaze::editor::RomLifecycleManager::BypassWriteConflictOnce(), and rom_lifecycle_.
Referenced by yaze::editor::PopupManager::DrawWriteConflictWarningPopup().

|
inline |
Definition at line 204 of file editor_manager.h.
References yaze::editor::RomLifecycleManager::ClearPendingWriteConflicts(), and rom_lifecycle_.
Referenced by yaze::editor::PopupManager::DrawWriteConflictWarningPopup().

|
inlineoverridevirtual |
Implements yaze::editor::ISessionConfigurator.
Definition at line 207 of file editor_manager.h.
References current_editor_, right_panel_manager_, yaze::editor::ContentRegistry::Context::SetCurrentEditor(), and yaze::editor::Editor::type().
Referenced by SyncEditorContextForCategory().

|
inline |
Definition at line 216 of file editor_manager.h.
References session_coordinator_.
Referenced by ApplyLayoutPreset(), ApplyLayoutProfile(), CaptureTemporaryLayoutSnapshot(), ConfigureEditorDependencies(), DrawInterface(), yaze::editor::PopupManager::DrawSessionManagerPopup(), InitializeSubsystems(), LoadProjectWithRom(), LoadRom(), yaze::editor::MenuOrchestrator::OnShowHexEditor(), yaze::editor::MenuOrchestrator::OnShowMemoryEditor(), OpenEditorAndPanelsFromFlags(), OpenRomOrProject(), ProcessStartupActions(), ResetCurrentEditorLayout(), and RestoreTemporaryLayoutSnapshot().
|
inline |
Definition at line 220 of file editor_manager.h.
References ui_coordinator_.
Referenced by yaze::Controller::OnLoad(), yaze::editor::MenuOrchestrator::OnShowAllWindows(), yaze::editor::MenuOrchestrator::OnShowCommandPalette(), yaze::editor::MenuOrchestrator::OnShowEditorSelection(), yaze::editor::MenuOrchestrator::OnShowGlobalSearch(), yaze::editor::MenuOrchestrator::OnShowPanelBrowser(), yaze::editor::MenuOrchestrator::OnShowPanelFinder(), yaze::editor::MenuOrchestrator::OnShowPerformanceDashboard(), yaze::editor::MenuOrchestrator::OnShowResourceLabelManager(), yaze::editor::MenuOrchestrator::OnShowSessionSwitcher(), and yaze::editor::MenuOrchestrator::OnShowWelcomeScreen().
| yaze::zelda3::Overworld * yaze::editor::EditorManager::overworld | ( | ) | const |
Definition at line 3536 of file editor_manager.cc.
References GetCurrentEditorSet().
Referenced by yaze::Controller::overworld().

| size_t yaze::editor::EditorManager::GetCurrentSessionIndex | ( | ) | const |
Definition at line 3645 of file editor_manager.cc.
References session_coordinator_.
Referenced by GetCurrentFeatureFlags().
|
inline |
Definition at line 227 of file editor_manager.h.
References yaze::editor::RomSession::feature_flags, yaze::core::FeatureFlags::get(), GetCurrentSessionIndex(), and session_coordinator_.

|
inline |
Definition at line 240 of file editor_manager.h.
References yaze::editor::UserSettings::Preferences::font_global_scale, LOG_WARN, yaze::editor::UserSettings::prefs(), yaze::editor::UserSettings::Save(), and user_settings_.
Referenced by yaze::editor::PopupManager::DrawDisplaySettingsPopup().

|
inline |
Definition at line 251 of file editor_manager.h.
References yaze::editor::WorkspaceManager::RefreshPresets(), and workspace_manager_.
Referenced by yaze::editor::UICoordinator::DrawWorkspacePresetDialogs().

|
inline |
Definition at line 252 of file editor_manager.h.
References yaze::editor::WorkspaceManager::SaveWorkspacePreset(), and workspace_manager_.
Referenced by yaze::editor::UICoordinator::DrawWorkspacePresetDialogs().

|
inline |
Definition at line 255 of file editor_manager.h.
References yaze::editor::WorkspaceManager::LoadWorkspacePreset(), and workspace_manager_.
Referenced by yaze::editor::UICoordinator::DrawWorkspacePresetDialogs().

|
overridevirtual |
Implements yaze::editor::IEditorSwitcher.
Definition at line 3684 of file editor_manager.cc.
References editor_activator_, EnsureEditorAssetsLoaded(), yaze::editor::kAgent, yaze::editor::kEditorNames, yaze::editor::kError, yaze::editor::ToastManager::Show(), yaze::editor::EditorActivator::SwitchToEditor(), and toast_manager_.
Referenced by HandleUIActionRequest(), yaze::editor::UICoordinator::InitializeCommandPalette(), yaze::editor::MenuOrchestrator::OnShowAssemblyEditor(), yaze::editor::MenuOrchestrator::OnShowSettings(), yaze::editor::MenuOrchestrator::OnSwitchToEditor(), OpenEditorAndPanelsFromFlags(), and SetupSidebarCallbacks().

|
overridevirtual |
Implements yaze::editor::IEditorSwitcher.
Definition at line 3707 of file editor_manager.cc.
References yaze::editor::kEditor, and ui_coordinator_.
|
static |
Definition at line 368 of file editor_manager.cc.
References yaze::editor::EditorRegistry::IsPanelBasedEditor().
Referenced by DrawInterface(), and yaze::editor::SessionCoordinator::UpdateSessions().

|
inline |
Definition at line 266 of file editor_manager.h.
References ui_coordinator_.
|
inline |
Definition at line 269 of file editor_manager.h.
References ui_coordinator_.
| absl::Status yaze::editor::EditorManager::EnsureEditorAssetsLoaded | ( | EditorType | type | ) |
Definition at line 1982 of file editor_manager.cc.
References asset_load_mode_, EditorInitRequiresGameData(), EditorRequiresGameData(), yaze::editor::EditorTypeIndex(), EnsureGameDataLoaded(), GetEditorByType(), InitializeEditorForType(), yaze::kLazy, yaze::editor::kUnknown, MarkEditorInitialized(), MarkEditorLoaded(), RETURN_IF_ERROR, and session_coordinator_.
Referenced by InitializeSubsystems(), SaveRom(), and SwitchToEditor().
| absl::Status yaze::editor::EditorManager::EnsureGameDataLoaded | ( | ) |
Definition at line 1948 of file editor_manager.cc.
References yaze::gfx::Arena::Get(), yaze::editor::kDungeon, yaze::editor::kGraphics, yaze::editor::kMessage, yaze::editor::kOverworld, yaze::editor::kPalette, yaze::editor::kScreen, yaze::editor::kSprite, yaze::zelda3::LoadGameData(), yaze::gfx::Arena::mutable_gfx_sheets(), RETURN_IF_ERROR, session_coordinator_, and yaze::editor::ContentRegistry::Context::SetGameData().
Referenced by EnsureEditorAssetsLoaded().

| void yaze::editor::EditorManager::CreateNewSession | ( | ) |
Definition at line 3612 of file editor_manager.cc.
References session_coordinator_.
Referenced by yaze::editor::PopupManager::DrawSessionManagerPopup().
| void yaze::editor::EditorManager::DuplicateCurrentSession | ( | ) |
Definition at line 3619 of file editor_manager.cc.
References session_coordinator_.
| void yaze::editor::EditorManager::CloseCurrentSession | ( | ) |
Definition at line 3625 of file editor_manager.cc.
References session_coordinator_.
| void yaze::editor::EditorManager::RemoveSession | ( | size_t | index | ) |
Definition at line 3631 of file editor_manager.cc.
References session_coordinator_.
Referenced by yaze::editor::PopupManager::DrawSessionManagerPopup().
| void yaze::editor::EditorManager::SwitchToSession | ( | size_t | index | ) |
Definition at line 3637 of file editor_manager.cc.
References session_coordinator_.
Referenced by yaze::editor::UICoordinator::DrawGlobalSearch(), yaze::editor::UICoordinator::DrawSessionButton(), and yaze::editor::PopupManager::DrawSessionManagerPopup().
| size_t yaze::editor::EditorManager::GetActiveSessionCount | ( | ) | const |
Definition at line 3671 of file editor_manager.cc.
References session_coordinator_.
Referenced by yaze::editor::PopupManager::DrawSessionManagerPopup().
|
inline |
Definition at line 289 of file editor_manager.h.
References yaze::editor::WorkspaceManager::SaveWorkspaceLayout(), and workspace_manager_.
Referenced by yaze::editor::MenuOrchestrator::OnSaveWorkspaceLayout().

|
inline |
Definition at line 290 of file editor_manager.h.
References yaze::editor::WorkspaceManager::LoadWorkspaceLayout(), and workspace_manager_.
Referenced by yaze::editor::MenuOrchestrator::OnLoadWorkspaceLayout().

| void yaze::editor::EditorManager::ResetWorkspaceLayout | ( | ) |
Definition at line 372 of file editor_manager.cc.
References layout_coordinator_, and yaze::editor::LayoutCoordinator::ResetWorkspaceLayout().
Referenced by HandleUIActionRequest(), Initialize(), and yaze::editor::MenuOrchestrator::OnResetWorkspaceLayout().

|
inline |
Definition at line 292 of file editor_manager.h.
References ui_coordinator_.
|
inline |
Definition at line 296 of file editor_manager.h.
References ui_coordinator_.
Referenced by yaze::editor::MenuOrchestrator::OnHideAllWindows().
|
inline |
Definition at line 302 of file editor_manager.h.
References yaze::editor::WindowDelegate::LoadDeveloperLayout(), and window_delegate_.

|
inline |
Definition at line 303 of file editor_manager.h.
References yaze::editor::WindowDelegate::LoadDesignerLayout(), and window_delegate_.

|
inline |
Definition at line 304 of file editor_manager.h.
References yaze::editor::WindowDelegate::LoadModderLayout(), and window_delegate_.

| void yaze::editor::EditorManager::ApplyLayoutPreset | ( | const std::string & | preset_name | ) |
Definition at line 376 of file editor_manager.cc.
References yaze::editor::LayoutCoordinator::ApplyLayoutPreset(), GetCurrentSessionId(), and layout_coordinator_.
Referenced by yaze::editor::MenuOrchestrator::AddWindowMenuItems(), yaze::editor::UICoordinator::InitializeCommandPalette(), InitializeSubsystems(), yaze::editor::MenuOrchestrator::OnLoadDesignerLayout(), yaze::editor::MenuOrchestrator::OnLoadDeveloperLayout(), and yaze::editor::MenuOrchestrator::OnLoadModderLayout().

| bool yaze::editor::EditorManager::ApplyLayoutProfile | ( | const std::string & | profile_id | ) |
Definition at line 380 of file editor_manager.cc.
References current_editor_, GetCurrentSessionId(), yaze::editor::RightPanelManager::GetDefaultPanelWidth(), yaze::editor::RightPanelManager::kAgentChat, yaze::editor::kSuccess, yaze::editor::kUnknown, yaze::editor::LayoutProfile::label, layout_manager_, yaze::editor::LayoutProfile::open_agent_chat, right_panel_manager_, yaze::editor::ToastManager::Show(), toast_manager_, and yaze::editor::Editor::type().
Referenced by yaze::editor::MenuOrchestrator::AddLayoutMenuItems(), and yaze::editor::MenuOrchestrator::AddWindowMenuItems().

| void yaze::editor::EditorManager::CaptureTemporaryLayoutSnapshot | ( | ) |
Definition at line 410 of file editor_manager.cc.
References GetCurrentSessionId(), yaze::editor::kInfo, layout_manager_, yaze::editor::ToastManager::Show(), and toast_manager_.
Referenced by yaze::editor::MenuOrchestrator::AddWindowMenuItems().

| void yaze::editor::EditorManager::RestoreTemporaryLayoutSnapshot | ( | bool | clear_after_restore = false | ) |
Definition at line 418 of file editor_manager.cc.
References GetCurrentSessionId(), yaze::editor::kSuccess, yaze::editor::kWarning, layout_manager_, yaze::editor::ToastManager::Show(), and toast_manager_.
Referenced by yaze::editor::MenuOrchestrator::AddWindowMenuItems().

| void yaze::editor::EditorManager::ClearTemporaryLayoutSnapshot | ( | ) |
Definition at line 433 of file editor_manager.cc.
References yaze::editor::kInfo, layout_manager_, yaze::editor::ToastManager::Show(), and toast_manager_.
Referenced by yaze::editor::MenuOrchestrator::AddWindowMenuItems().

| void yaze::editor::EditorManager::ResetCurrentEditorLayout | ( | ) |
Definition at line 454 of file editor_manager.cc.
References current_editor_, GetCurrentSessionId(), yaze::editor::kWarning, layout_coordinator_, yaze::editor::LayoutCoordinator::ResetCurrentEditorLayout(), yaze::editor::ToastManager::Show(), toast_manager_, and yaze::editor::Editor::type().
Referenced by yaze::editor::MenuOrchestrator::AddLayoutMenuItems(), and yaze::editor::MenuOrchestrator::AddWindowMenuItems().

| std::string yaze::editor::EditorManager::GenerateUniqueEditorTitle | ( | EditorType | type, |
| size_t | session_index ) const |
Definition at line 3676 of file editor_manager.cc.
References yaze::editor::kEditorNames, and session_coordinator_.
| bool yaze::editor::EditorManager::HasDuplicateSession | ( | const std::string & | filepath | ) |
Definition at line 3739 of file editor_manager.cc.
References session_coordinator_.
| void yaze::editor::EditorManager::RenameSession | ( | size_t | index, |
| const std::string & | new_name ) |
|
inline |
Definition at line 319 of file editor_manager.h.
References quit_.
Referenced by yaze::editor::MenuOrchestrator::OnQuit().
|
inline |
Definition at line 323 of file editor_manager.h.
References deferred_actions_, and pending_editor_deferred_actions_.
Referenced by InitializeSubsystems(), and yaze::editor::MenuOrchestrator::OnResetWorkspaceLayout().
| EditorManager::UiSyncState yaze::editor::EditorManager::GetUiSyncStateSnapshot | ( | ) | const |
Definition at line 3650 of file editor_manager.cc.
References yaze::editor::EditorManager::UiSyncState::frame_id, layout_coordinator_, layout_manager_, yaze::editor::EditorManager::UiSyncState::layout_rebuild_pending, yaze::editor::EditorManager::UiSyncState::pending_editor_actions, pending_editor_deferred_actions_, yaze::editor::EditorManager::UiSyncState::pending_layout_actions, yaze::editor::LayoutCoordinator::PendingDeferredActionCount(), and ui_sync_frame_id_.
Referenced by yaze::Controller::DoRender().

|
overridevirtual |
Implements yaze::editor::ISessionConfigurator.
Definition at line 3715 of file editor_manager.cc.
References ConfigureEditorDependencies(), yaze::editor::RomSession::editors, yaze::editor::RomSession::rom, yaze::editor::EditorSet::session_id(), yaze::editor::EditorSet::set_user_settings(), and user_settings_.

|
inline |
Definition at line 342 of file editor_manager.h.
References ui_coordinator_.
Referenced by yaze::editor::MenuOrchestrator::OnShowImGuiDemo().
|
inline |
Definition at line 346 of file editor_manager.h.
References ui_coordinator_.
Referenced by yaze::editor::MenuOrchestrator::OnShowImGuiMetrics().
|
inline |
Definition at line 361 of file editor_manager.h.
|
inline |
Definition at line 362 of file editor_manager.h.
| absl::Status yaze::editor::EditorManager::LoadRom | ( | ) |
Load a ROM file into a new or existing session.
DELEGATION:
FLOW:
Definition at line 2470 of file editor_manager.cc.
References ApplyDefaultBackupPolicy(), yaze::zelda3::CustomObjectManager::ClearObjectFileMap(), yaze::core::RomSettings::ClearOverrides(), ConfigureEditorDependencies(), yaze::test::TestManager::Get(), yaze::core::RomSettings::Get(), yaze::zelda3::CustomObjectManager::Get(), GetCurrentEditorSet(), GetCurrentRom(), GetCurrentSessionId(), yaze::project::RecentFilesManager::GetInstance(), yaze::editor::kError, yaze::editor::kWarning, LoadAssetsForMode(), yaze::editor::RomFileManager::LoadRom(), yaze::util::MakeRomFileDialogOptions(), yaze::editor::RomLoadOptionsDialog::Open(), OpenRomOrProject(), RefreshResourceLabelProvider(), RETURN_IF_ERROR, rom_file_manager_, rom_load_options_dialog_, session_coordinator_, yaze::test::TestManager::SetCurrentRom(), yaze::editor::ToastManager::Show(), show_rom_load_options_, yaze::util::FileDialogWrapper::ShowOpenFileDialog(), yaze::util::FileDialogWrapper::ShowOpenFileDialogAsync(), toast_manager_, ui_coordinator_, and UpdateCurrentRomHash().
Referenced by CreateNewProject(), HandleUIActionRequest(), yaze::editor::MenuOrchestrator::OnOpenRom(), SetupWelcomeScreenCallbacks(), and yaze::editor::UICoordinator::UICoordinator().
| absl::Status yaze::editor::EditorManager::SaveRom | ( | ) |
Definition at line 2797 of file editor_manager.cc.
References yaze::core::HackManifest::AnalyzePcWriteRanges(), yaze::editor::RomLifecycleManager::ApplyDefaultBackupPolicy(), yaze::editor::UserSettings::Preferences::backup_before_save, yaze::project::WorkspaceSettings::backup_keep_daily, yaze::project::WorkspaceSettings::backup_keep_daily_days, yaze::project::WorkspaceSettings::backup_on_save, yaze::project::WorkspaceSettings::backup_retention_count, yaze::editor::RomLifecycleManager::CancelRomWriteConfirm(), CheckOracleRomSafetyPreSave(), CheckRomWritePolicy(), yaze::editor::RomLifecycleManager::ClearPotItemBypass(), yaze::rom::ComputeDiffRanges(), yaze::editor::RomLifecycleManager::ConsumeWriteConflictBypass(), current_project_, yaze::core::FeatureFlags::Flags::dungeon, EnsureEditorAssetsLoaded(), yaze::gfx::Arena::Get(), yaze::core::FeatureFlags::get(), yaze::project::YazeProject::GetAbsolutePath(), GetCurrentEditorSet(), GetCurrentRom(), yaze::project::YazeProject::hack_manifest, yaze::editor::RomLifecycleManager::HasPendingPotItemSaveConfirmation(), yaze::editor::RomLifecycleManager::IsRomWriteConfirmPending(), yaze::editor::kDungeon, yaze::editor::PopupID::kDungeonPotItemSaveConfirm, yaze::editor::kMessage, yaze::editor::kOverworld, yaze::core::FeatureFlags::Flags::Dungeon::kSavePotItems, yaze::editor::kScreen, yaze::editor::kWarning, yaze::editor::PopupID::kWriteConflictWarning, yaze::core::HackManifest::loaded(), LOG_DEBUG, yaze::editor::RomLifecycleManager::pending_pot_item_unloaded_rooms(), yaze::editor::RomLifecycleManager::pending_write_conflicts(), popup_manager_, yaze::editor::UserSettings::prefs(), yaze::project::YazeProject::project_opened(), RETURN_IF_ERROR, yaze::project::YazeProject::rom_backup_folder, rom_file_manager_, rom_lifecycle_, yaze::zelda3::SaveAllGraphicsData(), yaze::editor::RomFileManager::SaveRom(), yaze::editor::RomLifecycleManager::SetPendingWriteConflicts(), yaze::editor::RomLifecycleManager::SetPotItemConfirmPending(), yaze::editor::RomLifecycleManager::ShouldBypassPotItemConfirm(), yaze::editor::RomLifecycleManager::ShouldBypassWriteConflict(), yaze::editor::RomLifecycleManager::ShouldSuppressPotItemSave(), yaze::editor::ToastManager::Show(), toast_manager_, user_settings_, and yaze::project::YazeProject::workspace_settings.
Referenced by yaze::editor::PopupManager::DrawRomWriteConfirmPopup(), yaze::editor::PopupManager::DrawWriteConflictWarningPopup(), HandleUIActionRequest(), yaze::editor::MenuOrchestrator::OnSaveRom(), ResolvePotItemSaveConfirmation(), and SaveRomAs().
| absl::Status yaze::editor::EditorManager::SaveRomAs | ( | const std::string & | filename | ) |
Definition at line 2967 of file editor_manager.cc.
References GetCurrentRom(), yaze::project::RecentFilesManager::GetInstance(), RETURN_IF_ERROR, rom_file_manager_, SaveRom(), yaze::editor::RomFileManager::SaveRomAs(), and session_coordinator_.
Referenced by yaze::editor::PopupManager::DrawSaveAsPopup().

| absl::Status yaze::editor::EditorManager::OpenRomOrProject | ( | const std::string & | filename | ) |
Definition at line 2996 of file editor_manager.cc.
References yaze::project::YazeProject::code_folder, ConfigureEditorDependencies(), current_project_, yaze::editor::RomSession::feature_flags, yaze::project::YazeProject::feature_flags, yaze::test::TestManager::Get(), yaze::core::FeatureFlags::get(), yaze::project::YazeProject::GetAbsolutePath(), GetCurrentEditorSet(), GetCurrentRom(), GetCurrentSessionId(), yaze::editor::PanelManager::kDashboardCategory, LoadAssetsForMode(), LoadProjectWithRom(), yaze::editor::RomFileManager::LoadRom(), LOG_DEBUG, LOG_INFO, yaze::project::YazeProject::Open(), panel_manager_, RefreshResourceLabelProvider(), RETURN_IF_ERROR, rom_file_manager_, session_coordinator_, yaze::editor::PanelManager::SetActiveCategory(), yaze::test::TestManager::SetCurrentRom(), yaze::editor::PanelManager::SetFileBrowserPath(), SyncLayoutScopeFromCurrentProject(), ui_coordinator_, UpdateCurrentRomHash(), and version_manager_.
Referenced by yaze::editor::UICoordinator::DrawGlobalSearch(), yaze::editor::PopupManager::DrawRomBackupManagerPopup(), Initialize(), yaze::editor::UICoordinator::InitializeCommandPalette(), LoadRom(), yaze::Controller::LoadRomForTesting(), SetupWelcomeScreenCallbacks(), and yaze::editor::UICoordinator::UICoordinator().
| absl::Status yaze::editor::EditorManager::CreateNewProject | ( | const std::string & | template_name = "Basic ROM Hack" | ) |
Definition at line 3111 of file editor_manager.cc.
References yaze::editor::ProjectManager::CreateNewProject(), current_project_, yaze::editor::ProjectManager::GetCurrentProject(), LoadRom(), project_manager_, SyncLayoutScopeFromCurrentProject(), and ui_coordinator_.
Referenced by yaze::editor::PopupManager::DrawNewProjectPopup(), yaze::editor::MenuOrchestrator::OnCreateProject(), SaveProject(), SetupWelcomeScreenCallbacks(), and yaze::editor::UICoordinator::UICoordinator().

| absl::Status yaze::editor::EditorManager::OpenProject | ( | ) |
Definition at line 3131 of file editor_manager.cc.
References current_project_, yaze::editor::kWarning, LoadProjectWithRom(), yaze::project::YazeProject::Open(), popup_manager_, yaze::platform::ios::PostOverlayCommand(), RETURN_IF_ERROR, yaze::editor::ToastManager::Show(), yaze::util::FileDialogWrapper::ShowOpenFileDialog(), SyncLayoutScopeFromCurrentProject(), toast_manager_, yaze::project::YazeProject::Validate(), and version_manager_.
Referenced by yaze::editor::MenuOrchestrator::OnOpenProject(), SetupWelcomeScreenCallbacks(), and yaze::editor::UICoordinator::UICoordinator().
| absl::Status yaze::editor::EditorManager::SaveProject | ( | ) |
Definition at line 3414 of file editor_manager.cc.
References yaze::editor::UserSettings::Preferences::autosave_enabled, yaze::project::WorkspaceSettings::autosave_enabled, yaze::editor::UserSettings::Preferences::autosave_interval, yaze::project::WorkspaceSettings::autosave_interval_secs, yaze::editor::UserSettings::Preferences::backup_before_save, yaze::project::WorkspaceSettings::backup_on_save, CreateNewProject(), current_project_, yaze::project::YazeProject::feature_flags, yaze::editor::UserSettings::Preferences::font_global_scale, yaze::project::WorkspaceSettings::font_global_scale, GetCurrentEditorSet(), GetCurrentRom(), yaze::project::RecentFilesManager::GetInstance(), yaze::editor::UserSettings::prefs(), yaze::project::YazeProject::project_opened(), yaze::project::WorkspaceSettings::recent_files, yaze::project::YazeProject::Save(), session_coordinator_, user_settings_, and yaze::project::YazeProject::workspace_settings.
Referenced by InitializeSubsystems(), and yaze::editor::MenuOrchestrator::OnSaveProject().
| absl::Status yaze::editor::EditorManager::SaveProjectAs | ( | ) |
Definition at line 3471 of file editor_manager.cc.
References current_project_, yaze::project::YazeProject::filepath, yaze::project::YazeProject::GetDisplayName(), yaze::project::RecentFilesManager::GetInstance(), yaze::editor::kError, yaze::editor::kSuccess, yaze::project::YazeProject::project_opened(), yaze::project::YazeProject::Save(), yaze::editor::ToastManager::Show(), yaze::util::FileDialogWrapper::ShowSaveFileDialog(), SyncLayoutScopeFromCurrentProject(), and toast_manager_.
Referenced by yaze::editor::MenuOrchestrator::OnSaveProjectAs().
|
inline |
Definition at line 379 of file editor_manager.h.
References yaze::editor::RomLifecycleManager::HasPendingPotItemSaveConfirmation(), and rom_lifecycle_.

|
inline |
Definition at line 382 of file editor_manager.h.
References yaze::editor::RomLifecycleManager::pending_pot_item_unloaded_rooms(), and rom_lifecycle_.
Referenced by yaze::editor::PopupManager::DrawDungeonPotItemSaveConfirmPopup().

|
inline |
Definition at line 385 of file editor_manager.h.
References yaze::editor::RomLifecycleManager::pending_pot_item_total_rooms(), and rom_lifecycle_.
Referenced by yaze::editor::PopupManager::DrawDungeonPotItemSaveConfirmPopup().

| void yaze::editor::EditorManager::ResolvePotItemSaveConfirmation | ( | PotItemSaveDecision | decision | ) |
Definition at line 3448 of file editor_manager.cc.
References kCancel, yaze::editor::kError, yaze::editor::kInfo, yaze::editor::kSuccess, yaze::editor::RomLifecycleManager::ResolvePotItemSaveConfirmation(), rom_lifecycle_, SaveRom(), yaze::editor::ToastManager::Show(), and toast_manager_.
Referenced by yaze::editor::PopupManager::DrawDungeonPotItemSaveConfirmPopup().

| absl::Status yaze::editor::EditorManager::ImportProject | ( | const std::string & | project_path | ) |
Definition at line 3515 of file editor_manager.cc.
References current_project_, yaze::editor::ProjectManager::GetCurrentProject(), yaze::editor::ProjectManager::ImportProject(), project_manager_, RETURN_IF_ERROR, and SyncLayoutScopeFromCurrentProject().

| absl::Status yaze::editor::EditorManager::RepairCurrentProject | ( | ) |
Definition at line 3524 of file editor_manager.cc.
References current_project_, yaze::editor::kSuccess, yaze::project::YazeProject::project_opened(), yaze::project::YazeProject::RepairProject(), RETURN_IF_ERROR, yaze::editor::ToastManager::Show(), and toast_manager_.

| absl::Status yaze::editor::EditorManager::LoadProjectWithRom | ( | ) |
Definition at line 3174 of file editor_manager.cc.
References yaze::editor::UserSettings::Preferences::autosave_enabled, yaze::project::WorkspaceSettings::autosave_enabled, yaze::editor::UserSettings::Preferences::autosave_interval, yaze::project::WorkspaceSettings::autosave_interval_secs, yaze::editor::UserSettings::Preferences::backup_before_save, yaze::project::WorkspaceSettings::backup_keep_daily, yaze::project::WorkspaceSettings::backup_keep_daily_days, yaze::project::WorkspaceSettings::backup_on_save, yaze::project::WorkspaceSettings::backup_retention_count, yaze::zelda3::CustomObjectManager::ClearObjectFileMap(), yaze::project::YazeProject::code_folder, ConfigureEditorDependencies(), current_project_, yaze::project::YazeProject::custom_object_files, yaze::project::YazeProject::custom_objects_folder, yaze::editor::RomSession::feature_flags, yaze::project::YazeProject::feature_flags, yaze::project::YazeProject::filepath, yaze::editor::UserSettings::Preferences::font_global_scale, yaze::project::WorkspaceSettings::font_global_scale, yaze::test::TestManager::Get(), yaze::core::FeatureFlags::get(), yaze::core::RomSettings::Get(), yaze::zelda3::CustomObjectManager::Get(), yaze::zelda3::DrawRoutineRegistry::Get(), yaze::project::YazeProject::GetAbsolutePath(), GetCurrentEditorSet(), GetCurrentRom(), GetCurrentSessionId(), yaze::project::YazeProject::GetDisplayName(), yaze::project::RecentFilesManager::GetInstance(), yaze::zelda3::CustomObjectManager::Initialize(), yaze::Rom::is_loaded(), IsRomHashMismatch(), yaze::editor::PanelManager::kDashboardCategory, yaze::core::FeatureFlags::Flags::kEnableCustomObjects, yaze::editor::kError, yaze::editor::kInfo, yaze::editor::kSuccess, yaze::editor::kWarning, LoadAssetsForMode(), LoadProjectWithRom(), yaze::editor::RomFileManager::LoadRom(), LOG_DEBUG, LOG_INFO, LOG_WARN, yaze::util::MakeRomFileDialogOptions(), panel_manager_, yaze::editor::UserSettings::prefs(), project_management_panel_, yaze::zelda3::DrawRoutineRegistry::RefreshFeatureFlagMappings(), RefreshResourceLabelProvider(), RETURN_IF_ERROR, yaze::project::YazeProject::rom_address_overrides, yaze::project::YazeProject::rom_backup_folder, rom_file_manager_, yaze::project::YazeProject::rom_filename, yaze::project::YazeProject::Save(), session_coordinator_, yaze::editor::PanelManager::SetActiveCategory(), yaze::core::RomSettings::SetAddressOverrides(), yaze::editor::RomFileManager::SetBackupBeforeSave(), yaze::editor::RomFileManager::SetBackupFolder(), yaze::editor::RomFileManager::SetBackupKeepDaily(), yaze::editor::RomFileManager::SetBackupKeepDailyDays(), yaze::editor::RomFileManager::SetBackupRetentionCount(), yaze::editor::ContentRegistry::Context::SetCurrentProject(), yaze::test::TestManager::SetCurrentRom(), yaze::editor::PanelManager::SetFileBrowserPath(), yaze::zelda3::CustomObjectManager::SetObjectFileMap(), yaze::editor::ToastManager::Show(), yaze::util::FileDialogWrapper::ShowOpenFileDialog(), yaze::util::FileDialogWrapper::ShowOpenFileDialogAsync(), toast_manager_, ui_coordinator_, UpdateCurrentRomHash(), user_settings_, version_manager_, and yaze::project::YazeProject::workspace_settings.
Referenced by InitializeSubsystems(), LoadProjectWithRom(), OpenProject(), and OpenRomOrProject().
|
inline |
Definition at line 394 of file editor_manager.h.
References current_project_.
Referenced by yaze::editor::PopupManager::DrawRomBackupManagerPopup(), yaze::editor::PopupManager::DrawRomInfoPopup(), yaze::editor::MenuOrchestrator::HasProjectFile(), and yaze::editor::UICoordinator::UICoordinator().
|
inline |
Definition at line 395 of file editor_manager.h.
References current_project_.
|
inline |
Definition at line 398 of file editor_manager.h.
References version_manager_.
| void yaze::editor::EditorManager::ShowProjectManagement | ( | ) |
Injects dependencies into all editors within an EditorSet.
This function is called whenever a new session is created or a ROM is loaded into an existing session. It configures the EditorDependencies struct with pointers to all the managers and services that editors need, then applies them to the editor set.
| editor_set | The set of editors to configure |
| rom | The ROM instance for this session |
| session_id | The unique ID for this session |
Dependencies injected:
Definition at line 3768 of file editor_manager.cc.
References current_project_, GetCurrentRom(), yaze::editor::RightPanelManager::kProject, project_management_panel_, right_panel_manager_, and version_manager_.
Referenced by yaze::editor::MenuOrchestrator::OnShowProjectManagement(), SetupWelcomeScreenCallbacks(), and yaze::editor::UICoordinator::UICoordinator().

| void yaze::editor::EditorManager::ShowProjectFileEditor | ( | ) |
Definition at line 3780 of file editor_manager.cc.
References current_project_, yaze::project::YazeProject::filepath, yaze::editor::kError, yaze::editor::ProjectFileEditor::LoadFile(), project_file_editor_, yaze::editor::ProjectFileEditor::set_active(), yaze::editor::ProjectFileEditor::SetProject(), yaze::editor::ToastManager::Show(), and toast_manager_.
Referenced by yaze::editor::MenuOrchestrator::OnShowProjectFileEditor(), SetupWelcomeScreenCallbacks(), and yaze::editor::UICoordinator::UICoordinator().

|
privatedelete |
|
private |
Definition at line 2555 of file editor_manager.cc.
References emulator_, yaze::gfx::PerformanceProfiler::Get(), yaze::gfx::Arena::Get(), GetCurrentEditorSet(), GetCurrentRom(), yaze::editor::kAssembly, yaze::editor::kDungeon, yaze::editor::kGraphics, yaze::editor::kMessage, yaze::editor::kMusic, yaze::editor::kOverworld, yaze::editor::kPalette, yaze::editor::kScreen, yaze::editor::kSprite, yaze::zelda3::LoadGameData(), LOG_DEBUG, MarkEditorInitialized(), MarkEditorLoaded(), yaze::gfx::Arena::mutable_gfx_sheets(), yaze::editor::UserSettings::prefs(), yaze::gfx::PerformanceProfiler::PrintSummary(), renderer_, ResetAssetState(), RETURN_IF_ERROR, right_panel_manager_, session_coordinator_, yaze::emu::Emulator::set_renderer(), yaze::editor::StatusBar::SetEnabled(), yaze::editor::UserSettings::Preferences::show_status_bar, status_bar_, and user_settings_.
Referenced by LoadAssetsForMode().
|
private |
Definition at line 1831 of file editor_manager.cc.
References asset_load_mode_, yaze::kAuto, yaze::kFull, yaze::kLazy, LoadAssets(), and LoadAssetsLazy().
Referenced by LoadProjectWithRom(), LoadRom(), OpenRomOrProject(), and RestoreRomBackup().

|
private |
Definition at line 2713 of file editor_manager.cc.
References emulator_, GetCurrentEditorSet(), GetCurrentRom(), LOG_INFO, yaze::editor::UserSettings::prefs(), renderer_, ResetAssetState(), right_panel_manager_, session_coordinator_, yaze::emu::Emulator::set_renderer(), yaze::editor::StatusBar::SetEnabled(), yaze::editor::UserSettings::Preferences::show_status_bar, status_bar_, and user_settings_.
Referenced by LoadAssetsForMode().
|
private |
Definition at line 1933 of file editor_manager.cc.
References GetEditorByType().
Referenced by EnsureEditorAssetsLoaded().

|
private |
Definition at line 1842 of file editor_manager.cc.
References yaze::editor::RomSession::editor_assets_loaded, yaze::editor::RomSession::editor_initialized, and yaze::editor::RomSession::game_data_loaded.
Referenced by HandleSessionRomLoaded(), LoadAssets(), LoadAssetsLazy(), and RestoreRomBackup().
|
private |
Definition at line 1851 of file editor_manager.cc.
References yaze::editor::RomSession::editor_initialized, and yaze::editor::EditorTypeIndex().
Referenced by EnsureEditorAssetsLoaded(), and LoadAssets().

|
private |
Definition at line 1862 of file editor_manager.cc.
References yaze::editor::RomSession::editor_assets_loaded, and yaze::editor::EditorTypeIndex().
Referenced by EnsureEditorAssetsLoaded(), and LoadAssets().

|
private |
Definition at line 1891 of file editor_manager.cc.
References yaze::editor::EditorSet::GetEditor().
Referenced by EnsureEditorAssetsLoaded(), InitializeEditorForType(), and ResolveEditorForCategory().

|
private |
Definition at line 1896 of file editor_manager.cc.
References agent_ui_, yaze::editor::AgentUiController::GetAgentEditor(), GetCurrentEditorSet(), GetEditorByType(), yaze::editor::EditorRegistry::GetEditorTypeFromCategory(), yaze::editor::kAgent, yaze::editor::PanelManager::kDashboardCategory, yaze::editor::kEmulator, yaze::editor::kSettings, and yaze::editor::kUnknown.
Referenced by SetupSidebarCallbacks(), and SyncEditorContextForCategory().

|
private |
Definition at line 1923 of file editor_manager.cc.
References yaze::editor::PanelManager::kDashboardCategory, LOG_DEBUG, ResolveEditorForCategory(), and SetCurrentEditor().
Referenced by DrawInterface(), Initialize(), and SetupSidebarCallbacks().

|
private |
Definition at line 1872 of file editor_manager.cc.
References yaze::editor::kDungeon, yaze::editor::kGraphics, yaze::editor::kMessage, yaze::editor::kOverworld, yaze::editor::kPalette, yaze::editor::kScreen, and yaze::editor::kSprite.
Referenced by EnsureEditorAssetsLoaded().
|
private |
Definition at line 1887 of file editor_manager.cc.
References yaze::editor::kMessage.
Referenced by EnsureEditorAssetsLoaded().
|
private |
Definition at line 1102 of file editor_manager.cc.
References yaze::test::TestManager::Get(), and yaze::test::RegisterZ3edTestSuites().
Referenced by Initialize().

|
private |
Definition at line 1778 of file editor_manager.cc.
References dashboard_mode_override_, dashboard_panel_, yaze::kAuto, yaze::kHide, yaze::kShow, panel_manager_, yaze::editor::PanelManager::SetPanelExpanded(), yaze::editor::PanelManager::SetSidebarVisible(), sidebar_mode_override_, ui_coordinator_, and welcome_mode_override_.
Referenced by ApplyStartupVisibility().

|
private |
Definition at line 1736 of file editor_manager.cc.
References yaze::editor::UserSettings::ApplyPanelLayoutDefaultsRevision(), yaze::TimingManager::Get(), yaze::TimingManager::GetElapsedTime(), yaze::editor::UserSettings::kLatestPanelLayoutDefaultsRevision, LOG_INFO, pending_layout_defaults_reset_, settings_dirty_, settings_dirty_timestamp_, and user_settings_.
Referenced by InitializeServices().

|
private |
Definition at line 1752 of file editor_manager.cc.
Referenced by DrawInterface(), and Initialize().
|
private |
Definition at line 899 of file editor_manager.cc.
References yaze::editor::RomSession::editors, yaze::editor::RomSession::game_data, yaze::test::TestManager::Get(), yaze::editor::PanelManager::GetActiveCategory(), yaze::editor::EditorSet::GetSettingsPanel(), yaze::editor::PanelManager::kDashboardCategory, LOG_DEBUG, panel_manager_, yaze::editor::UserSettings::Preferences::panel_visibility_state, yaze::editor::UserSettings::prefs(), RefreshResourceLabelProvider(), yaze::editor::PanelManager::RestoreVisibilityState(), right_panel_manager_, yaze::editor::RomSession::rom, selection_properties_panel_, yaze::test::TestManager::SetCurrentRom(), yaze::editor::ContentRegistry::Context::SetGameData(), yaze::editor::ContentRegistry::Context::SetRom(), yaze::editor::SelectionPropertiesPanel::SetRom(), and user_settings_.
Referenced by SubscribeToEvents().
|
private |
Definition at line 934 of file editor_manager.cc.
References LOG_INFO, panel_manager_, yaze::editor::UserSettings::Preferences::pinned_panels, yaze::editor::UserSettings::prefs(), yaze::editor::PanelManager::RegisterRegistryPanelsForSession(), yaze::editor::PanelManager::RestorePinnedState(), and user_settings_.
Referenced by SubscribeToEvents().

|
private |
Definition at line 940 of file editor_manager.cc.
References yaze::editor::ContentRegistry::Context::Clear(), yaze::test::TestManager::Get(), GetCurrentRom(), LOG_INFO, RefreshResourceLabelProvider(), session_coordinator_, and yaze::test::TestManager::SetCurrentRom().
Referenced by SubscribeToEvents().
|
private |
Definition at line 758 of file editor_manager.cc.
References deferred_actions_, event_bus_, yaze::TimingManager::Get(), yaze::TimingManager::GetElapsedTime(), HandleSessionClosed(), HandleSessionCreated(), HandleSessionRomLoaded(), HandleSessionSwitched(), HandleUIActionRequest(), yaze::editor::PanelManager::kDashboardCategory, layout_coordinator_, yaze::editor::UserSettings::Preferences::panel_visibility_state, pending_editor_deferred_actions_, yaze::editor::UserSettings::prefs(), yaze::editor::LayoutCoordinator::ProcessDeferredActions(), settings_dirty_, settings_dirty_timestamp_, yaze::EventBus::Subscribe(), ui_sync_frame_id_, and user_settings_.
Referenced by EditorManager().
|
private |
Definition at line 502 of file editor_manager.cc.
References activity_bar_, agent_ui_, ApplyLayoutPreset(), yaze::project::YazeProject::assets_folder, yaze::project::YazeProject::code_folder, current_project_, editor_activator_, editor_registry_, yaze::editor::EditorActivator::Dependencies::ensure_editor_assets_loaded, EnsureEditorAssetsLoaded(), yaze::editor::EditorActivator::Dependencies::event_bus, event_bus_, yaze::editor::EditorActivator::Dependencies::get_current_editor_set, yaze::editor::EditorActivator::Dependencies::get_current_session_id, yaze::editor::AgentEditor::GetAgentChat(), yaze::editor::AgentUiController::GetAgentEditor(), GetCurrentEditorSet(), GetCurrentSessionId(), yaze::editor::LayoutCoordinator::Initialize(), yaze::editor::EditorActivator::Initialize(), yaze::editor::RomLifecycleManager::Initialize(), yaze::editor::RightPanelManager::kAgentChat, yaze::editor::kDungeon, yaze::editor::kError, yaze::editor::kSuccess, layout_coordinator_, yaze::editor::LayoutCoordinator::Dependencies::layout_manager, yaze::editor::EditorActivator::Dependencies::layout_manager, layout_manager_, LoadProjectWithRom(), yaze::util::MakeRomFileDialogOptions(), menu_builder_, menu_orchestrator_, panel_host_, yaze::editor::LayoutCoordinator::Dependencies::panel_manager, yaze::editor::EditorActivator::Dependencies::panel_manager, panel_manager_, popup_manager_, project_management_panel_, project_manager_, yaze::project::YazeProject::project_opened(), proposal_drawer_, yaze::editor::EditorActivator::Dependencies::queue_deferred_action, QueueDeferredAction(), yaze::editor::LayoutCoordinator::Dependencies::right_panel_manager, yaze::editor::EditorActivator::Dependencies::right_panel_manager, right_panel_manager_, rom_file_manager_, yaze::project::YazeProject::rom_filename, rom_lifecycle_, yaze::project::YazeProject::Save(), SaveProject(), selection_properties_panel_, session_coordinator_, yaze::editor::AgentChat::set_active(), yaze::editor::WindowDelegate::set_apply_preset_callback(), yaze::editor::WorkspaceManager::set_apply_preset_callback(), yaze::editor::WorkspaceManager::set_layout_manager(), yaze::editor::SelectionPropertiesPanel::SetAgentCallbacks(), yaze::editor::StatusBar::SetAgentToggleCallback(), yaze::editor::ContentRegistry::Context::SetEventBus(), yaze::editor::PanelManager::SetEventBus(), yaze::editor::PanelManager::SetFileBrowserPath(), shortcut_manager_, yaze::editor::ToastManager::Show(), yaze::editor::AgentUiController::ShowAgent(), yaze::util::FileDialogWrapper::ShowOpenFileDialog(), yaze::util::FileDialogWrapper::ShowOpenFolderDialog(), yaze::editor::LayoutCoordinator::Dependencies::status_bar, status_bar_, toast_manager(), yaze::editor::LayoutCoordinator::Dependencies::toast_manager, yaze::editor::EditorActivator::Dependencies::toast_manager, toast_manager_, yaze::editor::LayoutCoordinator::Dependencies::ui_coordinator, yaze::editor::EditorActivator::Dependencies::ui_coordinator, ui_coordinator_, user_settings_, window_delegate_, and workspace_manager_.
Referenced by EditorManager().
|
private |
Definition at line 724 of file editor_manager.cc.
References yaze::editor::PanelDefinition::category, yaze::editor::ContentRegistry::Panels::CreateAll(), dashboard_panel_, yaze::editor::PanelDefinition::display_name, yaze::editor::PanelDefinition::icon, ICON_MD_DASHBOARD, yaze::editor::PanelDefinition::id, panel_host_, panel_manager_, yaze::editor::PanelDefinition::priority, yaze::editor::PanelManager::RegisterPanel(), yaze::editor::PanelManager::RegisterRegistryPanel(), yaze::editor::PanelDefinition::shortcut_hint, yaze::editor::PanelDefinition::visibility_flag, and yaze::editor::PanelDefinition::window_title.
Referenced by EditorManager().

|
private |
Definition at line 1201 of file editor_manager.cc.
References yaze::editor::PanelDescriptor::card_id, yaze::editor::PanelDescriptor::category, yaze::editor::PanelDescriptor::context_scope, yaze::editor::PanelDescriptor::display_name, yaze::editor::PanelDescriptor::icon, ICON_MD_AUDIO_FILE, ICON_MD_AUDIOTRACK, ICON_MD_BUG_REPORT, ICON_MD_KEYBOARD, ICON_MD_MEMORY, ICON_MD_SAVE, ICON_MD_SMART_TOY, ICON_MD_SPEED, ICON_MD_SPORTS_ESPORTS, ICON_MD_STOP, ICON_MD_VIDEOGAME_ASSET, yaze::editor::PanelDescriptor::on_hide, yaze::editor::PanelDescriptor::on_show, yaze::editor::PanelDescriptor::panel_category, panel_host_, panel_manager_, yaze::editor::PanelDescriptor::priority, yaze::editor::PanelManager::RegisterPanel(), yaze::editor::PanelManager::RegisterPanelAlias(), yaze::editor::PanelDescriptor::scope, yaze::editor::PanelDescriptor::shortcut_hint, yaze::editor::PanelManager::ShowPanel(), yaze::editor::PanelDescriptor::visibility_flag, and yaze::editor::PanelDescriptor::window_title.
Referenced by Initialize().

|
private |
Definition at line 1300 of file editor_manager.cc.
References agent_ui_, ApplyLayoutDefaultsMigrationIfNeeded(), yaze::editor::AgentUiController::ApplyUserSettingsDefaults(), yaze::gui::Animator::ClampMotionProfile(), yaze::editor::UserSettings::Preferences::font_global_scale, yaze::TimingManager::Get(), yaze::gui::GetAnimator(), yaze::TimingManager::GetElapsedTime(), yaze::app::platform::WasmControlApi::Initialize(), yaze::app::platform::WasmSessionBridge::Initialize(), yaze::editor::AgentUiController::Initialize(), yaze::editor::UserSettings::Load(), LOG_INFO, LOG_WARN, panel_manager_, pending_layout_defaults_reset_, yaze::editor::UserSettings::Preferences::pinned_panels, yaze::editor::UserSettings::Preferences::prefer_hmagic_sprite_names, yaze::editor::UserSettings::prefs(), project_file_editor_, proposal_drawer_, yaze::editor::PanelManager::RestorePinnedState(), right_panel_manager_, yaze::editor::UserSettings::Preferences::right_panel_widths, yaze::gui::Animator::SetMotionPreferences(), yaze::zelda3::SetPreferHmagicSpriteNames(), settings_dirty_, settings_dirty_timestamp_, yaze::editor::ProjectFileEditor::SetToastManager(), status_, yaze::editor::UserSettings::Preferences::switch_motion_profile, toast_manager_, and user_settings_.
Referenced by Initialize().
|
private |
Definition at line 1370 of file editor_manager.cc.
References SetupDialogCallbacks(), SetupSidebarCallbacks(), and SetupWelcomeScreenCallbacks().
Referenced by Initialize().

|
private |
Definition at line 1376 of file editor_manager.cc.
References yaze::editor::RomLoadOptionsDialog::LoadOptions::create_project, yaze::editor::RomLoadOptionsDialog::LoadOptions::enable_custom_overworld, yaze::editor::ProjectManager::FinalizeProjectCreation(), yaze::core::FeatureFlags::get(), GetCurrentRom(), yaze::editor::kError, yaze::editor::kSuccess, LOG_INFO, project_manager_, yaze::editor::RomLoadOptionsDialog::LoadOptions::project_name, yaze::editor::RomLoadOptionsDialog::LoadOptions::project_path, rom_load_options_dialog_, yaze::editor::RomLoadOptionsDialog::LoadOptions::save_all_palettes, yaze::editor::RomLoadOptionsDialog::LoadOptions::save_dungeon_maps, yaze::editor::RomLoadOptionsDialog::LoadOptions::save_gfx_groups, yaze::editor::RomLoadOptionsDialog::LoadOptions::save_overworld_entrances, yaze::editor::RomLoadOptionsDialog::LoadOptions::save_overworld_exits, yaze::editor::RomLoadOptionsDialog::LoadOptions::save_overworld_items, yaze::editor::RomLoadOptionsDialog::LoadOptions::save_overworld_maps, yaze::editor::RomLoadOptionsDialog::LoadOptions::selected_preset, yaze::editor::RomLoadOptionsDialog::SetConfirmCallback(), yaze::editor::ProjectManager::SetProjectRom(), yaze::editor::ToastManager::Show(), show_rom_load_options_, toast_manager_, and ui_coordinator_.
Referenced by SetupComponentCallbacks().
|
private |
Definition at line 1416 of file editor_manager.cc.
References CreateNewProject(), current_project_, yaze::project::YazeProject::filepath, yaze::editor::kError, yaze::editor::kInfo, LoadRom(), OpenProject(), OpenRomOrProject(), yaze::editor::UserSettings::prefs(), yaze::editor::WelcomeScreen::SetNewProjectCallback(), yaze::editor::WelcomeScreen::SetNewProjectWithTemplateCallback(), yaze::editor::WelcomeScreen::SetOpenAgentCallback(), yaze::editor::WelcomeScreen::SetOpenProjectCallback(), yaze::editor::WelcomeScreen::SetOpenProjectDialogCallback(), yaze::editor::WelcomeScreen::SetOpenProjectFileEditorCallback(), yaze::editor::WelcomeScreen::SetOpenProjectManagementCallback(), yaze::editor::WelcomeScreen::SetOpenRomCallback(), yaze::editor::ToastManager::Show(), yaze::editor::UserSettings::Preferences::show_welcome_on_startup, ShowProjectFileEditor(), ShowProjectManagement(), status_, toast_manager_, ui_coordinator_, user_settings_, and welcome_screen_.
Referenced by SetupComponentCallbacks().
|
private |
Definition at line 1481 of file editor_manager.cc.
References yaze::editor::PanelManager::EnableFileBrowser(), yaze::TimingManager::Get(), yaze::editor::PanelManager::GetActiveSessionId(), GetCurrentEditorSet(), yaze::editor::LayoutPresets::GetDefaultPanels(), yaze::editor::EditorRegistry::GetEditorTypeFromCategory(), yaze::TimingManager::GetElapsedTime(), yaze::editor::PanelManager::GetPanelsInCategory(), yaze::editor::kAssembly, yaze::editor::PanelManager::kDashboardCategory, yaze::editor::kEditor, yaze::editor::kSettings, yaze::editor::kUnknown, yaze::editor::UserSettings::Preferences::panel_browser_category_width, panel_manager_, yaze::editor::UserSettings::Preferences::panel_visibility_state, yaze::editor::UserSettings::prefs(), ResolveEditorForCategory(), yaze::editor::PanelManager::RestoreVisibilityState(), yaze::editor::PanelManager::SetCategoryChangedCallback(), yaze::editor::PanelManager::SetEditorResolver(), yaze::editor::PanelManager::SetFileClickedCallback(), yaze::editor::PanelManager::SetOnCategorySelectedCallback(), yaze::editor::PanelManager::SetOnPanelClickedCallback(), yaze::editor::PanelManager::SetPanelBrowserCategoryWidthChangedCallback(), yaze::editor::PanelManager::SetSidebarStateChangedCallback(), yaze::editor::PanelManager::SetSidePanelWidthChangedCallback(), settings_dirty_, settings_dirty_timestamp_, yaze::editor::PanelManager::ShowPanel(), yaze::editor::UserSettings::Preferences::sidebar_active_category, yaze::editor::UserSettings::Preferences::sidebar_panel_width, SwitchToEditor(), SyncEditorContextForCategory(), ui_coordinator_, and user_settings_.
Referenced by SetupComponentCallbacks().
|
private |
Definition at line 1589 of file editor_manager.cc.
References yaze::editor::ConfigureEditorShortcuts(), yaze::editor::ConfigureMenuShortcuts(), yaze::editor::ConfigurePanelShortcuts(), yaze::editor::ShortcutDependencies::editor_manager, yaze::editor::ShortcutDependencies::editor_registry, editor_registry_, yaze::editor::ShortcutDependencies::menu_orchestrator, menu_orchestrator_, yaze::editor::ShortcutDependencies::panel_manager, panel_manager_, yaze::editor::ShortcutDependencies::popup_manager, popup_manager_, yaze::editor::ShortcutDependencies::project_manager, project_manager_, yaze::editor::ShortcutDependencies::rom_file_manager, rom_file_manager_, yaze::editor::ShortcutDependencies::session_coordinator, session_coordinator_, shortcut_manager_, yaze::editor::ShortcutDependencies::toast_manager, toast_manager_, yaze::editor::ShortcutDependencies::ui_coordinator, ui_coordinator_, yaze::editor::ShortcutDependencies::user_settings, user_settings_, yaze::editor::ShortcutDependencies::workspace_manager, and workspace_manager_.
Referenced by Initialize().

|
private |
Definition at line 2061 of file editor_manager.cc.
References yaze::editor::ExecuteShortcuts(), yaze::TimingManager::Get(), shortcut_manager_, and yaze::TimingManager::Update().
Referenced by Update().

|
private |
Definition at line 2069 of file editor_manager.cc.
References agent_ui_, yaze::editor::UserSettings::Preferences::autosave_enabled, yaze::editor::UserSettings::Preferences::autosave_interval, autosave_timer_, yaze::Rom::SaveSettings::backup, current_editor_, current_project_, yaze::TimingManager::Get(), yaze::test::TestManager::Get(), GetCurrentEditorSet(), GetCurrentRom(), yaze::TimingManager::GetElapsedTime(), yaze::editor::kError, yaze::editor::kSuccess, yaze::editor::kUnknown, layout_coordinator_, LOG_DEBUG, LOG_WARN, yaze::editor::UserSettings::prefs(), yaze::editor::LayoutCoordinator::ProcessLayoutRebuild(), yaze::editor::UserSettings::Save(), yaze::Rom::SaveSettings::save_new, session_coordinator_, yaze::editor::AgentUiController::SetAsarWrapperContext(), yaze::test::TestManager::SetCurrentRom(), yaze::editor::AgentUiController::SetProjectContext(), yaze::editor::AgentUiController::SetRomContext(), settings_dirty_, settings_dirty_timestamp_, yaze::editor::ToastManager::Show(), status_, toast_manager_, yaze::editor::Editor::type(), ui_coordinator_, yaze::editor::AgentUiController::Update(), and user_settings_.
Referenced by Update().
|
private |
Definition at line 2142 of file editor_manager.cc.
References activity_bar_, yaze::editor::AgentUIContext::agent_config(), agent_ui_, yaze::editor::StatusBar::ClearAgentInfo(), dashboard_panel_, yaze::editor::StatusBar::Draw(), yaze::editor::RomLoadOptionsDialog::Draw(), yaze::editor::PanelManager::DrawAllVisiblePanels(), DrawSecondaryWindows(), yaze::gfx::PerformanceDashboard::Get(), yaze::editor::PanelManager::GetActiveCategory(), yaze::editor::PanelManager::GetActiveSessionId(), yaze::editor::AgentUiController::GetAgentEditor(), yaze::editor::EditorRegistry::GetAllEditorCategories(), yaze::editor::AgentUiController::GetContext(), GetCurrentEditorSet(), GetCurrentRom(), GetCurrentSessionId(), yaze::editor::EditorRegistry::GetEditorCategory(), GetPreferredStartupCategory(), yaze::Rom::is_loaded(), IsPanelBasedEditor(), panel_manager_, yaze::editor::UserSettings::Preferences::panel_visibility_state, yaze::editor::UserSettings::prefs(), yaze::gfx::PerformanceDashboard::Render(), yaze::editor::PanelManager::RestoreVisibilityState(), right_panel_manager_, rom_load_options_dialog_, RunEmulator(), session_coordinator_, yaze::editor::PanelManager::SetActiveCategory(), yaze::editor::StatusBar::SetAgentInfo(), yaze::editor::StatusBar::SetRom(), yaze::editor::StatusBar::SetSessionInfo(), show_rom_load_options_, status_bar_, SyncEditorContextForCategory(), ui_coordinator_, UpdateSystemUIs(), and user_settings_.
Referenced by Update().
|
private |
Definition at line 2343 of file editor_manager.cc.
References yaze::editor::ProjectFileEditor::Draw(), yaze::test::TestManager::DrawTestDashboard(), yaze::gfx::PerformanceDashboard::Get(), yaze::test::TestManager::Get(), GetCurrentEditorSet(), yaze::editor::PanelManager::GetVisibilityFlag(), yaze::editor::kAssembly, yaze::editor::kHex, panel_manager_, project_file_editor_, yaze::gfx::PerformanceDashboard::Render(), yaze::gfx::PerformanceDashboard::SetVisible(), ui_coordinator_, yaze::gfx::PerformanceDashboard::Update(), and yaze::test::TestManager::UpdateResourceStats().
Referenced by DrawInterface().
|
private |
Definition at line 2407 of file editor_manager.cc.
References agent_ui_, current_project_, yaze::project::ResourceLabelManager::DisplayLabels(), yaze::editor::AgentUiController::DrawPopups(), yaze::project::ResourceLabelManager::filename_, GetCurrentRom(), yaze::project::YazeProject::labels_filename, yaze::project::YazeProject::project_opened(), proposal_drawer_, yaze::Rom::resource_label(), yaze::editor::ProposalDrawer::SetRom(), and ui_coordinator_.
Referenced by DrawInterface().
|
private |
Definition at line 2434 of file editor_manager.cc.
References emulator_, GetCurrentRom(), yaze::emu::Emulator::is_audio_focus_mode(), yaze::emu::Emulator::is_snes_initialized(), yaze::emu::Emulator::Run(), yaze::emu::Emulator::RunAudioFrame(), yaze::emu::Emulator::RunFrameOnly(), yaze::emu::Emulator::running(), and ui_coordinator_.
Referenced by DrawInterface().
|
private |
Definition at line 959 of file editor_manager.cc.
References yaze::test::TestManager::Get(), LOG_INFO, RefreshResourceLabelProvider(), ResetAssetState(), session_coordinator_, yaze::test::TestManager::SetCurrentRom(), yaze::editor::ContentRegistry::Context::SetGameData(), and yaze::editor::ContentRegistry::Context::SetRom().
Referenced by SubscribeToEvents().
|
private |
Definition at line 834 of file editor_manager.cc.
References yaze::core::ProjectRegistry::all_resource_labels, current_project_, GetCurrentRom(), yaze::zelda3::GetResourceLabels(), yaze::project::YazeProject::hack_manifest, yaze::core::HackManifest::HasProjectRegistry(), yaze::project::ResourceLabelManager::labels_, yaze::core::HackManifest::loaded(), LOG_DEBUG, yaze::project::WorkspaceSettings::prefer_hmagic_names, yaze::editor::UserSettings::Preferences::prefer_hmagic_sprite_names, yaze::editor::UserSettings::prefs(), yaze::project::YazeProject::project_opened(), yaze::core::HackManifest::project_registry(), yaze::Rom::resource_label(), yaze::project::YazeProject::resource_labels, user_settings_, and yaze::project::YazeProject::workspace_settings.
Referenced by HandleSessionClosed(), HandleSessionRomLoaded(), HandleSessionSwitched(), LoadProjectWithRom(), LoadRom(), OpenRomOrProject(), and SetCurrentRom().
|
private |
Definition at line 984 of file editor_manager.cc.
References GetCurrentEditor(), GetCurrentRom(), yaze::editor::PopupID::kAbout, yaze::editor::kAgent, yaze::editor::RightPanelManager::kAgentChat, yaze::editor::kError, yaze::editor::RightPanelManager::kHelp, yaze::editor::RightPanelManager::kProposals, yaze::editor::kSettings, yaze::editor::RightPanelManager::kSettings, yaze::editor::kSuccess, LoadRom(), popup_manager_, yaze::editor::Editor::Redo(), ResetWorkspaceLayout(), right_panel_manager_, SaveRom(), yaze::editor::ToastManager::Show(), SwitchToEditor(), toast_manager_, ui_coordinator_, and yaze::editor::Editor::Undo().
Referenced by SubscribeToEvents().
|
private |
|
private |
|
private |
Definition at line 3574 of file editor_manager.cc.
References GetCurrentRom(), rom_lifecycle_, and yaze::editor::RomLifecycleManager::UpdateCurrentRomHash().
Referenced by LoadProjectWithRom(), LoadRom(), OpenRomOrProject(), RestoreRomBackup(), and SetCurrentRom().

|
private |
Definition at line 3569 of file editor_manager.cc.
References yaze::editor::RomLifecycleManager::ApplyDefaultBackupPolicy(), yaze::editor::UserSettings::Preferences::backup_before_save, yaze::editor::UserSettings::prefs(), rom_lifecycle_, and user_settings_.
Referenced by LoadRom().

|
private |
Save the current ROM file.
DELEGATION:
RESPONSIBILITIES STILL IN EDITORMANAGER:
This stays in EditorManager because it requires knowledge of all editors and the order in which they must be saved to maintain ROM integrity.
Definition at line 2789 of file editor_manager.cc.
References yaze::editor::RomLifecycleManager::CheckRomWritePolicy(), GetCurrentRom(), and rom_lifecycle_.
Referenced by SaveRom().

|
private |
Definition at line 2793 of file editor_manager.cc.
References yaze::editor::RomLifecycleManager::CheckOracleRomSafetyPreSave(), and rom_lifecycle_.
Referenced by SaveRom().

|
private |
Definition at line 3797 of file editor_manager.cc.
References yaze::editor::EditorSet::ApplyDependencies(), current_project_, yaze::editor::EditorDependencies::custom_data, editor_context_, yaze::editor::EditorDependencies::emulator, emulator_, GetCurrentSessionId(), yaze::editor::EditorDependencies::global_context, yaze::editor::EditorDependencies::panel_manager, panel_manager_, yaze::editor::EditorDependencies::popup_manager, popup_manager_, yaze::editor::EditorDependencies::project, yaze::editor::EditorDependencies::renderer, renderer_, yaze::editor::EditorDependencies::rom, selection_properties_panel_, yaze::editor::EditorDependencies::session_id, yaze::editor::SelectionPropertiesPanel::SetRom(), yaze::editor::EditorDependencies::shared_clipboard, shared_clipboard_, yaze::editor::EditorDependencies::shortcut_manager, shortcut_manager_, yaze::editor::EditorDependencies::status_bar, status_bar_, yaze::editor::EditorDependencies::toast_manager, toast_manager_, yaze::editor::EditorDependencies::user_settings, user_settings_, yaze::editor::EditorDependencies::version_manager, and version_manager_.
Referenced by ConfigureSession(), LoadProjectWithRom(), LoadRom(), and OpenRomOrProject().

|
private |
Definition at line 441 of file editor_manager.cc.
References current_project_, layout_manager_, yaze::project::YazeProject::MakeStorageKey(), and yaze::project::YazeProject::project_opened().
Referenced by CreateNewProject(), ImportProject(), OpenProject(), OpenRomOrProject(), and SaveProjectAs().

|
private |
Definition at line 463 of file editor_manager.h.
|
private |
Definition at line 469 of file editor_manager.h.
|
private |
Definition at line 470 of file editor_manager.h.
|
private |
Definition at line 471 of file editor_manager.h.
|
private |
Definition at line 477 of file editor_manager.h.
Referenced by InitializeServices(), InitializeSubsystems(), and UpdateSystemUIs().
|
private |
Definition at line 478 of file editor_manager.h.
|
private |
Definition at line 481 of file editor_manager.h.
Referenced by DrawInterface(), InitializeServices(), InitializeSubsystems(), ResolveEditorForCategory(), UpdateEditorState(), and UpdateSystemUIs().
|
private |
Definition at line 484 of file editor_manager.h.
Referenced by DrawSecondaryWindows(), InitializeServices(), and ShowProjectFileEditor().
|
private |
Definition at line 488 of file editor_manager.h.
Referenced by ApplyStartupVisibilityOverrides(), DrawInterface(), OpenEditorAndPanelsFromFlags(), and RegisterEditors().
|
private |
Definition at line 489 of file editor_manager.h.
Referenced by SetupWelcomeScreenCallbacks().
|
private |
Definition at line 490 of file editor_manager.h.
Referenced by DrawInterface(), LoadRom(), and SetupDialogCallbacks().
|
private |
Definition at line 491 of file editor_manager.h.
Referenced by DrawInterface(), LoadRom(), and SetupDialogCallbacks().
|
private |
Definition at line 492 of file editor_manager.h.
Referenced by ApplyStartupVisibility(), and ApplyStartupVisibilityOverrides().
|
private |
Definition at line 493 of file editor_manager.h.
Referenced by ApplyStartupVisibility(), and ApplyStartupVisibilityOverrides().
|
private |
Definition at line 494 of file editor_manager.h.
Referenced by ApplyStartupVisibility(), and ApplyStartupVisibilityOverrides().
|
private |
Definition at line 495 of file editor_manager.h.
Referenced by asset_load_mode(), EnsureEditorAssetsLoaded(), LoadAssetsForMode(), and SetAssetLoadMode().
|
private |
Definition at line 498 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), HandleSessionSwitched(), and InitializeSubsystems().
|
private |
Definition at line 501 of file editor_manager.h.
Referenced by InitializeSubsystems(), LoadProjectWithRom(), and ShowProjectManagement().
|
private |
Definition at line 503 of file editor_manager.h.
Referenced by EditorManager(), and version().
|
private |
Definition at line 504 of file editor_manager.h.
Referenced by InitializeServices(), SetupWelcomeScreenCallbacks(), Update(), and UpdateEditorState().
|
private |
Definition at line 505 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), emulator(), Initialize(), LoadAssets(), LoadAssetsLazy(), and RunEmulator().
|
private |
Definition at line 509 of file editor_manager.h.
Referenced by ApplyLayoutProfile(), GetCurrentEditor(), ResetCurrentEditorLayout(), SetCurrentEditor(), and UpdateEditorState().
|
private |
Definition at line 513 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), Initialize(), LoadAssets(), and LoadAssetsLazy().
|
private |
Definition at line 515 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), CreateNewProject(), GetCurrentProject(), GetCurrentProject(), GetProjectExpectedRomHash(), GetProjectRomRole(), GetProjectRomWritePolicy(), ImportProject(), InitializeSubsystems(), LoadProjectWithRom(), OpenProject(), OpenRomOrProject(), RefreshResourceLabelProvider(), RepairCurrentProject(), SaveProject(), SaveProjectAs(), SaveRom(), SetupWelcomeScreenCallbacks(), ShowProjectFileEditor(), ShowProjectManagement(), SyncLayoutScopeFromCurrentProject(), UpdateEditorState(), and UpdateSystemUIs().
|
private |
Definition at line 516 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), GetVersionManager(), LoadProjectWithRom(), OpenProject(), OpenRomOrProject(), and ShowProjectManagement().
|
private |
Definition at line 517 of file editor_manager.h.
Referenced by ConfigureEditorDependencies().
|
private |
Definition at line 518 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), HandleUIActionRequest(), InitializeShortcutSystem(), InitializeSubsystems(), OpenProject(), and SaveRom().
|
private |
Definition at line 519 of file editor_manager.h.
Referenced by ApplyLayoutProfile(), CaptureTemporaryLayoutSnapshot(), ClearTemporaryLayoutSnapshot(), ConfigureEditorDependencies(), HandleUIActionRequest(), InitializeServices(), InitializeShortcutSystem(), InitializeSubsystems(), LoadProjectWithRom(), LoadRom(), OpenProject(), RepairCurrentProject(), ResetCurrentEditorLayout(), ResolvePotItemSaveConfirmation(), RestoreTemporaryLayoutSnapshot(), SaveProjectAs(), SaveRom(), SetupDialogCallbacks(), SetupWelcomeScreenCallbacks(), ShowProjectFileEditor(), SwitchToEditor(), toast_manager(), and UpdateEditorState().
|
private |
Definition at line 520 of file editor_manager.h.
Referenced by InitializeSubsystems(), and menu_builder().
|
private |
Definition at line 521 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), InitializeShortcutSystem(), InitializeSubsystems(), and ProcessInput().
|
private |
Definition at line 522 of file editor_manager.h.
Referenced by ApplyDefaultBackupPolicy(), ApplyLayoutDefaultsMigrationIfNeeded(), ConfigureEditorDependencies(), ConfigureSession(), DrawInterface(), HandleSessionCreated(), HandleSessionSwitched(), Initialize(), InitializeServices(), InitializeShortcutSystem(), InitializeSubsystems(), LoadAssets(), LoadAssetsLazy(), LoadProjectWithRom(), RefreshResourceLabelProvider(), SaveProject(), SaveRom(), SetFontGlobalScale(), SetupSidebarCallbacks(), SetupWelcomeScreenCallbacks(), SubscribeToEvents(), and UpdateEditorState().
|
private |
Definition at line 525 of file editor_manager.h.
Referenced by ApplyStartupVisibilityOverrides(), card_registry(), card_registry(), ConfigureEditorDependencies(), DrawInterface(), DrawMainMenuBar(), DrawSecondaryWindows(), GetPanelManager(), HandleSessionCreated(), HandleSessionSwitched(), Initialize(), InitializeServices(), InitializeShortcutSystem(), InitializeSubsystems(), LoadProjectWithRom(), OpenEditorAndPanelsFromFlags(), OpenRomOrProject(), panel_manager(), panel_manager(), RegisterEditors(), RegisterEmulatorPanels(), and SetupSidebarCallbacks().
|
private |
Definition at line 526 of file editor_manager.h.
Referenced by InitializeSubsystems(), panel_host(), panel_host(), RegisterEditors(), and RegisterEmulatorPanels().
|
private |
Definition at line 527 of file editor_manager.h.
Referenced by Initialize(), InitializeShortcutSystem(), and InitializeSubsystems().
|
private |
Definition at line 528 of file editor_manager.h.
Referenced by DrawMainMenuBar(), InitializeShortcutSystem(), and InitializeSubsystems().
|
private |
Definition at line 529 of file editor_manager.h.
Referenced by CreateNewProject(), ImportProject(), InitializeShortcutSystem(), InitializeSubsystems(), and SetupDialogCallbacks().
|
private |
Definition at line 530 of file editor_manager.h.
Referenced by InitializeShortcutSystem(), InitializeSubsystems(), LoadProjectWithRom(), LoadRom(), OpenRomOrProject(), RestoreRomBackup(), SaveRom(), and SaveRomAs().
|
private |
Definition at line 531 of file editor_manager.h.
Referenced by ApplyStartupVisibilityOverrides(), CreateNewProject(), DismissEditorSelection(), DrawInterface(), DrawMainMenuBar(), DrawSecondaryWindows(), HandleUIActionRequest(), HideAllWindows(), InitializeShortcutSystem(), InitializeSubsystems(), IsSidebarVisible(), LoadProjectWithRom(), LoadRom(), OpenEditorAndPanelsFromFlags(), OpenRomOrProject(), RunEmulator(), SetSidebarVisible(), SetupDialogCallbacks(), SetupSidebarCallbacks(), SetupWelcomeScreenCallbacks(), ShowAllWindows(), ShowImGuiDemo(), ShowImGuiMetrics(), ui_coordinator(), UpdateEditorState(), and UpdateSystemUIs().
|
private |
Definition at line 532 of file editor_manager.h.
Referenced by InitializeSubsystems(), LoadDesignerLayout(), LoadDeveloperLayout(), and LoadModderLayout().
|
private |
Definition at line 533 of file editor_manager.h.
Referenced by InitializeSubsystems(), and SwitchToEditor().
|
private |
Definition at line 534 of file editor_manager.h.
Referenced by CloseCurrentSession(), CreateNewSession(), DrawInterface(), DuplicateCurrentSession(), EnsureEditorAssetsLoaded(), EnsureGameDataLoaded(), GenerateUniqueEditorTitle(), GetActiveSessionCount(), GetCurrentEditorSet(), GetCurrentFeatureFlags(), GetCurrentGameData(), GetCurrentRom(), GetCurrentSessionId(), GetCurrentSessionIndex(), HandleSessionClosed(), HandleSessionRomLoaded(), HasDuplicateSession(), InitializeShortcutSystem(), InitializeSubsystems(), LoadAssets(), LoadAssetsLazy(), LoadProjectWithRom(), LoadRom(), OpenRomOrProject(), RemoveSession(), RestoreRomBackup(), SaveProject(), SaveRomAs(), yaze::editor::EditorManager::SessionScope::SessionScope(), SetCurrentRom(), SwitchToSession(), and UpdateEditorState().
|
private |
Definition at line 536 of file editor_manager.h.
Referenced by ApplyLayoutProfile(), CaptureTemporaryLayoutSnapshot(), ClearTemporaryLayoutSnapshot(), GetUiSyncStateSnapshot(), InitializeSubsystems(), RestoreTemporaryLayoutSnapshot(), and SyncLayoutScopeFromCurrentProject().
|
private |
Definition at line 537 of file editor_manager.h.
Referenced by ApplyLayoutPreset(), GetBottomLayoutOffset(), GetLeftLayoutOffset(), GetRightLayoutOffset(), GetUiSyncStateSnapshot(), InitializeSubsystems(), ResetCurrentEditorLayout(), ResetWorkspaceLayout(), SubscribeToEvents(), and UpdateEditorState().
|
private |
Definition at line 539 of file editor_manager.h.
Referenced by ApplyLayoutProfile(), DrawInterface(), HandleHostVisibilityChanged(), HandleSessionSwitched(), HandleUIActionRequest(), InitializeServices(), InitializeSubsystems(), LoadAssets(), LoadAssetsLazy(), right_panel_manager(), SetCurrentEditor(), and ShowProjectManagement().
|
private |
Definition at line 540 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), DrawInterface(), EditorManager(), InitializeSubsystems(), LoadAssets(), LoadAssetsLazy(), and status_bar().
|
private |
Definition at line 541 of file editor_manager.h.
Referenced by DrawInterface(), and InitializeSubsystems().
|
private |
Definition at line 542 of file editor_manager.h.
Referenced by Initialize(), InitializeShortcutSystem(), InitializeSubsystems(), LoadWorkspaceLayout(), LoadWorkspacePreset(), RefreshWorkspacePresets(), SaveWorkspaceLayout(), SaveWorkspacePreset(), and workspace_manager().
|
private |
Definition at line 551 of file editor_manager.h.
Referenced by UpdateEditorState().
|
private |
Definition at line 552 of file editor_manager.h.
Referenced by ApplyLayoutDefaultsMigrationIfNeeded(), InitializeServices(), SetupSidebarCallbacks(), SubscribeToEvents(), and UpdateEditorState().
|
private |
Definition at line 553 of file editor_manager.h.
Referenced by ApplyLayoutDefaultsMigrationIfNeeded(), InitializeServices(), SetupSidebarCallbacks(), SubscribeToEvents(), and UpdateEditorState().
|
private |
Definition at line 554 of file editor_manager.h.
Referenced by ApplyLayoutDefaultsMigrationIfNeeded(), Initialize(), and InitializeServices().
|
mutableprivate |
Definition at line 558 of file editor_manager.h.
Referenced by ApplyDefaultBackupPolicy(), BypassWriteConflictOnce(), CancelRomWriteConfirm(), CheckOracleRomSafetyPreSave(), CheckRomWritePolicy(), ClearPendingWriteConflicts(), ConfirmRomWrite(), GetCurrentRomHash(), GetRomBackups(), HasPendingPotItemSaveConfirmation(), InitializeSubsystems(), IsRomHashMismatch(), IsRomWriteConfirmPending(), pending_pot_item_total_rooms(), pending_pot_item_unloaded_rooms(), pending_write_conflicts(), PruneRomBackups(), ResolvePotItemSaveConfirmation(), SaveRom(), and UpdateCurrentRomHash().
|
private |
Definition at line 561 of file editor_manager.h.
Referenced by QueueDeferredAction(), and SubscribeToEvents().
|
private |
Definition at line 562 of file editor_manager.h.
Referenced by GetUiSyncStateSnapshot(), QueueDeferredAction(), and SubscribeToEvents().
|
private |
Definition at line 563 of file editor_manager.h.
Referenced by GetUiSyncStateSnapshot(), and SubscribeToEvents().
|
private |
Definition at line 566 of file editor_manager.h.
Referenced by EditorManager(), InitializeSubsystems(), OpenEditorAndPanelsFromFlags(), ProcessStartupActions(), and SubscribeToEvents().
|
private |
Definition at line 567 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), and EditorManager().