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:
@@ -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_),
|
||||
|
||||
Reference in New Issue
Block a user