ID: "panels". Rebuilds when the set of open windows/panels changes. More...
#include <command_palette_providers.h>


Public Member Functions | |
| PanelCommandsProvider (WorkspaceWindowManager *window_manager, size_t session_id) | |
| 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 | |
| WorkspaceWindowManager * | window_manager_ |
| size_t | session_id_ |
ID: "panels". Rebuilds when the set of open windows/panels changes.
Thin, pull-based CommandProvider adapters over the existing Register*Commands bulk methods. Each provider owns only the dependencies needed to repopulate its entries and can be re-run via CommandPalette::RefreshProvider(id).
Provider IDs are stable strings — treat them as part of the public contract for anything that wants to trigger a targeted refresh.
Definition at line 27 of file command_palette_providers.h.
| yaze::editor::PanelCommandsProvider::PanelCommandsProvider | ( | WorkspaceWindowManager * | window_manager, |
| size_t | session_id ) |
Definition at line 12 of file command_palette_providers.cc.
|
inlineoverridevirtual |
Stable identifier. Used for selective refresh; must be unique.
Implements yaze::editor::CommandProvider.
Definition at line 31 of file command_palette_providers.h.
|
overridevirtual |
Populate palette with this source's commands.
Implements yaze::editor::CommandProvider.
Definition at line 16 of file command_palette_providers.cc.
References yaze::editor::CommandPalette::RegisterPanelCommands(), session_id_, and window_manager_.

|
private |
Definition at line 35 of file command_palette_providers.h.
Referenced by Provide().
|
private |
Definition at line 36 of file command_palette_providers.h.
Referenced by Provide().