#include <toast_manager.h>
Public Member Functions | |
| void | Show (const std::string &message, ToastType type=ToastType::kInfo, float ttl_seconds=3.0f) |
| void | Draw () |
| size_t | GetUnreadCount () const |
| const std::deque< NotificationEntry > & | GetHistory () const |
| void | MarkAllRead () |
| void | ClearHistory () |
Static Public Attributes | |
| static constexpr size_t | kMaxHistorySize = 50 |
Private Attributes | |
| std::deque< Toast > | toasts_ |
| std::deque< NotificationEntry > | notification_history_ |
Definition at line 38 of file toast_manager.h.
|
inline |
Definition at line 42 of file toast_manager.h.
References kMaxHistorySize, yaze::editor::NotificationEntry::message, notification_history_, yaze::editor::NotificationEntry::read, yaze::editor::NotificationEntry::timestamp, toasts_, and yaze::editor::NotificationEntry::type.
Referenced by yaze::editor::AgentProposalsPanel::AcceptProposal(), yaze::editor::AgentEditor::ApplyConfig(), yaze::editor::LayoutCoordinator::ApplyLayoutPreset(), yaze::editor::ProjectManager::ApplyZsoPreset(), yaze::editor::ProjectManager::CancelPendingProject(), yaze::editor::AgentChat::ClearHistory(), yaze::editor::WorkspaceManager::CloseAllFloatingWindows(), yaze::editor::SessionCoordinator::CloseSession(), yaze::editor::RomFileManager::CreateBackup(), yaze::editor::ProjectManager::CreateFromTemplate(), yaze::editor::ProjectManager::CreateNewProject(), yaze::editor::AgentProposalsPanel::DeleteProposal(), yaze::editor::ProjectFileEditor::Draw(), yaze::editor::AgentRomSyncPanel::Draw(), yaze::editor::AgentZ3EDCommandPanel::Draw(), yaze::editor::AgentEditor::DrawAgentBuilderPanel(), yaze::editor::AssemblyEditor::DrawAssembleMenu(), yaze::editor::AgentEditor::DrawBotProfilesPanel(), yaze::editor::AssemblyEditor::DrawBuildOutput(), yaze::editor::AgentEditor::DrawCommonTilesEditor(), yaze::editor::AgentEditor::DrawConfigurationPanel(), yaze::editor::UICoordinator::DrawGlobalSearch(), yaze::editor::AgentEditor::DrawNewPromptCreator(), yaze::editor::ProjectManagementPanel::DrawProjectOverview(), yaze::editor::AgentEditor::DrawPromptEditorPanel(), yaze::editor::ProjectManagementPanel::DrawVersionControl(), yaze::editor::UICoordinator::DrawWorkspacePresetDialogs(), yaze::editor::EditorManager::EditorManager(), yaze::editor::WorkspaceManager::ExecuteWorkspaceCommand(), yaze::editor::ProjectManager::ExportProject(), yaze::editor::ProjectManager::FinalizeProjectCreation(), yaze::editor::AgentChat::HandleAgentResponse(), yaze::editor::WorkspaceManager::HideAllWindows(), yaze::editor::AgentEditor::HostSession(), yaze::editor::ProjectManager::ImportProject(), yaze::editor::EditorManager::Initialize(), yaze::editor::AgentEditor::JoinSession(), yaze::editor::AgentEditor::LeaveSession(), yaze::editor::WorkspaceManager::LoadDesignerLayout(), yaze::editor::WorkspaceManager::LoadDeveloperLayout(), yaze::editor::WorkspaceManager::LoadModderLayout(), yaze::editor::ProjectManager::LoadProjectFromFile(), yaze::editor::EditorManager::LoadProjectWithRom(), yaze::editor::EditorManager::LoadRom(), yaze::editor::RomFileManager::LoadRomFromFile(), yaze::editor::WorkspaceManager::LoadWorkspaceLayout(), yaze::editor::WorkspaceManager::LoadWorkspacePreset(), yaze::editor::WorkspaceManager::MaximizeCurrentWindow(), yaze::editor::MenuOrchestrator::OnCheckRomVersion(), yaze::editor::MenuOrchestrator::OnCopy(), yaze::editor::MenuOrchestrator::OnCreateBackup(), yaze::editor::MenuOrchestrator::OnCreateProject(), yaze::editor::MenuOrchestrator::OnCut(), yaze::editor::MenuOrchestrator::OnFind(), yaze::editor::MenuOrchestrator::OnLoadAsmFile(), yaze::editor::MenuOrchestrator::OnOpenProject(), yaze::editor::MenuOrchestrator::OnOpenRom(), yaze::editor::MenuOrchestrator::OnPaste(), yaze::editor::MenuOrchestrator::OnRedo(), yaze::editor::MenuOrchestrator::OnResetWorkspaceLayout(), yaze::editor::MenuOrchestrator::OnRunDataIntegrityCheck(), yaze::editor::MenuOrchestrator::OnSaveProject(), yaze::editor::MenuOrchestrator::OnSaveProjectAs(), yaze::editor::MenuOrchestrator::OnSaveRom(), yaze::editor::MenuOrchestrator::OnTestSaveLoad(), yaze::editor::MenuOrchestrator::OnToggleAsarPatch(), yaze::editor::MenuOrchestrator::OnToggleCustomLoading(), yaze::editor::MenuOrchestrator::OnUndo(), yaze::editor::MenuOrchestrator::OnUpgradeRom(), yaze::editor::MenuOrchestrator::OnValidateRom(), yaze::editor::EditorManager::OpenProject(), yaze::editor::AgentProposalsPanel::RejectProposal(), yaze::editor::AgentChat::RenderCodeBlock(), yaze::editor::AgentConfigurationPanel::RenderModelConfigControls(), yaze::editor::AgentConfigurationPanel::RenderModelDeck(), yaze::editor::AgentChat::RenderToolbar(), yaze::editor::EditorManager::RepairCurrentProject(), yaze::editor::ProjectManager::RepairCurrentProject(), yaze::editor::EditorManager::ResetCurrentEditorLayout(), yaze::editor::LayoutCoordinator::ResetCurrentEditorLayout(), yaze::editor::WorkspaceManager::ResetWorkspaceLayout(), yaze::editor::WorkspaceManager::RestoreAllWindows(), yaze::editor::EditorManager::SaveProjectAs(), yaze::editor::ProjectManager::SaveProjectToFile(), yaze::editor::RomFileManager::SaveRom(), yaze::editor::RomFileManager::SaveRomAs(), yaze::editor::WorkspaceManager::SaveWorkspaceLayout(), yaze::editor::WorkspaceManager::SaveWorkspacePreset(), yaze::editor::AgentEditor::SendToGemini(), yaze::editor::ProjectManager::SetProjectRom(), yaze::editor::WorkspaceManager::ShowAllWindows(), yaze::editor::EditorManager::ShowProjectFileEditor(), yaze::editor::SessionCoordinator::ShowSessionLimitWarning(), yaze::editor::SessionCoordinator::ShowSessionOperationResult(), yaze::editor::UICoordinator::UICoordinator(), yaze::editor::EditorManager::Update(), yaze::editor::SessionCoordinator::UpdateSessions(), yaze::editor::ProjectFileEditor::ValidateContent(), yaze::editor::ProjectManager::ValidateProject(), and yaze::editor::RomFileManager::ValidateRom().
|
inline |
Definition at line 61 of file toast_manager.h.
References yaze::gui::ConvertColorToImVec4(), yaze::gui::ThemeManager::Get(), yaze::gui::ThemeManager::GetCurrentTheme(), yaze::gui::GetSurfaceContainerHighVec4(), yaze::editor::kError, yaze::editor::kInfo, yaze::editor::kSuccess, yaze::editor::kWarning, yaze::editor::Toast::message, toasts_, yaze::editor::Toast::ttl_seconds, and yaze::editor::Toast::type.
Referenced by yaze::editor::UICoordinator::DrawAllUI().

|
inline |
Definition at line 137 of file toast_manager.h.
References notification_history_.
Referenced by yaze::editor::UICoordinator::DrawNotificationBell(), and yaze::editor::RightPanelManager::DrawNotificationsPanel().
|
inline |
Definition at line 145 of file toast_manager.h.
References notification_history_.
Referenced by yaze::editor::RightPanelManager::DrawNotificationsPanel().
|
inline |
Definition at line 149 of file toast_manager.h.
References notification_history_.
Referenced by yaze::editor::UICoordinator::DrawNotificationBell(), and yaze::editor::RightPanelManager::DrawNotificationsPanel().
|
inline |
Definition at line 155 of file toast_manager.h.
References notification_history_.
Referenced by yaze::editor::RightPanelManager::DrawNotificationsPanel().
|
staticconstexpr |
Definition at line 40 of file toast_manager.h.
Referenced by Show().
|
private |
Definition at line 158 of file toast_manager.h.
|
private |
Definition at line 159 of file toast_manager.h.
Referenced by ClearHistory(), GetHistory(), GetUnreadCount(), MarkAllRead(), and Show().