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

ID: "editors". Rebuilds on editor-registry changes (rare). More...

#include <command_palette_providers.h>

Inheritance diagram for yaze::editor::EditorCommandsProvider:
Collaboration diagram for yaze::editor::EditorCommandsProvider:

Public Member Functions

 EditorCommandsProvider (std::function< void(const std::string &)> switch_callback)
 
std::string ProviderId () const override
 Stable identifier. Used for selective refresh; must be unique.
 
void Provide (CommandPalette *palette) override
 Populate palette with this source's commands.
 
- Public Member Functions inherited from yaze::editor::CommandProvider
virtual ~CommandProvider ()=default
 

Private Attributes

std::function< void(const std::string &) switch_callback_ )
 

Detailed Description

ID: "editors". Rebuilds on editor-registry changes (rare).

Definition at line 40 of file command_palette_providers.h.

Constructor & Destructor Documentation

◆ EditorCommandsProvider()

yaze::editor::EditorCommandsProvider::EditorCommandsProvider ( std::function< void(const std::string &)> switch_callback)
explicit

Definition at line 20 of file command_palette_providers.cc.

Member Function Documentation

◆ ProviderId()

std::string yaze::editor::EditorCommandsProvider::ProviderId ( ) const
inlineoverridevirtual

Stable identifier. Used for selective refresh; must be unique.

Implements yaze::editor::CommandProvider.

Definition at line 44 of file command_palette_providers.h.

◆ Provide()

void yaze::editor::EditorCommandsProvider::Provide ( CommandPalette * palette)
overridevirtual

Populate palette with this source's commands.

Implements yaze::editor::CommandProvider.

Definition at line 24 of file command_palette_providers.cc.

References yaze::editor::CommandPalette::RegisterEditorCommands(), and switch_callback_.

Here is the call graph for this function:

Member Data Documentation

◆ switch_callback_

std::function<void(const std::string&) yaze::editor::EditorCommandsProvider::switch_callback_)
private

Definition at line 48 of file command_palette_providers.h.

Referenced by Provide().


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