#include <command_manager.h>
|
using | Command = std::function<void()> |
|
|
| CommandManager ()=default |
|
| ~CommandManager ()=default |
|
void | RegisterPrefix (const std::string &group_name, const char prefix, const std::string &name, const std::string &desc) |
|
void | RegisterSubcommand (const std::string &group_name, const std::string &shortcut, const char mnemonic, const std::string &name, const std::string &desc, Command command) |
|
void | RegisterCommand (const std::string &shortcut, Command command, char mnemonic, const std::string &name, const std::string &desc) |
|
void | ExecuteCommand (const std::string &shortcut) |
|
void | ShowWhichKey () |
|
void | SaveKeybindings (const std::string &filepath) |
|
void | LoadKeybindings (const std::string &filepath) |
|
Definition at line 15 of file command_manager.h.
◆ Command
◆ CommandManager()
yaze::editor::CommandManager::CommandManager |
( |
| ) |
|
|
default |
◆ ~CommandManager()
yaze::editor::CommandManager::~CommandManager |
( |
| ) |
|
|
default |
◆ RegisterPrefix()
void yaze::editor::CommandManager::RegisterPrefix |
( |
const std::string & | group_name, |
|
|
const char | prefix, |
|
|
const std::string & | name, |
|
|
const std::string & | desc ) |
|
inline |
◆ RegisterSubcommand()
void yaze::editor::CommandManager::RegisterSubcommand |
( |
const std::string & | group_name, |
|
|
const std::string & | shortcut, |
|
|
const char | mnemonic, |
|
|
const std::string & | name, |
|
|
const std::string & | desc, |
|
|
Command | command ) |
|
inline |
◆ RegisterCommand()
void yaze::editor::CommandManager::RegisterCommand |
( |
const std::string & | shortcut, |
|
|
Command | command, |
|
|
char | mnemonic, |
|
|
const std::string & | name, |
|
|
const std::string & | desc ) |
|
inline |
◆ ExecuteCommand()
void yaze::editor::CommandManager::ExecuteCommand |
( |
const std::string & | shortcut | ) |
|
|
inline |
◆ ShowWhichKey()
void yaze::editor::CommandManager::ShowWhichKey |
( |
| ) |
|
◆ SaveKeybindings()
void yaze::editor::CommandManager::SaveKeybindings |
( |
const std::string & | filepath | ) |
|
◆ LoadKeybindings()
void yaze::editor::CommandManager::LoadKeybindings |
( |
const std::string & | filepath | ) |
|
◆ commands_
The documentation for this class was generated from the following files: