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

ID: "panels". Rebuilds when the set of open windows/panels changes. More...

#include <command_palette_providers.h>

Inheritance diagram for yaze::editor::PanelCommandsProvider:
Collaboration diagram for yaze::editor::PanelCommandsProvider:

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

WorkspaceWindowManagerwindow_manager_
 
size_t session_id_
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PanelCommandsProvider()

yaze::editor::PanelCommandsProvider::PanelCommandsProvider ( WorkspaceWindowManager * window_manager,
size_t session_id )

Definition at line 12 of file command_palette_providers.cc.

Member Function Documentation

◆ ProviderId()

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

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

Implements yaze::editor::CommandProvider.

Definition at line 31 of file command_palette_providers.h.

◆ Provide()

void yaze::editor::PanelCommandsProvider::Provide ( CommandPalette * palette)
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_.

Here is the call graph for this function:

Member Data Documentation

◆ window_manager_

WorkspaceWindowManager* yaze::editor::PanelCommandsProvider::window_manager_
private

Definition at line 35 of file command_palette_providers.h.

Referenced by Provide().

◆ session_id_

size_t yaze::editor::PanelCommandsProvider::session_id_
private

Definition at line 36 of file command_palette_providers.h.

Referenced by Provide().


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