#include <command_palette_widget.h>

Public Member Functions | |
| CommandPaletteWidget (CommandPalette *palette) | |
| void | SetPalette (CommandPalette *palette) |
| void | Toggle () |
| void | Show () |
| void | Hide () |
| bool | IsVisible () const |
| void | CheckShortcut () |
| void | Draw () |
Private Member Functions | |
| void | ExecuteCommand (const CommandEntry &cmd) |
Private Attributes | |
| CommandPalette * | palette_ = nullptr |
| bool | visible_ = false |
| bool | focus_input_ = false |
| char | search_buffer_ [256] = {} |
| int | selected_index_ = 0 |
Definition at line 17 of file command_palette_widget.h.
|
inlineexplicit |
Definition at line 19 of file command_palette_widget.h.
|
inline |
Definition at line 21 of file command_palette_widget.h.
References palette_.
|
inline |
Definition at line 24 of file command_palette_widget.h.
References visible_.
Referenced by CheckShortcut().
|
inline |
Definition at line 25 of file command_palette_widget.h.
References focus_input_, and visible_.
|
inline |
Definition at line 29 of file command_palette_widget.h.
References visible_.
Referenced by CheckShortcut(), and ExecuteCommand().
|
inline |
Definition at line 30 of file command_palette_widget.h.
References visible_.
|
inline |
Definition at line 33 of file command_palette_widget.h.
References focus_input_, Hide(), Toggle(), and visible_.

|
inline |
Definition at line 45 of file command_palette_widget.h.
References ExecuteCommand(), focus_input_, yaze::editor::CommandPalette::GetAllCommands(), yaze::editor::CommandPalette::GetFrequentCommands(), yaze::editor::CommandPalette::GetRecentCommands(), ICON_MD_KEYBOARD, ICON_MD_SEARCH, palette_, search_buffer_, yaze::editor::CommandPalette::SearchCommands(), selected_index_, and visible_.
|
inlineprivate |
Definition at line 166 of file command_palette_widget.h.
References yaze::editor::CommandEntry::callback, Hide(), yaze::editor::CommandEntry::name, palette_, yaze::editor::CommandPalette::RecordUsage(), search_buffer_, and selected_index_.
Referenced by Draw().

|
private |
Definition at line 176 of file command_palette_widget.h.
Referenced by Draw(), ExecuteCommand(), and SetPalette().
|
private |
Definition at line 177 of file command_palette_widget.h.
Referenced by CheckShortcut(), Draw(), Hide(), IsVisible(), Show(), and Toggle().
|
private |
Definition at line 178 of file command_palette_widget.h.
Referenced by CheckShortcut(), Draw(), and Show().
|
private |
Definition at line 179 of file command_palette_widget.h.
Referenced by Draw(), and ExecuteCommand().
|
private |
Definition at line 180 of file command_palette_widget.h.
Referenced by Draw(), and ExecuteCommand().