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

Activity bar or menu action request. More...

#include <core_events.h>

Inheritance diagram for yaze::editor::UIActionRequestEvent:
Collaboration diagram for yaze::editor::UIActionRequestEvent:

Public Types

enum class  Action {
  kShowEmulator , kShowSettings , kShowPanelBrowser , kShowSearch ,
  kShowShortcuts , kShowCommandPalette , kShowHelp , kShowAgentChatSidebar ,
  kShowAgentProposalsSidebar , kOpenRom , kSaveRom , kUndo ,
  kRedo , kShowOracleRam , kResetLayout
}
 

Static Public Member Functions

static UIActionRequestEvent Create (Action act, size_t session=0)
 
static UIActionRequestEvent ShowEmulator (size_t session=0)
 
static UIActionRequestEvent ShowSettings (size_t session=0)
 
static UIActionRequestEvent ShowCommandPalette (size_t session=0)
 
static UIActionRequestEvent ShowAgentChatSidebar (size_t session=0)
 
static UIActionRequestEvent ShowAgentProposalsSidebar (size_t session=0)
 
static UIActionRequestEvent OpenRom (size_t session=0)
 
static UIActionRequestEvent SaveRom (size_t session=0)
 
static UIActionRequestEvent Undo (size_t session=0)
 
static UIActionRequestEvent Redo (size_t session=0)
 

Public Attributes

Action action
 
size_t session_id = 0
 

Additional Inherited Members

- Public Member Functions inherited from yaze::Event
virtual ~Event ()=default
 

Detailed Description

Activity bar or menu action request.

Published when user clicks activity bar icons or triggers menu commands. Allows decoupling between UI triggers and action handlers.

Definition at line 353 of file core_events.h.

Member Enumeration Documentation

◆ Action

Enumerator
kShowEmulator 
kShowSettings 
kShowPanelBrowser 
kShowSearch 
kShowShortcuts 
kShowCommandPalette 
kShowHelp 
kShowAgentChatSidebar 
kShowAgentProposalsSidebar 
kOpenRom 
kSaveRom 
kUndo 
kRedo 
kShowOracleRam 
kResetLayout 

Definition at line 354 of file core_events.h.

Member Function Documentation

◆ Create()

◆ ShowEmulator()

static UIActionRequestEvent yaze::editor::UIActionRequestEvent::ShowEmulator ( size_t session = 0)
inlinestatic

Definition at line 383 of file core_events.h.

References Create(), and kShowEmulator.

Referenced by yaze::editor::WorkspaceWindowManager::TriggerShowEmulator().

Here is the call graph for this function:

◆ ShowSettings()

static UIActionRequestEvent yaze::editor::UIActionRequestEvent::ShowSettings ( size_t session = 0)
inlinestatic

Definition at line 386 of file core_events.h.

References Create(), and kShowSettings.

Referenced by yaze::editor::WorkspaceWindowManager::TriggerShowSettings().

Here is the call graph for this function:

◆ ShowCommandPalette()

static UIActionRequestEvent yaze::editor::UIActionRequestEvent::ShowCommandPalette ( size_t session = 0)
inlinestatic

Definition at line 389 of file core_events.h.

References Create(), and kShowCommandPalette.

Referenced by yaze::editor::WorkspaceWindowManager::TriggerShowCommandPalette().

Here is the call graph for this function:

◆ ShowAgentChatSidebar()

static UIActionRequestEvent yaze::editor::UIActionRequestEvent::ShowAgentChatSidebar ( size_t session = 0)
inlinestatic

Definition at line 392 of file core_events.h.

References Create(), and kShowAgentChatSidebar.

Referenced by yaze::editor::WorkspaceWindowManager::TriggerShowAgentChatSidebar().

Here is the call graph for this function:

◆ ShowAgentProposalsSidebar()

static UIActionRequestEvent yaze::editor::UIActionRequestEvent::ShowAgentProposalsSidebar ( size_t session = 0)
inlinestatic

Definition at line 395 of file core_events.h.

References Create(), and kShowAgentProposalsSidebar.

Referenced by yaze::editor::WorkspaceWindowManager::TriggerShowAgentProposalsSidebar().

Here is the call graph for this function:

◆ OpenRom()

static UIActionRequestEvent yaze::editor::UIActionRequestEvent::OpenRom ( size_t session = 0)
inlinestatic

Definition at line 398 of file core_events.h.

References Create(), and kOpenRom.

Referenced by yaze::editor::WorkspaceWindowManager::TriggerOpenRom().

Here is the call graph for this function:

◆ SaveRom()

static UIActionRequestEvent yaze::editor::UIActionRequestEvent::SaveRom ( size_t session = 0)
inlinestatic

Definition at line 401 of file core_events.h.

References Create(), and kSaveRom.

Referenced by yaze::editor::WorkspaceWindowManager::TriggerSaveRom().

Here is the call graph for this function:

◆ Undo()

static UIActionRequestEvent yaze::editor::UIActionRequestEvent::Undo ( size_t session = 0)
inlinestatic

Definition at line 404 of file core_events.h.

References Create(), and kUndo.

Referenced by yaze::editor::WorkspaceWindowManager::TriggerUndo().

Here is the call graph for this function:

◆ Redo()

static UIActionRequestEvent yaze::editor::UIActionRequestEvent::Redo ( size_t session = 0)
inlinestatic

Definition at line 407 of file core_events.h.

References Create(), and kRedo.

Referenced by yaze::editor::WorkspaceWindowManager::TriggerRedo().

Here is the call graph for this function:

Member Data Documentation

◆ action

Action yaze::editor::UIActionRequestEvent::action

Definition at line 372 of file core_events.h.

Referenced by Create().

◆ session_id

size_t yaze::editor::UIActionRequestEvent::session_id = 0

Definition at line 373 of file core_events.h.

Referenced by Create().


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