feat: Enhance EditorManager with Editor Selection and Shortcut Functionality

- Implemented an editor selection dialog with a callback for selecting various editor types, improving user interaction.
- Added keyboard shortcuts for quick access to different editors, enhancing workflow efficiency.
- Updated the menu structure to include options for the editor selection dialog and improved session management features.
- Enhanced the welcome screen logic to optionally show the editor selection dialog after loading a ROM, streamlining the user experience.
This commit is contained in:
scawful
2025-10-05 02:59:06 -04:00
parent 576229f7c3
commit 81c67728a9
6 changed files with 460 additions and 650 deletions

View File

@@ -110,6 +110,10 @@ class MenuBuilder {
std::vector<Menu> menus_;
Menu* current_menu_ = nullptr;
// Track which submenus are actually open during drawing
mutable std::vector<bool> submenu_stack_;
mutable int skip_depth_ = 0; // Track nesting depth when skipping closed submenus
void DrawMenuItem(const MenuItem& item);
};