feat(editor): add hex editor and AI agent functionalities to MenuOrchestrator

- Implemented methods in EditorManager to show the hex editor, AI agent, and chat history, enhancing the editor's capabilities.
- Updated MenuOrchestrator to include new menu items for accessing the hex editor, AI agent, chat history, and other UI elements.
- Improved user interaction by providing quick access to essential features through keyboard shortcuts.

Benefits:
- Streamlines the user experience by integrating additional editor functionalities.
- Enhances the overall architecture by clearly defining roles for UI and editor operations within the MenuOrchestrator.
This commit is contained in:
scawful
2025-10-15 01:01:21 -04:00
parent 12480626f7
commit 5502b5246a
4 changed files with 110 additions and 3 deletions

View File

@@ -121,6 +121,21 @@ void EditorManager::HideCurrentEditorCards() {
card_manager.HideAllCardsInCategory(category);
}
void EditorManager::ShowHexEditor() {
auto& card_manager = gui::EditorCardManager::Get();
card_manager.ShowCard("memory.hex_editor");
}
#ifdef YAZE_WITH_GRPC
void EditorManager::ShowAIAgent() {
agent_editor_.set_active(true);
}
void EditorManager::ShowChatHistory() {
agent_chat_history_popup_.Toggle();
}
#endif
EditorManager::EditorManager()
: blank_editor_set_(nullptr, &user_settings_),
project_manager_(&toast_manager_),