yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::UICoordinator Class Reference

Handles all UI drawing operations and state management. More...

#include <ui_coordinator.h>

Public Member Functions

 UICoordinator (EditorManager *editor_manager, RomFileManager &rom_manager, ProjectManager &project_manager, EditorRegistry &editor_registry, WorkspaceWindowManager &card_registry, SessionCoordinator &session_coordinator, WindowDelegate &window_delegate, ToastManager &toast_manager, PopupManager &popup_manager, ShortcutManager &shortcut_manager)
 
 ~UICoordinator ()=default
 
 UICoordinator (const UICoordinator &)=delete
 
UICoordinatoroperator= (const UICoordinator &)=delete
 
void DrawBackground ()
 
void DrawAllUI ()
 
void DrawMenuBarExtras ()
 
void DrawNotificationBell (bool show_dirty, bool has_dirty_rom, bool show_session, bool has_multiple_sessions)
 
void DrawSessionButton ()
 
void DrawCommandPalette ()
 
void DrawPanelFinder ()
 
void DrawGlobalSearch ()
 
void DrawWorkspacePresetDialogs ()
 
void DrawSessionSwitcher ()
 
void DrawSessionManager ()
 
void DrawSessionRenameDialog ()
 
void DrawLayoutPresets ()
 
void DrawWelcomeScreen ()
 
void DrawProjectHelp ()
 
void OpenNewProjectDialog (const std::string &initial_template="Vanilla ROM Hack")
 
bool IsNewProjectDialogOpen () const
 
void DrawWindowManagementUI ()
 
void DrawAllPopups ()
 
void ShowPopup (const std::string &popup_name)
 
void HidePopup (const std::string &popup_name)
 
void ShowEditorSelection ()
 
void ShowDisplaySettings ()
 
void ShowSaveWorkspacePresetDialog ()
 
void ShowLoadWorkspacePresetDialog ()
 
void ShowSessionSwitcher ()
 
void TogglePanelSidebar ()
 
void ShowGlobalSearch ()
 
void ShowCommandPalette ()
 
void ShowPanelFinder ()
 
void ShowWindowBrowser ()
 
void InitializeCommandPalette (size_t session_id)
 Initialize command palette with all discoverable commands.
 
void RefreshWorkflowActions ()
 
void RefreshCommandPalette (size_t session_id)
 Refresh command palette commands (call after session switch)
 
CommandPalettecommand_palette ()
 
bool IsMenuBarVisible () const
 
void SetMenuBarVisible (bool visible)
 
void ToggleMenuBar ()
 
void DrawMenuBarRestoreButton ()
 
void ShowAllWindows ()
 
void HideAllWindows ()
 
bool IsEditorSelectionVisible () const
 
bool IsDisplaySettingsVisible () const
 
bool IsSessionSwitcherVisible () const
 
bool IsWelcomeScreenVisible () const
 
bool IsWelcomeScreenManuallyClosed () const
 
bool IsGlobalSearchVisible () const
 
bool IsPerformanceDashboardVisible () const
 
bool IsWindowBrowserVisible () const
 
bool IsCommandPaletteVisible () const
 
bool IsPanelSidebarVisible () const
 
bool IsImGuiDemoVisible () const
 
bool IsImGuiMetricsVisible () const
 
bool IsEmulatorVisible () const
 
bool IsAsmEditorVisible () const
 
bool IsResourceLabelManagerVisible () const
 
bool IsAIAgentVisible () const
 
bool IsChatHistoryVisible () const
 
bool IsProposalDrawerVisible () const
 
void SetEditorSelectionVisible (bool visible)
 
void SetDisplaySettingsVisible (bool visible)
 
void SetSessionSwitcherVisible (bool visible)
 
void SetWelcomeScreenVisible (bool visible)
 
void SetWelcomeScreenManuallyClosed (bool closed)
 
void SetWelcomeScreenBehavior (StartupVisibility mode)
 
void SetGlobalSearchVisible (bool visible)
 
void SetPerformanceDashboardVisible (bool visible)
 
void SetWindowBrowserVisible (bool visible)
 
void SetCommandPaletteVisible (bool visible)
 
void SetPanelSidebarVisible (bool visible)
 
void SetImGuiDemoVisible (bool visible)
 
void SetImGuiMetricsVisible (bool visible)
 
void SetEmulatorVisible (bool visible)
 
void SetAsmEditorVisible (bool visible)
 
void SetResourceLabelManagerVisible (bool visible)
 
void SetDashboardBehavior (StartupVisibility mode)
 
void SetAIAgentVisible (bool visible)
 
StartupSurface GetCurrentStartupSurface () const
 
void SetStartupSurface (StartupSurface surface)
 
bool ShouldShowWelcome () const
 
bool ShouldShowDashboard () const
 
bool ShouldShowActivityBar () const
 
void SetChatHistoryVisible (bool visible)
 
void SetProposalDrawerVisible (bool visible)
 

Private Member Functions

bool DrawMenuBarIconButton (const char *icon, const char *tooltip, bool is_active=false)
 
void DrawMaterialButton (const std::string &text, const std::string &icon, const ImVec4 &color, std::function< void()> callback, bool enabled=true)
 
bool IsCompactLayout () const
 
void CenterWindow (const std::string &window_name)
 
void PositionWindow (const std::string &window_name, float x, float y)
 
void SetWindowSize (const std::string &window_name, float width, float height)
 

Static Private Member Functions

static float GetMenuBarIconButtonWidth ()
 

Private Attributes

EditorManagereditor_manager_
 
RomFileManagerrom_manager_
 
ProjectManagerproject_manager_
 
EditorRegistryeditor_registry_
 
WorkspaceWindowManagerwindow_manager_
 
SessionCoordinatorsession_coordinator_
 
WindowDelegatewindow_delegate_
 
ToastManagertoast_manager_
 
PopupManagerpopup_manager_
 
ShortcutManagershortcut_manager_
 
bool show_editor_selection_ = false
 
bool show_display_settings_ = false
 
bool show_welcome_screen_ = true
 
bool welcome_screen_manually_closed_ = false
 
bool show_global_search_ = false
 
bool show_performance_dashboard_ = false
 
bool show_imgui_demo_ = false
 
bool show_imgui_metrics_ = false
 
bool show_test_dashboard_ = false
 
bool show_panel_browser_ = false
 
bool show_panel_finder_ = false
 
bool show_command_palette_ = false
 
bool show_resource_label_manager_ = false
 
bool show_ai_agent_ = false
 
bool show_chat_history_ = false
 
bool show_proposal_drawer_ = false
 
bool show_save_workspace_preset_ = false
 
bool show_load_workspace_preset_ = false
 
bool show_menu_bar_ = true
 
StartupVisibility welcome_behavior_override_ = StartupVisibility::kAuto
 
StartupVisibility dashboard_behavior_override_ = StartupVisibility::kAuto
 
StartupSurface current_startup_surface_ = StartupSurface::kWelcome
 
CommandPalette command_palette_
 
bool command_palette_initialized_ = false
 
char command_palette_query_ [256] = {}
 
int command_palette_selected_idx_ = 0
 
char panel_finder_query_ [256] = {}
 
int panel_finder_selected_idx_ = 0
 
char global_search_query_ [256] = {}
 
std::unique_ptr< WelcomeScreenwelcome_screen_
 
NewProjectDialog new_project_dialog_
 

Detailed Description

Handles all UI drawing operations and state management.

Extracted from EditorManager to provide focused UI coordination:

  • Drawing operations (menus, dialogs, screens)
  • UI state management (visibility, focus, layout)
  • Popup and dialog coordination
  • Welcome screen and session UI
  • Material Design theming and icons

This class follows the Single Responsibility Principle by focusing solely on UI presentation and user interaction, delegating business logic to specialized managers.

Definition at line 59 of file ui_coordinator.h.

Constructor & Destructor Documentation

◆ UICoordinator() [1/2]

◆ ~UICoordinator()

yaze::editor::UICoordinator::~UICoordinator ( )
default

◆ UICoordinator() [2/2]

yaze::editor::UICoordinator::UICoordinator ( const UICoordinator & )
delete

Member Function Documentation

◆ operator=()

UICoordinator & yaze::editor::UICoordinator::operator= ( const UICoordinator & )
delete

◆ DrawBackground()

void yaze::editor::UICoordinator::DrawBackground ( )

Definition at line 249 of file ui_coordinator.cc.

References yaze::gui::BackgroundRenderer::Get(), and yaze::gui::ThemeManager::Get().

Here is the call graph for this function:

◆ DrawAllUI()

◆ DrawMenuBarExtras()

◆ DrawNotificationBell()

◆ DrawSessionButton()

◆ DrawCommandPalette()

◆ DrawPanelFinder()

◆ DrawGlobalSearch()

◆ DrawWorkspacePresetDialogs()

◆ DrawSessionSwitcher()

void yaze::editor::UICoordinator::DrawSessionSwitcher ( )

◆ DrawSessionManager()

void yaze::editor::UICoordinator::DrawSessionManager ( )

◆ DrawSessionRenameDialog()

void yaze::editor::UICoordinator::DrawSessionRenameDialog ( )

◆ DrawLayoutPresets()

void yaze::editor::UICoordinator::DrawLayoutPresets ( )
Todo
[EditorManagerRefactor] Implement full layout preset UI with

Definition at line 832 of file ui_coordinator.cc.

Referenced by DrawAllUI().

◆ DrawWelcomeScreen()

◆ DrawProjectHelp()

void yaze::editor::UICoordinator::DrawProjectHelp ( )
Todo
[EditorManagerRefactor] Implement project help dialog

Definition at line 917 of file ui_coordinator.cc.

Referenced by DrawAllUI().

◆ OpenNewProjectDialog()

void yaze::editor::UICoordinator::OpenNewProjectDialog ( const std::string & initial_template = "Vanilla ROM Hack")
inline

Definition at line 98 of file ui_coordinator.h.

References new_project_dialog_, and yaze::editor::NewProjectDialog::Open().

Here is the call graph for this function:

◆ IsNewProjectDialogOpen()

bool yaze::editor::UICoordinator::IsNewProjectDialogOpen ( ) const
inline

Definition at line 102 of file ui_coordinator.h.

References yaze::editor::NewProjectDialog::IsOpen(), and new_project_dialog_.

Here is the call graph for this function:

◆ DrawWindowManagementUI()

void yaze::editor::UICoordinator::DrawWindowManagementUI ( )
Todo
[EditorManagerRefactor] Implement window management dialog

Definition at line 966 of file ui_coordinator.cc.

Referenced by DrawAllUI().

◆ DrawAllPopups()

void yaze::editor::UICoordinator::DrawAllPopups ( )

Definition at line 971 of file ui_coordinator.cc.

References yaze::editor::PopupManager::DrawPopups(), and popup_manager_.

Referenced by DrawAllUI().

Here is the call graph for this function:

◆ ShowPopup()

void yaze::editor::UICoordinator::ShowPopup ( const std::string & popup_name)

Definition at line 976 of file ui_coordinator.cc.

References popup_manager_, and yaze::editor::PopupManager::Show().

Here is the call graph for this function:

◆ HidePopup()

void yaze::editor::UICoordinator::HidePopup ( const std::string & popup_name)

Definition at line 980 of file ui_coordinator.cc.

References yaze::editor::PopupManager::Hide(), and popup_manager_.

Here is the call graph for this function:

◆ ShowEditorSelection()

void yaze::editor::UICoordinator::ShowEditorSelection ( )
inline

Definition at line 113 of file ui_coordinator.h.

References show_editor_selection_.

◆ ShowDisplaySettings()

void yaze::editor::UICoordinator::ShowDisplaySettings ( )

Definition at line 984 of file ui_coordinator.cc.

References yaze::editor::PopupID::kDisplaySettings, popup_manager_, and yaze::editor::PopupManager::Show().

Here is the call graph for this function:

◆ ShowSaveWorkspacePresetDialog()

void yaze::editor::UICoordinator::ShowSaveWorkspacePresetDialog ( )
inline

Definition at line 115 of file ui_coordinator.h.

References show_save_workspace_preset_.

◆ ShowLoadWorkspacePresetDialog()

void yaze::editor::UICoordinator::ShowLoadWorkspacePresetDialog ( )
inline

Definition at line 116 of file ui_coordinator.h.

References show_load_workspace_preset_.

◆ ShowSessionSwitcher()

void yaze::editor::UICoordinator::ShowSessionSwitcher ( )

Definition at line 740 of file ui_coordinator.cc.

References session_coordinator_, and yaze::editor::SessionCoordinator::ShowSessionSwitcher().

Here is the call graph for this function:

◆ TogglePanelSidebar()

void yaze::editor::UICoordinator::TogglePanelSidebar ( )

Definition at line 994 of file ui_coordinator.cc.

References yaze::editor::WorkspaceWindowManager::ToggleSidebarVisibility(), and window_manager_.

Here is the call graph for this function:

◆ ShowGlobalSearch()

void yaze::editor::UICoordinator::ShowGlobalSearch ( )
inline

Definition at line 121 of file ui_coordinator.h.

References show_global_search_.

◆ ShowCommandPalette()

void yaze::editor::UICoordinator::ShowCommandPalette ( )

◆ ShowPanelFinder()

void yaze::editor::UICoordinator::ShowPanelFinder ( )
inline

Definition at line 123 of file ui_coordinator.h.

References show_panel_finder_.

◆ ShowWindowBrowser()

void yaze::editor::UICoordinator::ShowWindowBrowser ( )
inline

Definition at line 124 of file ui_coordinator.h.

References show_panel_browser_.

◆ InitializeCommandPalette()

void yaze::editor::UICoordinator::InitializeCommandPalette ( size_t session_id)

Initialize command palette with all discoverable commands.

Parameters
session_idCurrent session ID for panel commands

Definition at line 1482 of file ui_coordinator.cc.

References yaze::editor::CommandPalette::AddCommand(), yaze::editor::EditorManager::ApplyLayoutPreset(), yaze::editor::CommandPalette::Clear(), yaze::editor::WelcomeCommandsProvider::Callbacks::clear_recents, command_palette_, command_palette_initialized_, yaze::editor::WelcomeCommandsProvider::Callbacks::create_from_template, current_startup_surface_, yaze::editor::WelcomeCommandsProvider::Callbacks::dismiss_welcome, editor_manager_, yaze::util::PlatformPaths::GetConfigDirectory(), yaze::editor::EditorRegistry::GetEditorTypeFromCategory(), yaze::editor::kDashboard, yaze::editor::kError, yaze::editor::kInfo, yaze::editor::CommandCategory::kLayout, yaze::editor::kSettings, yaze::editor::kWarning, yaze::editor::kWelcome, yaze::editor::CommandPalette::LoadHistory(), yaze::editor::WelcomeCommandsProvider::Callbacks::model, new_project_dialog_, yaze::editor::NewProjectDialog::Open(), yaze::editor::EditorManager::OpenRomOrProject(), RefreshWorkflowActions(), yaze::editor::CommandPalette::RegisterProvider(), yaze::editor::WelcomeCommandsProvider::Callbacks::remove, SetStartupSurface(), yaze::editor::ToastManager::Show(), yaze::editor::WelcomeCommandsProvider::Callbacks::show_welcome, yaze::editor::EditorManager::SwitchToEditor(), yaze::editor::WelcomeCommandsProvider::Callbacks::template_names, toast_manager_, yaze::editor::WelcomeCommandsProvider::Callbacks::toggle_pin, yaze::editor::WelcomeCommandsProvider::Callbacks::undo_remove, yaze::editor::EditorManager::user_settings(), welcome_screen_, welcome_screen_manually_closed_, and window_manager_.

Referenced by DrawCommandPalette(), RefreshCommandPalette(), and ShowCommandPalette().

◆ RefreshWorkflowActions()

◆ RefreshCommandPalette()

void yaze::editor::UICoordinator::RefreshCommandPalette ( size_t session_id)

Refresh command palette commands (call after session switch)

Parameters
session_idNew session ID

Definition at line 1732 of file ui_coordinator.cc.

References InitializeCommandPalette().

Referenced by ShowCommandPalette().

Here is the call graph for this function:

◆ command_palette()

CommandPalette * yaze::editor::UICoordinator::command_palette ( )
inline

Definition at line 138 of file ui_coordinator.h.

References command_palette_.

◆ IsMenuBarVisible()

bool yaze::editor::UICoordinator::IsMenuBarVisible ( ) const
inline

Definition at line 141 of file ui_coordinator.h.

References show_menu_bar_.

Referenced by yaze::Controller::OnLoad().

◆ SetMenuBarVisible()

void yaze::editor::UICoordinator::SetMenuBarVisible ( bool visible)
inline

Definition at line 142 of file ui_coordinator.h.

References show_menu_bar_.

◆ ToggleMenuBar()

void yaze::editor::UICoordinator::ToggleMenuBar ( )
inline

Definition at line 143 of file ui_coordinator.h.

References show_menu_bar_.

◆ DrawMenuBarRestoreButton()

void yaze::editor::UICoordinator::DrawMenuBarRestoreButton ( )

◆ ShowAllWindows()

void yaze::editor::UICoordinator::ShowAllWindows ( )

Definition at line 1006 of file ui_coordinator.cc.

References yaze::editor::WindowDelegate::ShowAllWindows(), and window_delegate_.

Here is the call graph for this function:

◆ HideAllWindows()

void yaze::editor::UICoordinator::HideAllWindows ( )

Definition at line 1010 of file ui_coordinator.cc.

References yaze::editor::WindowDelegate::HideAllWindows(), and window_delegate_.

Here is the call graph for this function:

◆ IsEditorSelectionVisible()

bool yaze::editor::UICoordinator::IsEditorSelectionVisible ( ) const
inline

Definition at line 153 of file ui_coordinator.h.

References show_editor_selection_.

◆ IsDisplaySettingsVisible()

bool yaze::editor::UICoordinator::IsDisplaySettingsVisible ( ) const
inline

Definition at line 154 of file ui_coordinator.h.

References show_display_settings_.

◆ IsSessionSwitcherVisible()

bool yaze::editor::UICoordinator::IsSessionSwitcherVisible ( ) const

Definition at line 744 of file ui_coordinator.cc.

References yaze::editor::SessionCoordinator::IsSessionSwitcherVisible(), and session_coordinator_.

Here is the call graph for this function:

◆ IsWelcomeScreenVisible()

bool yaze::editor::UICoordinator::IsWelcomeScreenVisible ( ) const
inline

Definition at line 157 of file ui_coordinator.h.

References show_welcome_screen_.

◆ IsWelcomeScreenManuallyClosed()

bool yaze::editor::UICoordinator::IsWelcomeScreenManuallyClosed ( ) const
inline

Definition at line 158 of file ui_coordinator.h.

References welcome_screen_manually_closed_.

◆ IsGlobalSearchVisible()

bool yaze::editor::UICoordinator::IsGlobalSearchVisible ( ) const
inline

Definition at line 161 of file ui_coordinator.h.

References show_global_search_.

◆ IsPerformanceDashboardVisible()

bool yaze::editor::UICoordinator::IsPerformanceDashboardVisible ( ) const
inline

Definition at line 162 of file ui_coordinator.h.

References show_performance_dashboard_.

◆ IsWindowBrowserVisible()

bool yaze::editor::UICoordinator::IsWindowBrowserVisible ( ) const
inline

Definition at line 165 of file ui_coordinator.h.

References show_panel_browser_.

◆ IsCommandPaletteVisible()

bool yaze::editor::UICoordinator::IsCommandPaletteVisible ( ) const
inline

Definition at line 166 of file ui_coordinator.h.

References show_command_palette_.

◆ IsPanelSidebarVisible()

bool yaze::editor::UICoordinator::IsPanelSidebarVisible ( ) const

Definition at line 998 of file ui_coordinator.cc.

References yaze::editor::WorkspaceWindowManager::IsSidebarVisible(), and window_manager_.

Referenced by yaze::editor::LayoutCoordinator::GetLeftLayoutOffset().

Here is the call graph for this function:

◆ IsImGuiDemoVisible()

bool yaze::editor::UICoordinator::IsImGuiDemoVisible ( ) const
inline

Definition at line 169 of file ui_coordinator.h.

References show_imgui_demo_.

◆ IsImGuiMetricsVisible()

bool yaze::editor::UICoordinator::IsImGuiMetricsVisible ( ) const
inline

Definition at line 170 of file ui_coordinator.h.

References show_imgui_metrics_.

◆ IsEmulatorVisible()

◆ IsAsmEditorVisible()

bool yaze::editor::UICoordinator::IsAsmEditorVisible ( ) const

◆ IsResourceLabelManagerVisible()

bool yaze::editor::UICoordinator::IsResourceLabelManagerVisible ( ) const
inline

Definition at line 176 of file ui_coordinator.h.

References show_resource_label_manager_.

◆ IsAIAgentVisible()

bool yaze::editor::UICoordinator::IsAIAgentVisible ( ) const
inline

Definition at line 179 of file ui_coordinator.h.

References show_ai_agent_.

◆ IsChatHistoryVisible()

bool yaze::editor::UICoordinator::IsChatHistoryVisible ( ) const
inline

Definition at line 180 of file ui_coordinator.h.

References show_chat_history_.

◆ IsProposalDrawerVisible()

bool yaze::editor::UICoordinator::IsProposalDrawerVisible ( ) const
inline

Definition at line 181 of file ui_coordinator.h.

References show_proposal_drawer_.

◆ SetEditorSelectionVisible()

void yaze::editor::UICoordinator::SetEditorSelectionVisible ( bool visible)
inline

Definition at line 184 of file ui_coordinator.h.

References show_editor_selection_.

Referenced by yaze::editor::EditorActivator::SwitchToEditor().

◆ SetDisplaySettingsVisible()

void yaze::editor::UICoordinator::SetDisplaySettingsVisible ( bool visible)
inline

Definition at line 187 of file ui_coordinator.h.

References show_display_settings_.

◆ SetSessionSwitcherVisible()

void yaze::editor::UICoordinator::SetSessionSwitcherVisible ( bool visible)

◆ SetWelcomeScreenVisible()

void yaze::editor::UICoordinator::SetWelcomeScreenVisible ( bool visible)
inline

Definition at line 192 of file ui_coordinator.h.

References show_welcome_screen_.

Referenced by UICoordinator().

◆ SetWelcomeScreenManuallyClosed()

void yaze::editor::UICoordinator::SetWelcomeScreenManuallyClosed ( bool closed)
inline

Definition at line 193 of file ui_coordinator.h.

References welcome_screen_manually_closed_.

Referenced by UICoordinator().

◆ SetWelcomeScreenBehavior()

void yaze::editor::UICoordinator::SetWelcomeScreenBehavior ( StartupVisibility mode)

◆ SetGlobalSearchVisible()

void yaze::editor::UICoordinator::SetGlobalSearchVisible ( bool visible)
inline

Definition at line 197 of file ui_coordinator.h.

References show_global_search_.

Referenced by DrawGlobalSearch().

◆ SetPerformanceDashboardVisible()

void yaze::editor::UICoordinator::SetPerformanceDashboardVisible ( bool visible)
inline

Definition at line 198 of file ui_coordinator.h.

References show_performance_dashboard_.

◆ SetWindowBrowserVisible()

void yaze::editor::UICoordinator::SetWindowBrowserVisible ( bool visible)
inline

Definition at line 201 of file ui_coordinator.h.

References show_panel_browser_.

◆ SetCommandPaletteVisible()

void yaze::editor::UICoordinator::SetCommandPaletteVisible ( bool visible)

Definition at line 766 of file ui_coordinator.cc.

References show_command_palette_, and ShowCommandPalette().

Here is the call graph for this function:

◆ SetPanelSidebarVisible()

void yaze::editor::UICoordinator::SetPanelSidebarVisible ( bool visible)

Definition at line 1002 of file ui_coordinator.cc.

References yaze::editor::WorkspaceWindowManager::SetSidebarVisible(), and window_manager_.

Here is the call graph for this function:

◆ SetImGuiDemoVisible()

void yaze::editor::UICoordinator::SetImGuiDemoVisible ( bool visible)
inline

Definition at line 205 of file ui_coordinator.h.

References show_imgui_demo_.

◆ SetImGuiMetricsVisible()

void yaze::editor::UICoordinator::SetImGuiMetricsVisible ( bool visible)
inline

Definition at line 206 of file ui_coordinator.h.

References show_imgui_metrics_.

◆ SetEmulatorVisible()

◆ SetAsmEditorVisible()

◆ SetResourceLabelManagerVisible()

void yaze::editor::UICoordinator::SetResourceLabelManagerVisible ( bool visible)
inline

Definition at line 210 of file ui_coordinator.h.

References show_resource_label_manager_.

◆ SetDashboardBehavior()

void yaze::editor::UICoordinator::SetDashboardBehavior ( StartupVisibility mode)

◆ SetAIAgentVisible()

void yaze::editor::UICoordinator::SetAIAgentVisible ( bool visible)
inline

Definition at line 214 of file ui_coordinator.h.

References show_ai_agent_.

◆ GetCurrentStartupSurface()

StartupSurface yaze::editor::UICoordinator::GetCurrentStartupSurface ( ) const
inline

Definition at line 217 of file ui_coordinator.h.

References current_startup_surface_.

◆ SetStartupSurface()

◆ ShouldShowWelcome()

bool yaze::editor::UICoordinator::ShouldShowWelcome ( ) const

◆ ShouldShowDashboard()

bool yaze::editor::UICoordinator::ShouldShowDashboard ( ) const

◆ ShouldShowActivityBar()

bool yaze::editor::UICoordinator::ShouldShowActivityBar ( ) const

◆ SetChatHistoryVisible()

void yaze::editor::UICoordinator::SetChatHistoryVisible ( bool visible)
inline

Definition at line 224 of file ui_coordinator.h.

References show_chat_history_.

◆ SetProposalDrawerVisible()

void yaze::editor::UICoordinator::SetProposalDrawerVisible ( bool visible)
inline

Definition at line 225 of file ui_coordinator.h.

References show_proposal_drawer_.

◆ DrawMenuBarIconButton()

bool yaze::editor::UICoordinator::DrawMenuBarIconButton ( const char * icon,
const char * tooltip,
bool is_active = false )
private

◆ GetMenuBarIconButtonWidth()

float yaze::editor::UICoordinator::GetMenuBarIconButtonWidth ( )
staticprivate

Definition at line 363 of file ui_coordinator.cc.

References ICON_MD_SETTINGS.

◆ DrawMaterialButton()

void yaze::editor::UICoordinator::DrawMaterialButton ( const std::string & text,
const std::string & icon,
const ImVec4 & color,
std::function< void()> callback,
bool enabled = true )
private

Definition at line 1015 of file ui_coordinator.cc.

References yaze::gui::GetOnSurfaceVariantVec4(), and yaze::gui::GetSurfaceContainerHighestVec4().

Here is the call graph for this function:

◆ IsCompactLayout()

bool yaze::editor::UICoordinator::IsCompactLayout ( ) const
private

Definition at line 320 of file ui_coordinator.cc.

Referenced by DrawPanelFinder(), and ShouldShowActivityBar().

◆ CenterWindow()

void yaze::editor::UICoordinator::CenterWindow ( const std::string & window_name)
private

Definition at line 1037 of file ui_coordinator.cc.

◆ PositionWindow()

void yaze::editor::UICoordinator::PositionWindow ( const std::string & window_name,
float x,
float y )
private

Definition at line 1042 of file ui_coordinator.cc.

◆ SetWindowSize()

void yaze::editor::UICoordinator::SetWindowSize ( const std::string & window_name,
float width,
float height )
private

Definition at line 1047 of file ui_coordinator.cc.

Member Data Documentation

◆ editor_manager_

◆ rom_manager_

RomFileManager& yaze::editor::UICoordinator::rom_manager_
private

Definition at line 234 of file ui_coordinator.h.

◆ project_manager_

ProjectManager& yaze::editor::UICoordinator::project_manager_
private

Definition at line 235 of file ui_coordinator.h.

Referenced by DrawWelcomeScreen().

◆ editor_registry_

EditorRegistry& yaze::editor::UICoordinator::editor_registry_
private

Definition at line 236 of file ui_coordinator.h.

◆ window_manager_

◆ session_coordinator_

◆ window_delegate_

WindowDelegate& yaze::editor::UICoordinator::window_delegate_
private

Definition at line 239 of file ui_coordinator.h.

Referenced by HideAllWindows(), and ShowAllWindows().

◆ toast_manager_

ToastManager& yaze::editor::UICoordinator::toast_manager_
private

◆ popup_manager_

PopupManager& yaze::editor::UICoordinator::popup_manager_
private

Definition at line 241 of file ui_coordinator.h.

Referenced by DrawAllPopups(), HidePopup(), ShowDisplaySettings(), and ShowPopup().

◆ shortcut_manager_

ShortcutManager& yaze::editor::UICoordinator::shortcut_manager_
private

Definition at line 242 of file ui_coordinator.h.

Referenced by DrawCommandPalette().

◆ show_editor_selection_

bool yaze::editor::UICoordinator::show_editor_selection_ = false
private

◆ show_display_settings_

bool yaze::editor::UICoordinator::show_display_settings_ = false
private

Definition at line 246 of file ui_coordinator.h.

Referenced by IsDisplaySettingsVisible(), and SetDisplaySettingsVisible().

◆ show_welcome_screen_

bool yaze::editor::UICoordinator::show_welcome_screen_ = true
private

◆ welcome_screen_manually_closed_

bool yaze::editor::UICoordinator::welcome_screen_manually_closed_ = false
private

◆ show_global_search_

bool yaze::editor::UICoordinator::show_global_search_ = false
private

◆ show_performance_dashboard_

bool yaze::editor::UICoordinator::show_performance_dashboard_ = false
private

◆ show_imgui_demo_

bool yaze::editor::UICoordinator::show_imgui_demo_ = false
private

Definition at line 252 of file ui_coordinator.h.

Referenced by IsImGuiDemoVisible(), and SetImGuiDemoVisible().

◆ show_imgui_metrics_

bool yaze::editor::UICoordinator::show_imgui_metrics_ = false
private

Definition at line 253 of file ui_coordinator.h.

Referenced by IsImGuiMetricsVisible(), and SetImGuiMetricsVisible().

◆ show_test_dashboard_

bool yaze::editor::UICoordinator::show_test_dashboard_ = false
private

Definition at line 254 of file ui_coordinator.h.

◆ show_panel_browser_

bool yaze::editor::UICoordinator::show_panel_browser_ = false
private

◆ show_panel_finder_

bool yaze::editor::UICoordinator::show_panel_finder_ = false
private

Definition at line 256 of file ui_coordinator.h.

Referenced by DrawPanelFinder(), and ShowPanelFinder().

◆ show_command_palette_

bool yaze::editor::UICoordinator::show_command_palette_ = false
private

◆ show_resource_label_manager_

bool yaze::editor::UICoordinator::show_resource_label_manager_ = false
private

◆ show_ai_agent_

bool yaze::editor::UICoordinator::show_ai_agent_ = false
private

Definition at line 264 of file ui_coordinator.h.

Referenced by DrawAllUI(), IsAIAgentVisible(), and SetAIAgentVisible().

◆ show_chat_history_

bool yaze::editor::UICoordinator::show_chat_history_ = false
private

Definition at line 265 of file ui_coordinator.h.

Referenced by DrawAllUI(), IsChatHistoryVisible(), and SetChatHistoryVisible().

◆ show_proposal_drawer_

bool yaze::editor::UICoordinator::show_proposal_drawer_ = false
private

Definition at line 266 of file ui_coordinator.h.

Referenced by DrawAllUI(), IsProposalDrawerVisible(), and SetProposalDrawerVisible().

◆ show_save_workspace_preset_

bool yaze::editor::UICoordinator::show_save_workspace_preset_ = false
private

Definition at line 267 of file ui_coordinator.h.

Referenced by DrawWorkspacePresetDialogs(), and ShowSaveWorkspacePresetDialog().

◆ show_load_workspace_preset_

bool yaze::editor::UICoordinator::show_load_workspace_preset_ = false
private

Definition at line 268 of file ui_coordinator.h.

Referenced by DrawWorkspacePresetDialogs(), and ShowLoadWorkspacePresetDialog().

◆ show_menu_bar_

bool yaze::editor::UICoordinator::show_menu_bar_ = true
private

◆ welcome_behavior_override_

StartupVisibility yaze::editor::UICoordinator::welcome_behavior_override_ = StartupVisibility::kAuto
private

Definition at line 270 of file ui_coordinator.h.

Referenced by SetWelcomeScreenBehavior(), and ShouldShowWelcome().

◆ dashboard_behavior_override_

StartupVisibility yaze::editor::UICoordinator::dashboard_behavior_override_ = StartupVisibility::kAuto
private

Definition at line 271 of file ui_coordinator.h.

Referenced by SetDashboardBehavior(), and ShouldShowDashboard().

◆ current_startup_surface_

◆ command_palette_

CommandPalette yaze::editor::UICoordinator::command_palette_
private

Definition at line 277 of file ui_coordinator.h.

Referenced by command_palette(), DrawCommandPalette(), and InitializeCommandPalette().

◆ command_palette_initialized_

bool yaze::editor::UICoordinator::command_palette_initialized_ = false
private

◆ command_palette_query_

char yaze::editor::UICoordinator::command_palette_query_[256] = {}
private

Definition at line 279 of file ui_coordinator.h.

Referenced by DrawCommandPalette().

◆ command_palette_selected_idx_

int yaze::editor::UICoordinator::command_palette_selected_idx_ = 0
private

Definition at line 280 of file ui_coordinator.h.

Referenced by DrawCommandPalette().

◆ panel_finder_query_

char yaze::editor::UICoordinator::panel_finder_query_[256] = {}
private

Definition at line 283 of file ui_coordinator.h.

Referenced by DrawPanelFinder().

◆ panel_finder_selected_idx_

int yaze::editor::UICoordinator::panel_finder_selected_idx_ = 0
private

Definition at line 284 of file ui_coordinator.h.

Referenced by DrawPanelFinder().

◆ global_search_query_

char yaze::editor::UICoordinator::global_search_query_[256] = {}
private

Definition at line 287 of file ui_coordinator.h.

Referenced by DrawGlobalSearch().

◆ welcome_screen_

std::unique_ptr<WelcomeScreen> yaze::editor::UICoordinator::welcome_screen_
private

Definition at line 290 of file ui_coordinator.h.

Referenced by DrawWelcomeScreen(), InitializeCommandPalette(), and UICoordinator().

◆ new_project_dialog_

NewProjectDialog yaze::editor::UICoordinator::new_project_dialog_
private

The documentation for this class was generated from the following files: