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. | |
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.
|
virtualdefault |
|
pure virtual |
Stable identifier. Used for selective refresh; must be unique.
Implemented in yaze::editor::PanelCommandsProvider, yaze::editor::EditorCommandsProvider, yaze::editor::RecentFilesCommandsProvider, yaze::editor::DungeonRoomCommandsProvider, yaze::editor::WorkflowCommandsProvider, yaze::editor::SidebarCommandsProvider, and yaze::editor::WelcomeCommandsProvider.
|
pure virtual |
Populate palette with this source's commands.
Implemented in yaze::editor::PanelCommandsProvider, yaze::editor::EditorCommandsProvider, yaze::editor::RecentFilesCommandsProvider, yaze::editor::DungeonRoomCommandsProvider, yaze::editor::WorkflowCommandsProvider, yaze::editor::SidebarCommandsProvider, and yaze::editor::WelcomeCommandsProvider.
Referenced by yaze::editor::CommandPalette::RegisterProvider().