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

#include <command_palette_providers.h>

Inheritance diagram for yaze::editor::ShortcutCommandsProvider:
Collaboration diagram for yaze::editor::ShortcutCommandsProvider:

Public Member Functions

 ShortcutCommandsProvider (const ShortcutManager *shortcut_manager)
 
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

const ShortcutManager * shortcut_manager_
 

Detailed Description

ID: "shortcuts". Mirrors ShortcutManager commands into the palette with their live keybinding. Internal ids are renamed or hidden (see PaletteNameForShortcut). Callbacks resolve through the manager at execution time so rebinding is honored. Palette-native entries with the same normalized name win the dedupe and inherit the keybinding.

Definition at line 111 of file command_palette_providers.h.

Constructor & Destructor Documentation

◆ ShortcutCommandsProvider()

yaze::editor::ShortcutCommandsProvider::ShortcutCommandsProvider ( const ShortcutManager * shortcut_manager)
explicit

Definition at line 78 of file command_palette_providers.cc.

Member Function Documentation

◆ ProviderId()

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

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

Implements yaze::editor::CommandProvider.

Definition at line 114 of file command_palette_providers.h.

◆ Provide()

Member Data Documentation

◆ shortcut_manager_

const ShortcutManager* yaze::editor::ShortcutCommandsProvider::shortcut_manager_
private

Definition at line 118 of file command_palette_providers.h.

Referenced by Provide().


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