refactor(editor): remove MenuManager class and its associated files

- Deleted the MenuManager class implementation and header files from the project.
- Updated CMake configuration to reflect the removal of MenuManager, simplifying the editor's UI management.

Benefits:
- Reduced code complexity by eliminating unused components.
- Improved maintainability of the editor's UI structure.
This commit is contained in:
scawful
2025-10-11 23:34:02 -04:00
parent c54a7dfa8d
commit be4d30b208
3 changed files with 0 additions and 51 deletions

View File

@@ -47,7 +47,6 @@ set(
app/editor/ui/background_renderer.cc
app/editor/ui/editor_selection_dialog.cc
app/editor/ui/menu_builder.cc
app/editor/ui/menu_manager.cc
app/editor/ui/welcome_screen.cc
app/editor/ui/workspace_manager.cc
)

View File

@@ -1,26 +0,0 @@
#include "app/editor/ui/menu_manager.h"
#include "app/editor/editor_manager.h"
#include "app/gui/icons.h"
#include "absl/strings/str_format.h"
namespace yaze {
namespace editor {
MenuManager::MenuManager(EditorManager* editor_manager)
: editor_manager_(editor_manager) {}
void MenuManager::BuildAndDraw() {
if (!editor_manager_) {
return;
}
if (ImGui::BeginMenuBar()) {
editor_manager_->BuildModernMenu();
editor_manager_->DrawMenuBarExtras();
ImGui::EndMenuBar();
}
}
} // namespace editor
} // namespace yaze

View File

@@ -1,24 +0,0 @@
#ifndef YAZE_APP_EDITOR_UI_MENU_MANAGER_H_
#define YAZE_APP_EDITOR_UI_MENU_MANAGER_H_
#include "app/editor/ui/menu_builder.h"
namespace yaze {
namespace editor {
class EditorManager;
class MenuManager {
public:
explicit MenuManager(EditorManager* editor_manager);
void BuildAndDraw();
private:
EditorManager* editor_manager_;
};
} // namespace editor
} // namespace yaze
#endif // YAZE_APP_EDITOR_UI_MENU_MANAGER_H_