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

#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< Toasttoasts_
 
std::deque< NotificationEntrynotification_history_
 

Detailed Description

Definition at line 38 of file toast_manager.h.

Member Function Documentation

◆ Show()

void yaze::editor::ToastManager::Show ( const std::string & message,
ToastType type = ToastType::kInfo,
float ttl_seconds = 3.0f )
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().

◆ Draw()

◆ GetUnreadCount()

size_t yaze::editor::ToastManager::GetUnreadCount ( ) const
inline

◆ GetHistory()

const std::deque< NotificationEntry > & yaze::editor::ToastManager::GetHistory ( ) const
inline

◆ MarkAllRead()

void yaze::editor::ToastManager::MarkAllRead ( )
inline

◆ ClearHistory()

void yaze::editor::ToastManager::ClearHistory ( )
inline

Member Data Documentation

◆ kMaxHistorySize

constexpr size_t yaze::editor::ToastManager::kMaxHistorySize = 50
staticconstexpr

Definition at line 40 of file toast_manager.h.

Referenced by Show().

◆ toasts_

std::deque<Toast> yaze::editor::ToastManager::toasts_
private

Definition at line 158 of file toast_manager.h.

Referenced by Draw(), and Show().

◆ notification_history_

std::deque<NotificationEntry> yaze::editor::ToastManager::notification_history_
private

Definition at line 159 of file toast_manager.h.

Referenced by ClearHistory(), GetHistory(), GetUnreadCount(), MarkAllRead(), and Show().


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