#include <command_palette_providers.h>


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 | |
| WorkspaceWindowManager * | window_manager_ |
| UserSettings * | user_settings_ |
| size_t | session_id_ |
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.
| yaze::editor::SidebarCommandsProvider::SidebarCommandsProvider | ( | WorkspaceWindowManager * | window_manager, |
| UserSettings * | user_settings, | ||
| size_t | session_id ) |
Definition at line 51 of file command_palette_providers.cc.
|
inlineoverridevirtual |
Stable identifier. Used for selective refresh; must be unique.
Implements yaze::editor::CommandProvider.
Definition at line 95 of file command_palette_providers.h.
|
overridevirtual |
Populate palette with this source's commands.
Implements yaze::editor::CommandProvider.
Definition at line 58 of file command_palette_providers.cc.
References yaze::editor::CommandPalette::AddCommand(), yaze::editor::WorkspaceWindowManager::GetAllCategories(), yaze::editor::WorkspaceWindowManager::kDashboardCategory, yaze::editor::CommandCategory::kView, yaze::editor::UserSettings::prefs(), yaze::editor::UserSettings::Save(), session_id_, yaze::editor::UserSettings::Preferences::sidebar_hidden, user_settings_, and window_manager_.

|
private |
Definition at line 99 of file command_palette_providers.h.
Referenced by Provide().
|
private |
Definition at line 100 of file command_palette_providers.h.
Referenced by Provide().
|
private |
Definition at line 101 of file command_palette_providers.h.
Referenced by Provide().