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

#include <command_palette_providers.h>

Inheritance diagram for yaze::editor::SidebarCommandsProvider:
Collaboration diagram for yaze::editor::SidebarCommandsProvider:

Public Member Functions

 SidebarCommandsProvider (WorkspaceWindowManager *window_manager, UserSettings *user_settings, 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_
 
UserSettingsuser_settings_
 
size_t session_id_
 

Detailed Description

ID: "sidebar". Contributes activity-bar customization commands: pin, hide, reset-order, and show-all toggles. Reads and mutates UserSettings directly; refresh after mutation to keep palette entries in sync with the sidebar state.

Definition at line 91 of file command_palette_providers.h.

Constructor & Destructor Documentation

◆ SidebarCommandsProvider()

yaze::editor::SidebarCommandsProvider::SidebarCommandsProvider ( WorkspaceWindowManager * window_manager,
UserSettings * user_settings,
size_t session_id )

Definition at line 51 of file command_palette_providers.cc.

Member Function Documentation

◆ ProviderId()

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

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

Implements yaze::editor::CommandProvider.

Definition at line 95 of file command_palette_providers.h.

◆ Provide()

Member Data Documentation

◆ window_manager_

WorkspaceWindowManager* yaze::editor::SidebarCommandsProvider::window_manager_
private

Definition at line 99 of file command_palette_providers.h.

Referenced by Provide().

◆ user_settings_

UserSettings* yaze::editor::SidebarCommandsProvider::user_settings_
private

Definition at line 100 of file command_palette_providers.h.

Referenced by Provide().

◆ session_id_

size_t yaze::editor::SidebarCommandsProvider::session_id_
private

Definition at line 101 of file command_palette_providers.h.

Referenced by Provide().


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