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

Classes | |
| class | SessionScope |
Public Member Functions | |
| EditorManager () | |
| ~EditorManager () override | |
| void | Initialize (gfx::IRenderer *renderer, const std::string &filename="") |
| void | OnSessionSwitched (size_t new_index, RomSession *session) override |
| Called when the active session changes. | |
| void | OnSessionCreated (size_t index, RomSession *session) override |
| Called when a new session is created. | |
| void | OnSessionClosed (size_t index) override |
| Called when a session is closed. | |
| void | OnSessionRomLoaded (size_t index, RomSession *session) override |
| Called when a ROM is loaded into a session. | |
| void | OpenEditorAndPanelsFromFlags (const std::string &editor_name, const std::string &panels_str) |
| void | ProcessStartupActions (const AppConfig &config) |
| void | ApplyStartupVisibility (const AppConfig &config) |
| absl::Status | Update () |
| Main update loop for the editor application. | |
| void | DrawMenuBar () |
| Draw the main menu bar. | |
| auto | emulator () -> emu::Emulator & |
| auto | quit () const |
| auto | version () const |
| MenuBuilder & | menu_builder () |
| WorkspaceManager * | workspace_manager () |
| RightPanelManager * | right_panel_manager () |
| StatusBar * | status_bar () |
| PanelManager * | GetPanelManager () |
| PanelManager & | panel_manager () |
| const PanelManager & | panel_manager () const |
| PanelManager & | card_registry () |
| const PanelManager & | card_registry () const |
| float | GetLeftLayoutOffset () const |
| float | GetRightLayoutOffset () const |
| float | GetBottomLayoutOffset () const |
| absl::Status | SetCurrentRom (Rom *rom) |
| auto | GetCurrentRom () const -> Rom * |
| auto | GetCurrentGameData () const -> zelda3::GameData * |
| auto | GetCurrentEditorSet () const -> EditorSet * |
| auto | GetCurrentEditor () const -> Editor * |
| void | SetCurrentEditor (Editor *editor) |
| size_t | GetCurrentSessionId () const |
| UICoordinator * | ui_coordinator () |
| auto | overworld () const -> yaze::zelda3::Overworld * |
| size_t | GetCurrentSessionIndex () const |
| core::FeatureFlags::Flags * | GetCurrentFeatureFlags () |
| void | SetFontGlobalScale (float scale) |
| void | RefreshWorkspacePresets () |
| void | SaveWorkspacePreset (const std::string &name) |
| void | LoadWorkspacePreset (const std::string &name) |
| void | JumpToDungeonRoom (int room_id) |
| void | JumpToOverworldMap (int map_id) |
| void | SwitchToEditor (EditorType editor_type, bool force_visible=false, bool from_dialog=false) |
| bool | IsSidebarVisible () const |
| void | SetSidebarVisible (bool visible) |
| void | HideCurrentEditorPanels () |
| void | CreateNewSession () |
| void | DuplicateCurrentSession () |
| void | CloseCurrentSession () |
| void | RemoveSession (size_t index) |
| void | SwitchToSession (size_t index) |
| size_t | GetActiveSessionCount () const |
| void | SaveWorkspaceLayout () |
| void | LoadWorkspaceLayout () |
| void | ResetWorkspaceLayout () |
| void | ShowAllWindows () |
| void | HideAllWindows () |
| void | LoadDeveloperLayout () |
| void | LoadDesignerLayout () |
| void | LoadModderLayout () |
| void | ApplyLayoutPreset (const std::string &preset_name) |
| void | ResetCurrentEditorLayout () |
| std::string | GenerateUniqueEditorTitle (EditorType type, size_t session_index) const |
| bool | HasDuplicateSession (const std::string &filepath) |
| void | RenameSession (size_t index, const std::string &new_name) |
| void | Quit () |
| void | QueueDeferredAction (std::function< void()> action) |
| void | ConfigureSession (RomSession *session) |
| void | ShowImGuiDemo () |
| void | ShowImGuiMetrics () |
| AgentEditor * | GetAgentEditor () |
| AgentUiController * | GetAgentUiController () |
| absl::Status | LoadRom () |
| Load a ROM file into a new or existing session. | |
| absl::Status | SaveRom () |
| Save the current ROM file. | |
| absl::Status | SaveRomAs (const std::string &filename) |
| absl::Status | OpenRomOrProject (const std::string &filename) |
| absl::Status | CreateNewProject (const std::string &template_name="Basic ROM Hack") |
| absl::Status | OpenProject () |
| absl::Status | SaveProject () |
| absl::Status | SaveProjectAs () |
| absl::Status | ImportProject (const std::string &project_path) |
| absl::Status | RepairCurrentProject () |
| absl::Status | LoadProjectWithRom () |
| project::YazeProject * | GetCurrentProject () |
| const project::YazeProject * | GetCurrentProject () const |
| core::VersionManager * | GetVersionManager () |
| void | ShowProjectManagement () |
| Injects dependencies into all editors within an EditorSet. | |
| void | ShowProjectFileEditor () |
Public Member Functions inherited from yaze::editor::SessionObserver | |
| virtual | ~SessionObserver ()=default |
Static Public Member Functions | |
| static bool | IsPanelBasedEditor (EditorType type) |
Private Member Functions | |
| absl::Status | DrawRomSelector ()=delete |
| absl::Status | LoadAssets (uint64_t loading_handle=0) |
| void | InitializeTestSuites () |
| void | ApplyStartupVisibilityOverrides () |
| emu::input::InputConfig | BuildInputConfigFromSettings () const |
| void | PersistInputConfig (const emu::input::InputConfig &config) |
| void | ConfigureEditorDependencies (EditorSet *editor_set, Rom *rom, size_t session_id) |
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 implements SessionObserver to receive notifications about session lifecycle events and update cross-cutting concerns accordingly.
Definition at line 86 of file editor_manager.h.
| yaze::editor::EditorManager::EditorManager | ( | ) |
Definition at line 189 of file editor_manager.cc.
References activity_bar_, yaze::project::YazeProject::assets_folder, yaze::project::YazeProject::code_folder, current_project_, dashboard_panel_, editor_activator_, editor_context_, editor_registry_, event_bus_, yaze::editor::EditorActivator::Dependencies::get_current_editor_set, yaze::editor::EditorActivator::Dependencies::get_current_session_id, GetCurrentEditorSet(), GetCurrentSessionId(), ICON_MD_DASHBOARD, yaze::editor::LayoutCoordinator::Initialize(), yaze::editor::EditorActivator::Initialize(), yaze::editor::StatusBar::Initialize(), yaze::editor::kError, yaze::editor::RightPanelManager::kHelp, yaze::editor::RightPanelManager::kSettings, 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_, 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::PanelManager::RegisterPanel(), 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, yaze::project::YazeProject::Save(), SaveProject(), selection_properties_panel_, session_coordinator_, yaze::editor::PanelManager::SetFileBrowserPath(), yaze::editor::PanelManager::SetShowHelpCallback(), yaze::editor::PanelManager::SetShowSettingsCallback(), shortcut_manager_, yaze::editor::ToastManager::Show(), yaze::util::FileDialogWrapper::ShowOpenFileDialog(), yaze::util::FileDialogWrapper::ShowOpenFolderDialog(), yaze::editor::LayoutCoordinator::Dependencies::status_bar, status_bar_, 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_, version_, and window_delegate_.
|
override |
Definition at line 392 of file editor_manager.cc.
References session_coordinator_.
| void yaze::editor::EditorManager::Initialize | ( | gfx::IRenderer * | renderer, |
| const std::string & | filename = "" ) |
Definition at line 480 of file editor_manager.cc.
References agent_ui_, yaze::editor::ConfigureEditorShortcuts(), yaze::editor::ConfigureMenuShortcuts(), yaze::editor::RomLoadOptionsDialog::LoadOptions::create_project, CreateNewProject(), yaze::editor::ShortcutDependencies::editor_manager, yaze::editor::ShortcutDependencies::editor_registry, editor_registry_, emulator_, yaze::editor::RomLoadOptionsDialog::LoadOptions::enable_custom_overworld, yaze::editor::PanelManager::EnableFileBrowser(), yaze::editor::ProjectManager::FinalizeProjectCreation(), yaze::editor::UserSettings::Preferences::font_global_scale, yaze::core::FeatureFlags::get(), GetCurrentEditor(), GetCurrentEditorSet(), GetCurrentRom(), yaze::editor::EditorRegistry::GetEditorTypeFromCategory(), 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::app::platform::WasmControlApi::Initialize(), yaze::app::platform::WasmSessionBridge::Initialize(), yaze::editor::AgentUiController::Initialize(), InitializeTestSuites(), yaze::editor::PopupID::kAbout, yaze::editor::kAssembly, yaze::editor::kEditor, yaze::editor::kError, yaze::editor::kSettings, yaze::editor::kSuccess, yaze::editor::kUnknown, yaze::editor::UserSettings::Load(), LoadRom(), LOG_INFO, LOG_WARN, yaze::editor::ShortcutDependencies::menu_orchestrator, menu_orchestrator_, OpenRomOrProject(), yaze::editor::ShortcutDependencies::panel_manager, panel_manager_, yaze::editor::ShortcutDependencies::popup_manager, popup_manager_, yaze::editor::UserSettings::Preferences::prefer_hmagic_sprite_names, yaze::editor::UserSettings::prefs(), PRINT_IF_ERROR, project_file_editor_, yaze::editor::ShortcutDependencies::project_manager, project_manager_, yaze::editor::RomLoadOptionsDialog::LoadOptions::project_name, yaze::editor::RomLoadOptionsDialog::LoadOptions::project_path, proposal_drawer_, yaze::editor::PanelManager::RegisterPanel(), renderer_, right_panel_manager_, yaze::editor::ShortcutDependencies::rom_file_manager, rom_file_manager_, rom_load_options_dialog_, yaze::editor::UserSettings::Save(), 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, SaveRom(), yaze::editor::RomLoadOptionsDialog::LoadOptions::selected_preset, yaze::editor::ShortcutDependencies::session_coordinator, session_coordinator_, yaze::emu::Emulator::set_panel_manager(), yaze::editor::WorkspaceManager::set_panel_manager(), yaze::editor::PanelManager::SetActiveCategory(), yaze::editor::PanelManager::SetCategoryChangedCallback(), yaze::editor::RomLoadOptionsDialog::SetConfirmCallback(), yaze::editor::PanelManager::SetFileClickedCallback(), yaze::editor::WelcomeScreen::SetNewProjectCallback(), yaze::editor::WelcomeScreen::SetNewProjectWithTemplateCallback(), yaze::editor::PanelManager::SetOnCategorySelectedCallback(), yaze::editor::PanelManager::SetOnPanelClickedCallback(), yaze::editor::WelcomeScreen::SetOpenAgentCallback(), yaze::editor::WelcomeScreen::SetOpenProjectCallback(), yaze::editor::WelcomeScreen::SetOpenRomCallback(), yaze::editor::PanelManager::SetPanelExpanded(), yaze::zelda3::SetPreferHmagicSpriteNames(), yaze::editor::ProjectManager::SetProjectRom(), yaze::editor::PanelManager::SetRedoCallback(), yaze::editor::PanelManager::SetSaveRomCallback(), yaze::editor::PanelManager::SetShowCommandPaletteCallback(), yaze::editor::PanelManager::SetShowEmulatorCallback(), yaze::editor::PanelManager::SetShowHelpCallback(), yaze::editor::PanelManager::SetShowPanelBrowserCallback(), yaze::editor::PanelManager::SetShowSearchCallback(), yaze::editor::PanelManager::SetShowSettingsCallback(), yaze::editor::PanelManager::SetShowShortcutsCallback(), yaze::editor::PanelManager::SetSidebarStateChangedCallback(), yaze::editor::PanelManager::SetSidebarVisible(), yaze::editor::ProjectFileEditor::SetToastManager(), yaze::editor::PanelManager::SetUndoCallback(), shortcut_manager_, yaze::editor::ToastManager::Show(), show_rom_load_options_, yaze::editor::UserSettings::Preferences::show_welcome_on_startup, yaze::editor::UserSettings::Preferences::sidebar_active_category, yaze::editor::UserSettings::Preferences::sidebar_panel_expanded, yaze::editor::UserSettings::Preferences::sidebar_visible, status_, SwitchToEditor(), yaze::editor::ShortcutDependencies::toast_manager, toast_manager_, yaze::editor::ShortcutDependencies::ui_coordinator, ui_coordinator_, user_settings_, welcome_screen_, yaze::editor::ShortcutDependencies::workspace_manager, and workspace_manager_.
Referenced by yaze::Controller::OnEntry().
|
overridevirtual |
Called when the active session changes.
Implements yaze::editor::SessionObserver.
Definition at line 403 of file editor_manager.cc.
References yaze::editor::RomSession::editors, yaze::test::TestManager::Get(), yaze::editor::EditorSet::GetSettingsPanel(), LOG_DEBUG, right_panel_manager_, yaze::editor::RomSession::rom, selection_properties_panel_, yaze::test::TestManager::SetCurrentRom(), yaze::editor::SelectionPropertiesPanel::SetRom(), and status_bar_.

|
overridevirtual |
Called when a new session is created.
Implements yaze::editor::SessionObserver.
Definition at line 425 of file editor_manager.cc.
References LOG_INFO.
|
overridevirtual |
Called when a session is closed.
Implements yaze::editor::SessionObserver.
Definition at line 429 of file editor_manager.cc.
References yaze::test::TestManager::Get(), GetCurrentRom(), LOG_INFO, and yaze::test::TestManager::SetCurrentRom().

|
overridevirtual |
Called when a ROM is loaded into a session.
Reimplemented from yaze::editor::SessionObserver.
Definition at line 438 of file editor_manager.cc.
References yaze::test::TestManager::Get(), LOG_INFO, yaze::editor::RomSession::rom, and yaze::test::TestManager::SetCurrentRom().

| void yaze::editor::EditorManager::OpenEditorAndPanelsFromFlags | ( | const std::string & | editor_name, |
| const std::string & | panels_str ) |
Definition at line 860 of file editor_manager.cc.
References dashboard_panel_, 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::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 1016 of file editor_manager.cc.
References ApplyStartupVisibility(), yaze::AppConfig::jump_to_map, yaze::AppConfig::jump_to_room, JumpToDungeonRoom(), JumpToOverworldMap(), yaze::AppConfig::open_panels, OpenEditorAndPanelsFromFlags(), and yaze::AppConfig::startup_editor.

| void yaze::editor::EditorManager::ApplyStartupVisibility | ( | const AppConfig & | config | ) |
Definition at line 978 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().

| 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 1052 of file editor_manager.cc.
References activity_bar_, agent_ui_, yaze::editor::UserSettings::Preferences::autosave_enabled, yaze::editor::UserSettings::Preferences::autosave_interval, autosave_timer_, yaze::Rom::SaveSettings::backup, current_editor_, current_project_, dashboard_panel_, deferred_actions_, yaze::editor::StatusBar::Draw(), yaze::editor::RomLoadOptionsDialog::Draw(), yaze::editor::PanelManager::DrawAllVisiblePanels(), yaze::editor::ExecuteShortcuts(), yaze::gfx::PerformanceDashboard::Get(), yaze::TimingManager::Get(), yaze::test::TestManager::Get(), yaze::editor::PanelManager::GetActiveCategory(), yaze::editor::EditorRegistry::GetAllEditorCategories(), GetCurrentEditorSet(), GetCurrentRom(), GetCurrentSessionId(), yaze::editor::EditorRegistry::GetEditorCategory(), IsPanelBasedEditor(), yaze::editor::kError, yaze::editor::kSuccess, yaze::editor::kUnknown, layout_coordinator_, LOG_DEBUG, panel_manager_, yaze::editor::UserSettings::prefs(), yaze::editor::LayoutCoordinator::ProcessDeferredActions(), yaze::editor::LayoutCoordinator::ProcessLayoutRebuild(), yaze::gfx::PerformanceDashboard::Render(), right_panel_manager_, rom_load_options_dialog_, yaze::Rom::SaveSettings::save_new, session_coordinator_, yaze::editor::PanelManager::SetActiveCategory(), yaze::editor::AgentUiController::SetAsarWrapperContext(), yaze::test::TestManager::SetCurrentRom(), yaze::editor::AgentUiController::SetProjectContext(), yaze::editor::StatusBar::SetRom(), yaze::editor::AgentUiController::SetRomContext(), yaze::editor::StatusBar::SetSessionInfo(), shortcut_manager_, yaze::editor::ToastManager::Show(), show_rom_load_options_, status_, status_bar_, toast_manager_, yaze::editor::Editor::type(), ui_coordinator_, yaze::editor::AgentUiController::Update(), yaze::TimingManager::Update(), and user_settings_.
Referenced by yaze::Controller::OnLoad().
| void yaze::editor::EditorManager::DrawMenuBar | ( | ) |
Draw the main menu bar.
DELEGATION:
Note: ROM selector stays in EditorManager because it needs direct access to sessions_ and current_rom_ for the combo box. Could be extracted to SessionCoordinator in future.
Definition at line 1299 of file editor_manager.cc.
References agent_ui_, current_project_, yaze::editor::ProjectFileEditor::Draw(), yaze::editor::AgentUiController::DrawPopups(), emulator_, yaze::gfx::PerformanceDashboard::Get(), yaze::test::TestManager::Get(), GetCurrentEditorSet(), GetCurrentRom(), yaze::gui::GetPrimaryVec4(), yaze::gui::GetSurfaceContainerHighestVec4(), yaze::gui::GetSurfaceContainerHighVec4(), yaze::gui::GetTextSecondaryVec4(), yaze::editor::PanelManager::GetVisibilityFlag(), ICON_MD_MENU, ICON_MD_MENU_OPEN, yaze::emu::Emulator::is_audio_focus_mode(), yaze::emu::Emulator::is_snes_initialized(), yaze::editor::PanelManager::IsSidebarVisible(), yaze::editor::PopupID::kDisplaySettings, yaze::project::YazeProject::labels_filename, menu_orchestrator_, panel_manager_, popup_manager_, project_file_editor_, yaze::project::YazeProject::project_opened(), proposal_drawer_, yaze::gfx::PerformanceDashboard::Render(), yaze::emu::Emulator::Run(), yaze::emu::Emulator::RunAudioFrame(), yaze::emu::Emulator::RunFrameOnly(), yaze::emu::Emulator::running(), yaze::editor::ProposalDrawer::SetRom(), yaze::gfx::PerformanceDashboard::SetVisible(), yaze::editor::PanelManager::ToggleSidebarVisibility(), ui_coordinator_, and yaze::gfx::PerformanceDashboard::Update().
Referenced by yaze::Controller::OnLoad().
|
inline |
Definition at line 112 of file editor_manager.h.
References emulator_.
Referenced by yaze::app::GetGlobalEmulator(), yaze::Controller::OnEntry(), and yaze::Controller::OnInput().
|
inline |
Definition at line 113 of file editor_manager.h.
References quit_.
Referenced by yaze::Controller::OnLoad().
|
inline |
Definition at line 114 of file editor_manager.h.
References version_.
Referenced by yaze::editor::PopupManager::DrawAboutPopup(), and yaze::editor::UICoordinator::DrawMenuBarExtras().
|
inline |
Definition at line 117 of file editor_manager.h.
References menu_builder_.
|
inline |
Definition at line 118 of file editor_manager.h.
References workspace_manager_.
Referenced by yaze::editor::UICoordinator::DrawWorkspacePresetDialogs().
|
inline |
Definition at line 119 of file editor_manager.h.
References right_panel_manager_.
Referenced by yaze::editor::UICoordinator::DrawMenuBarExtras(), yaze::editor::UICoordinator::DrawMobileNavigation(), and yaze::editor::UICoordinator::DrawNotificationBell().
|
inline |
Definition at line 120 of file editor_manager.h.
References status_bar_.
|
inline |
Definition at line 121 of file editor_manager.h.
References panel_manager_.
|
inline |
Definition at line 122 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 123 of file editor_manager.h.
References panel_manager_.
|
inline |
Definition at line 126 of file editor_manager.h.
References panel_manager_.
Referenced by yaze::editor::PopupManager::DrawLayoutPresetsPopup().
|
inline |
Definition at line 127 of file editor_manager.h.
References panel_manager_.
|
inline |
Definition at line 131 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 134 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 137 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 2246 of file editor_manager.cc.
References yaze::test::TestManager::Get(), GetCurrentRom(), session_coordinator_, and yaze::test::TestManager::SetCurrentRom().

|
inline |
Definition at line 142 of file editor_manager.h.
References session_coordinator_.
Referenced by yaze::editor::MenuOrchestrator::CanSaveRom(), yaze::editor::UICoordinator::DrawGlobalSearch(), DrawMenuBar(), yaze::editor::UICoordinator::DrawMenuBarExtras(), yaze::editor::UICoordinator::DrawMobileNavigation(), yaze::editor::UICoordinator::DrawNotificationBell(), yaze::editor::PopupManager::DrawRomInfoPopup(), yaze::editor::PopupManager::DrawSaveAsPopup(), yaze::editor::UICoordinator::DrawSessionButton(), yaze::editor::PopupManager::DrawSessionManagerPopup(), yaze::editor::UICoordinator::DrawWelcomeScreen(), yaze::Controller::GetCurrentRom(), yaze::editor::MenuOrchestrator::GetRomFilename(), yaze::editor::MenuOrchestrator::HasActiveRom(), Initialize(), LoadAssets(), LoadProjectWithRom(), LoadRom(), yaze::editor::MenuOrchestrator::OnCheckRomVersion(), yaze::editor::MenuOrchestrator::OnCreateBackup(), yaze::editor::MenuOrchestrator::OnRunDataIntegrityCheck(), OnSessionClosed(), yaze::editor::MenuOrchestrator::OnTestSaveLoad(), yaze::editor::MenuOrchestrator::OnToggleAsarPatch(), yaze::editor::MenuOrchestrator::OnUpgradeRom(), yaze::editor::MenuOrchestrator::OnValidateRom(), OpenRomOrProject(), SaveProject(), SaveRom(), SaveRomAs(), SetCurrentRom(), yaze::editor::UICoordinator::ShouldShowActivityBar(), ShowProjectManagement(), and Update().
|
inline |
Definition at line 146 of file editor_manager.h.
References session_coordinator_.
|
inline |
Definition at line 150 of file editor_manager.h.
References session_coordinator_.
Referenced by DrawMenuBar(), EditorManager(), Initialize(), LoadAssets(), LoadProjectWithRom(), LoadRom(), OpenEditorAndPanelsFromFlags(), OpenRomOrProject(), overworld(), SaveProject(), SaveRom(), and Update().
|
inline |
Definition at line 154 of file editor_manager.h.
References current_editor_.
Referenced by yaze::editor::PopupManager::DrawLayoutPresetsPopup(), yaze::editor::MenuOrchestrator::HasCurrentEditor(), yaze::editor::UICoordinator::HideCurrentEditorPanels(), Initialize(), yaze::editor::MenuOrchestrator::OnCopy(), yaze::editor::MenuOrchestrator::OnCut(), yaze::editor::MenuOrchestrator::OnFind(), yaze::editor::MenuOrchestrator::OnPaste(), yaze::editor::MenuOrchestrator::OnRedo(), and yaze::editor::MenuOrchestrator::OnUndo().
|
inline |
Definition at line 155 of file editor_manager.h.
References current_editor_, right_panel_manager_, and yaze::editor::Editor::type().
Referenced by yaze::editor::SessionCoordinator::UpdateSessions().

|
inline |
Definition at line 162 of file editor_manager.h.
References session_coordinator_.
Referenced by ApplyLayoutPreset(), ConfigureEditorDependencies(), yaze::editor::PopupManager::DrawSessionManagerPopup(), EditorManager(), HideCurrentEditorPanels(), LoadProjectWithRom(), LoadRom(), yaze::editor::MenuOrchestrator::OnShowHexEditor(), yaze::editor::MenuOrchestrator::OnShowMemoryEditor(), OpenEditorAndPanelsFromFlags(), OpenRomOrProject(), ResetCurrentEditorLayout(), and Update().
|
inline |
Definition at line 166 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::OnShowEmulator(), yaze::editor::MenuOrchestrator::OnShowGlobalSearch(), yaze::editor::MenuOrchestrator::OnShowPanelBrowser(), yaze::editor::MenuOrchestrator::OnShowPerformanceDashboard(), yaze::editor::MenuOrchestrator::OnShowResourceLabelManager(), yaze::editor::MenuOrchestrator::OnShowSessionSwitcher(), and yaze::editor::MenuOrchestrator::OnShowWelcomeScreen().
|
inline |
Definition at line 167 of file editor_manager.h.
References GetCurrentEditorSet().
Referenced by yaze::Controller::overworld().

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

|
inline |
Definition at line 189 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 200 of file editor_manager.h.
References yaze::editor::WorkspaceManager::RefreshPresets(), and workspace_manager_.
Referenced by yaze::editor::UICoordinator::DrawWorkspacePresetDialogs().

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

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

| void yaze::editor::EditorManager::JumpToDungeonRoom | ( | int | room_id | ) |
Definition at line 2325 of file editor_manager.cc.
References editor_activator_, and yaze::editor::EditorActivator::JumpToDungeonRoom().
Referenced by ProcessStartupActions().

| void yaze::editor::EditorManager::JumpToOverworldMap | ( | int | map_id | ) |
Definition at line 2329 of file editor_manager.cc.
References editor_activator_, and yaze::editor::EditorActivator::JumpToOverworldMap().
Referenced by ProcessStartupActions().

| void yaze::editor::EditorManager::SwitchToEditor | ( | EditorType | editor_type, |
| bool | force_visible = false, | ||
| bool | from_dialog = false ) |
Definition at line 2333 of file editor_manager.cc.
References editor_activator_, yaze::editor::kAgent, and yaze::editor::EditorActivator::SwitchToEditor().
Referenced by yaze::editor::DashboardPanel::DrawEditorPanel(), yaze::editor::DashboardPanel::DrawRecentEditors(), Initialize(), yaze::editor::MenuOrchestrator::OnShowAssemblyEditor(), yaze::editor::MenuOrchestrator::OnShowSettings(), yaze::editor::MenuOrchestrator::OnSwitchToEditor(), and OpenEditorAndPanelsFromFlags().

|
static |
Definition at line 144 of file editor_manager.cc.
References yaze::editor::EditorRegistry::IsPanelBasedEditor().
Referenced by Update(), and yaze::editor::SessionCoordinator::UpdateSessions().

|
inline |
Definition at line 216 of file editor_manager.h.
References ui_coordinator_.
|
inline |
Definition at line 219 of file editor_manager.h.
References ui_coordinator_.
| void yaze::editor::EditorManager::HideCurrentEditorPanels | ( | ) |
Definition at line 148 of file editor_manager.cc.
References current_editor_, editor_registry_, GetCurrentSessionId(), yaze::editor::EditorRegistry::GetEditorCategory(), yaze::editor::PanelManager::HideAllPanelsInCategory(), panel_manager_, and yaze::editor::Editor::type().

| void yaze::editor::EditorManager::CreateNewSession | ( | ) |
Definition at line 2270 of file editor_manager.cc.
References session_coordinator_.
Referenced by yaze::editor::PopupManager::DrawSessionManagerPopup().
| void yaze::editor::EditorManager::DuplicateCurrentSession | ( | ) |
Definition at line 2277 of file editor_manager.cc.
References session_coordinator_.
| void yaze::editor::EditorManager::CloseCurrentSession | ( | ) |
Definition at line 2283 of file editor_manager.cc.
References session_coordinator_.
| void yaze::editor::EditorManager::RemoveSession | ( | size_t | index | ) |
Definition at line 2289 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 2295 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 2308 of file editor_manager.cc.
References session_coordinator_.
Referenced by yaze::editor::PopupManager::DrawSessionManagerPopup().
|
inline |
Definition at line 238 of file editor_manager.h.
References yaze::editor::WindowDelegate::SaveWorkspaceLayout(), and window_delegate_.
Referenced by yaze::editor::MenuOrchestrator::OnSaveWorkspaceLayout().

|
inline |
Definition at line 239 of file editor_manager.h.
References yaze::editor::WindowDelegate::LoadWorkspaceLayout(), and window_delegate_.
Referenced by yaze::editor::MenuOrchestrator::OnLoadWorkspaceLayout().

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

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

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

|
inline |
Definition at line 253 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 163 of file editor_manager.cc.
References yaze::editor::LayoutCoordinator::ApplyLayoutPreset(), GetCurrentSessionId(), and layout_coordinator_.
Referenced by yaze::editor::MenuOrchestrator::AddWindowMenuItems(), yaze::editor::MenuOrchestrator::OnLoadDesignerLayout(), yaze::editor::MenuOrchestrator::OnLoadDeveloperLayout(), and yaze::editor::MenuOrchestrator::OnLoadModderLayout().

| void yaze::editor::EditorManager::ResetCurrentEditorLayout | ( | ) |
Definition at line 167 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::AddWindowMenuItems().

| std::string yaze::editor::EditorManager::GenerateUniqueEditorTitle | ( | EditorType | type, |
| size_t | session_index ) const |
Definition at line 2313 of file editor_manager.cc.
References yaze::editor::kEditorNames, and session_coordinator_.
| bool yaze::editor::EditorManager::HasDuplicateSession | ( | const std::string & | filepath | ) |
Definition at line 2371 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 264 of file editor_manager.h.
References quit_.
Referenced by yaze::editor::MenuOrchestrator::OnQuit().
|
inline |
Definition at line 268 of file editor_manager.h.
References deferred_actions_.
Referenced by EditorManager(), and yaze::editor::MenuOrchestrator::OnResetWorkspaceLayout().
| void yaze::editor::EditorManager::ConfigureSession | ( | RomSession * | session | ) |
Definition at line 2347 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_.
Referenced by yaze::editor::SessionCoordinator::CreateNewSession(), and yaze::editor::SessionCoordinator::DuplicateCurrentSession().

|
inline |
Definition at line 284 of file editor_manager.h.
References ui_coordinator_.
Referenced by yaze::editor::MenuOrchestrator::OnShowImGuiDemo().
|
inline |
Definition at line 288 of file editor_manager.h.
References ui_coordinator_.
Referenced by yaze::editor::MenuOrchestrator::OnShowImGuiMetrics().
|
inline |
Definition at line 303 of file editor_manager.h.
|
inline |
Definition at line 304 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 1489 of file editor_manager.cc.
References ConfigureEditorDependencies(), current_project_, yaze::test::TestManager::Get(), GetCurrentEditorSet(), GetCurrentRom(), GetCurrentSessionId(), yaze::project::RecentFilesManager::GetInstance(), yaze::zelda3::GetResourceLabels(), yaze::editor::kError, yaze::editor::kWarning, LoadAssets(), yaze::editor::RomFileManager::LoadRom(), LOG_INFO, yaze::util::MakeRomFileDialogOptions(), yaze::editor::RomLoadOptionsDialog::Open(), OpenRomOrProject(), yaze::project::WorkspaceSettings::prefer_hmagic_names, yaze::project::YazeProject::resource_labels, 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 yaze::project::YazeProject::workspace_settings.
Referenced by CreateNewProject(), yaze::editor::UICoordinator::DrawMobileNavigation(), Initialize(), yaze::editor::MenuOrchestrator::OnOpenRom(), and yaze::editor::UICoordinator::UICoordinator().
| absl::Status yaze::editor::EditorManager::SaveRom | ( | ) |
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 1759 of file editor_manager.cc.
References yaze::gfx::Arena::Get(), yaze::core::FeatureFlags::get(), GetCurrentEditorSet(), GetCurrentRom(), RETURN_IF_ERROR, rom_file_manager_, yaze::zelda3::SaveAllGraphicsData(), yaze::zelda3::SaveDungeonMaps(), and yaze::editor::RomFileManager::SaveRom().
Referenced by Initialize(), yaze::editor::MenuOrchestrator::OnSaveRom(), and SaveRomAs().
| absl::Status yaze::editor::EditorManager::SaveRomAs | ( | const std::string & | filename | ) |
Definition at line 1782 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 1811 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(), GetCurrentEditorSet(), GetCurrentRom(), GetCurrentSessionId(), yaze::zelda3::GetResourceLabels(), yaze::editor::PanelManager::kDashboardCategory, LoadAssets(), LoadProjectWithRom(), yaze::editor::RomFileManager::LoadRom(), LOG_DEBUG, LOG_INFO, yaze::project::YazeProject::Open(), panel_manager_, yaze::project::WorkspaceSettings::prefer_hmagic_names, yaze::project::YazeProject::resource_labels, RETURN_IF_ERROR, rom_file_manager_, session_coordinator_, yaze::editor::PanelManager::SetActiveCategory(), yaze::test::TestManager::SetCurrentRom(), yaze::editor::PanelManager::SetFileBrowserPath(), ui_coordinator_, version_manager_, and yaze::project::YazeProject::workspace_settings.
Referenced by yaze::editor::UICoordinator::DrawGlobalSearch(), Initialize(), LoadRom(), yaze::Controller::LoadRomForTesting(), and yaze::editor::UICoordinator::UICoordinator().
| absl::Status yaze::editor::EditorManager::CreateNewProject | ( | const std::string & | template_name = "Basic ROM Hack" | ) |
Definition at line 1920 of file editor_manager.cc.
References yaze::editor::ProjectManager::CreateNewProject(), current_project_, yaze::editor::ProjectManager::GetCurrentProject(), LoadRom(), project_manager_, and ui_coordinator_.
Referenced by yaze::editor::PopupManager::DrawNewProjectPopup(), Initialize(), yaze::editor::MenuOrchestrator::OnCreateProject(), SaveProject(), and yaze::editor::UICoordinator::UICoordinator().

| absl::Status yaze::editor::EditorManager::OpenProject | ( | ) |
Definition at line 1939 of file editor_manager.cc.
References current_project_, yaze::editor::kError, yaze::editor::kWarning, LoadProjectWithRom(), yaze::project::YazeProject::Open(), popup_manager_, RETURN_IF_ERROR, yaze::editor::ToastManager::Show(), yaze::util::FileDialogWrapper::ShowOpenFileDialog(), yaze::util::FileDialogWrapper::ShowOpenFileDialogAsync(), toast_manager_, yaze::project::YazeProject::Validate(), and version_manager_.
Referenced by yaze::editor::MenuOrchestrator::OnOpenProject().
| absl::Status yaze::editor::EditorManager::SaveProject | ( | ) |
Definition at line 2153 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, 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 EditorManager(), and yaze::editor::MenuOrchestrator::OnSaveProject().
| absl::Status yaze::editor::EditorManager::SaveProjectAs | ( | ) |
Definition at line 2185 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(), and toast_manager_.
Referenced by yaze::editor::MenuOrchestrator::OnSaveProjectAs().
| absl::Status yaze::editor::EditorManager::ImportProject | ( | const std::string & | project_path | ) |
Definition at line 2226 of file editor_manager.cc.
References current_project_, yaze::editor::ProjectManager::GetCurrentProject(), yaze::editor::ProjectManager::ImportProject(), project_manager_, and RETURN_IF_ERROR.

| absl::Status yaze::editor::EditorManager::RepairCurrentProject | ( | ) |
Definition at line 2234 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 1988 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::project::YazeProject::code_folder, ConfigureEditorDependencies(), current_project_, 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(), GetCurrentEditorSet(), GetCurrentRom(), GetCurrentSessionId(), yaze::project::YazeProject::GetDisplayName(), yaze::project::RecentFilesManager::GetInstance(), yaze::project::YazeProject::InitializeResourceLabelProvider(), yaze::editor::PanelManager::kDashboardCategory, yaze::editor::kError, yaze::editor::kInfo, yaze::editor::kSuccess, yaze::editor::kWarning, LoadAssets(), LoadProjectWithRom(), yaze::editor::RomFileManager::LoadRom(), LOG_DEBUG, LOG_INFO, yaze::util::MakeRomFileDialogOptions(), panel_manager_, yaze::editor::UserSettings::prefs(), project_management_panel_, RETURN_IF_ERROR, rom_file_manager_, yaze::project::YazeProject::rom_filename, yaze::project::YazeProject::Save(), session_coordinator_, yaze::editor::PanelManager::SetActiveCategory(), yaze::test::TestManager::SetCurrentRom(), yaze::editor::PanelManager::SetFileBrowserPath(), yaze::editor::ToastManager::Show(), yaze::util::FileDialogWrapper::ShowOpenFileDialog(), yaze::util::FileDialogWrapper::ShowOpenFileDialogAsync(), toast_manager_, ui_coordinator_, user_settings_, version_manager_, and yaze::project::YazeProject::workspace_settings.
Referenced by EditorManager(), LoadProjectWithRom(), OpenProject(), and OpenRomOrProject().
|
inline |
Definition at line 325 of file editor_manager.h.
References current_project_.
Referenced by yaze::editor::MenuOrchestrator::HasProjectFile().
|
inline |
Definition at line 326 of file editor_manager.h.
References current_project_.
|
inline |
Definition at line 327 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 2400 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().

| void yaze::editor::EditorManager::ShowProjectFileEditor | ( | ) |
Definition at line 2412 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().

|
privatedelete |
|
private |
Definition at line 1566 of file editor_manager.cc.
References current_project_, emulator_, yaze::gfx::PerformanceProfiler::Get(), yaze::gfx::Arena::Get(), GetCurrentEditorSet(), GetCurrentRom(), yaze::zelda3::LoadGameData(), LOG_DEBUG, yaze::gfx::Arena::mutable_gfx_sheets(), yaze::editor::UserSettings::prefs(), yaze::gfx::PerformanceProfiler::PrintSummary(), renderer_, 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 LoadProjectWithRom(), LoadRom(), and OpenRomOrProject().
|
private |
Definition at line 448 of file editor_manager.cc.
References yaze::test::TestManager::Get(), and yaze::test::RegisterZ3edTestSuites().
Referenced by Initialize().

|
private |
Definition at line 985 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 |
|
private |
|
private |
Definition at line 2429 of file editor_manager.cc.
References yaze::editor::EditorSet::ApplyDependencies(), current_project_, yaze::editor::EditorDependencies::emulator, emulator_, GetCurrentSessionId(), 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::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 346 of file editor_manager.h.
|
private |
Definition at line 352 of file editor_manager.h.
|
private |
Definition at line 353 of file editor_manager.h.
|
private |
Definition at line 354 of file editor_manager.h.
|
private |
Definition at line 360 of file editor_manager.h.
Referenced by DrawMenuBar(), EditorManager(), and Initialize().
|
private |
Definition at line 361 of file editor_manager.h.
|
private |
Definition at line 364 of file editor_manager.h.
Referenced by DrawMenuBar(), Initialize(), and Update().
|
private |
Definition at line 367 of file editor_manager.h.
Referenced by DrawMenuBar(), Initialize(), and ShowProjectFileEditor().
|
private |
Definition at line 371 of file editor_manager.h.
Referenced by ApplyStartupVisibilityOverrides(), EditorManager(), OpenEditorAndPanelsFromFlags(), and Update().
|
private |
Definition at line 372 of file editor_manager.h.
Referenced by Initialize().
|
private |
Definition at line 373 of file editor_manager.h.
Referenced by Initialize(), LoadRom(), and Update().
|
private |
Definition at line 374 of file editor_manager.h.
Referenced by Initialize(), LoadRom(), and Update().
|
private |
Definition at line 375 of file editor_manager.h.
Referenced by ApplyStartupVisibility(), and ApplyStartupVisibilityOverrides().
|
private |
Definition at line 376 of file editor_manager.h.
Referenced by ApplyStartupVisibility(), and ApplyStartupVisibilityOverrides().
|
private |
Definition at line 377 of file editor_manager.h.
Referenced by ApplyStartupVisibility(), and ApplyStartupVisibilityOverrides().
|
private |
Definition at line 380 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), EditorManager(), and OnSessionSwitched().
|
private |
Definition at line 383 of file editor_manager.h.
Referenced by EditorManager(), LoadProjectWithRom(), and ShowProjectManagement().
|
private |
Definition at line 385 of file editor_manager.h.
Referenced by EditorManager(), and version().
|
private |
Definition at line 386 of file editor_manager.h.
Referenced by Initialize(), and Update().
|
private |
Definition at line 387 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), DrawMenuBar(), emulator(), Initialize(), and LoadAssets().
|
private |
Definition at line 391 of file editor_manager.h.
Referenced by GetCurrentEditor(), HideCurrentEditorPanels(), ResetCurrentEditorLayout(), SetCurrentEditor(), and Update().
|
private |
Definition at line 395 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), Initialize(), and LoadAssets().
|
private |
Definition at line 397 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), CreateNewProject(), DrawMenuBar(), EditorManager(), GetCurrentProject(), GetCurrentProject(), ImportProject(), LoadAssets(), LoadProjectWithRom(), LoadRom(), OpenProject(), OpenRomOrProject(), RepairCurrentProject(), SaveProject(), SaveProjectAs(), ShowProjectFileEditor(), ShowProjectManagement(), and Update().
|
private |
Definition at line 398 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), GetVersionManager(), LoadProjectWithRom(), OpenProject(), OpenRomOrProject(), and ShowProjectManagement().
|
private |
Definition at line 399 of file editor_manager.h.
Referenced by ConfigureEditorDependencies().
|
private |
Definition at line 400 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), DrawMenuBar(), EditorManager(), Initialize(), and OpenProject().
|
private |
Definition at line 401 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), EditorManager(), Initialize(), LoadProjectWithRom(), LoadRom(), OpenProject(), RepairCurrentProject(), ResetCurrentEditorLayout(), SaveProjectAs(), ShowProjectFileEditor(), and Update().
|
private |
Definition at line 402 of file editor_manager.h.
Referenced by EditorManager(), and menu_builder().
|
private |
Definition at line 403 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), EditorManager(), Initialize(), and Update().
|
private |
Definition at line 404 of file editor_manager.h.
Referenced by ConfigureEditorDependencies(), ConfigureSession(), EditorManager(), Initialize(), LoadAssets(), LoadProjectWithRom(), SaveProject(), SetFontGlobalScale(), and Update().
|
private |
Definition at line 407 of file editor_manager.h.
Referenced by ApplyStartupVisibilityOverrides(), card_registry(), card_registry(), ConfigureEditorDependencies(), DrawMenuBar(), EditorManager(), GetPanelManager(), HideCurrentEditorPanels(), Initialize(), LoadProjectWithRom(), OpenEditorAndPanelsFromFlags(), OpenRomOrProject(), panel_manager(), panel_manager(), and Update().
|
private |
Definition at line 408 of file editor_manager.h.
Referenced by EditorManager(), HideCurrentEditorPanels(), and Initialize().
|
private |
Definition at line 409 of file editor_manager.h.
Referenced by DrawMenuBar(), EditorManager(), and Initialize().
|
private |
Definition at line 410 of file editor_manager.h.
Referenced by CreateNewProject(), EditorManager(), ImportProject(), and Initialize().
|
private |
Definition at line 411 of file editor_manager.h.
Referenced by EditorManager(), Initialize(), LoadProjectWithRom(), LoadRom(), OpenRomOrProject(), SaveRom(), and SaveRomAs().
|
private |
Definition at line 412 of file editor_manager.h.
Referenced by ApplyStartupVisibilityOverrides(), CreateNewProject(), DrawMenuBar(), EditorManager(), HideAllWindows(), Initialize(), IsSidebarVisible(), LoadProjectWithRom(), LoadRom(), OpenEditorAndPanelsFromFlags(), OpenRomOrProject(), SetSidebarVisible(), ShowAllWindows(), ShowImGuiDemo(), ShowImGuiMetrics(), ui_coordinator(), and Update().
|
private |
Definition at line 413 of file editor_manager.h.
Referenced by EditorManager(), LoadDesignerLayout(), LoadDeveloperLayout(), LoadModderLayout(), LoadWorkspaceLayout(), and SaveWorkspaceLayout().
|
private |
Definition at line 414 of file editor_manager.h.
Referenced by EditorManager(), JumpToDungeonRoom(), JumpToOverworldMap(), and SwitchToEditor().
|
private |
Definition at line 415 of file editor_manager.h.
Referenced by CloseCurrentSession(), CreateNewSession(), DuplicateCurrentSession(), EditorManager(), GenerateUniqueEditorTitle(), GetActiveSessionCount(), GetCurrentEditorSet(), GetCurrentFeatureFlags(), GetCurrentGameData(), GetCurrentRom(), GetCurrentSessionId(), GetCurrentSessionIndex(), HasDuplicateSession(), Initialize(), LoadAssets(), LoadProjectWithRom(), LoadRom(), OpenRomOrProject(), RemoveSession(), SaveProject(), SaveRomAs(), yaze::editor::EditorManager::SessionScope::SessionScope(), SetCurrentRom(), SwitchToSession(), Update(), and ~EditorManager().
|
private |
Definition at line 417 of file editor_manager.h.
Referenced by EditorManager().
|
private |
Definition at line 418 of file editor_manager.h.
Referenced by ApplyLayoutPreset(), EditorManager(), GetBottomLayoutOffset(), GetLeftLayoutOffset(), GetRightLayoutOffset(), ResetCurrentEditorLayout(), ResetWorkspaceLayout(), and Update().
|
private |
Definition at line 420 of file editor_manager.h.
Referenced by EditorManager(), Initialize(), LoadAssets(), OnSessionSwitched(), right_panel_manager(), SetCurrentEditor(), ShowProjectManagement(), and Update().
|
private |
Definition at line 421 of file editor_manager.h.
Referenced by EditorManager(), LoadAssets(), OnSessionSwitched(), status_bar(), and Update().
|
private |
Definition at line 422 of file editor_manager.h.
Referenced by EditorManager(), and Update().
|
private |
Definition at line 423 of file editor_manager.h.
Referenced by Initialize(), LoadWorkspacePreset(), RefreshWorkspacePresets(), SaveWorkspacePreset(), and workspace_manager().
|
private |
Definition at line 428 of file editor_manager.h.
Referenced by Update().
|
private |
Definition at line 431 of file editor_manager.h.
Referenced by QueueDeferredAction(), and Update().
|
private |
Definition at line 434 of file editor_manager.h.
Referenced by EditorManager().
|
private |
Definition at line 435 of file editor_manager.h.
Referenced by EditorManager().