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 346 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 347 of file core_events.h.

Member Function Documentation

◆ Create()

◆ ShowEmulator()

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

Definition at line 376 of file core_events.h.

References Create(), and kShowEmulator.

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

Here is the call graph for this function:

◆ ShowSettings()

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

Definition at line 379 of file core_events.h.

References Create(), and kShowSettings.

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

Here is the call graph for this function:

◆ ShowCommandPalette()

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

Definition at line 382 of file core_events.h.

References Create(), and kShowCommandPalette.

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

Here is the call graph for this function:

◆ ShowAgentChatSidebar()

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

Definition at line 385 of file core_events.h.

References Create(), and kShowAgentChatSidebar.

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

Here is the call graph for this function:

◆ ShowAgentProposalsSidebar()

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

Definition at line 388 of file core_events.h.

References Create(), and kShowAgentProposalsSidebar.

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

Here is the call graph for this function:

◆ OpenRom()

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

Definition at line 391 of file core_events.h.

References Create(), and kOpenRom.

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

Here is the call graph for this function:

◆ SaveRom()

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

Definition at line 394 of file core_events.h.

References Create(), and kSaveRom.

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

Here is the call graph for this function:

◆ Undo()

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

Definition at line 397 of file core_events.h.

References Create(), and kUndo.

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

Here is the call graph for this function:

◆ Redo()

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

Definition at line 400 of file core_events.h.

References Create(), and kRedo.

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

Here is the call graph for this function:

Member Data Documentation

◆ action

Action yaze::editor::UIActionRequestEvent::action

Definition at line 365 of file core_events.h.

Referenced by Create().

◆ session_id

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

Definition at line 366 of file core_events.h.

Referenced by Create().


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