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

Plug-in command source for the palette. More...

#include <command_palette.h>

Inherited by yaze::editor::DungeonRoomCommandsProvider, yaze::editor::EditorCommandsProvider, yaze::editor::PanelCommandsProvider, yaze::editor::RecentFilesCommandsProvider, yaze::editor::SidebarCommandsProvider, yaze::editor::WelcomeCommandsProvider, and yaze::editor::WorkflowCommandsProvider.

Public Member Functions

virtual ~CommandProvider ()=default
 
virtual std::string ProviderId () const =0
 Stable identifier. Used for selective refresh; must be unique.
 
virtual void Provide (CommandPalette *palette)=0
 Populate palette with this source's commands.
 

Detailed Description

Plug-in command source for the palette.

A provider is a cohesive group of commands (e.g., panel toggles, recent files). Entries added during Provide() are attributed to the provider's id so they can be selectively refreshed or removed later.

Definition at line 25 of file command_palette.h.

Constructor & Destructor Documentation

◆ ~CommandProvider()

virtual yaze::editor::CommandProvider::~CommandProvider ( )
virtualdefault

Member Function Documentation

◆ ProviderId()

virtual std::string yaze::editor::CommandProvider::ProviderId ( ) const
pure virtual

◆ Provide()


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