Add CommandManager::ShowWhichKey and include src in build

This commit is contained in:
scawful
2024-09-19 20:59:56 -04:00
parent 2857eca92d
commit 46d7dc446e
5 changed files with 39 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
#ifndef YAZE_APP_EDITOR_SYSTEM_COMMAND_MANAGER_H
#define YAZE_APP_EDITOR_SYSTEM_COMMAND_MANAGER_H
#include <stack>
#include <string>
#include <unordered_map>
@@ -16,6 +17,8 @@ class Command {
class CommandManager {
public:
void ShowWhichKey();
void RegisterCommand(const std::string& shortcut, Command* command) {
commands_[shortcut] = command;
}
@@ -50,4 +53,6 @@ class CommandManager {
} // namespace editor
} // namespace app
} // namespace yaze
} // namespace yaze
#endif // YAZE_APP_EDITOR_SYSTEM_COMMAND_MANAGER_H