diff --git a/include/NazaraEditor/Core/Application/BaseApplication.hpp b/include/NazaraEditor/Core/Application/BaseApplication.hpp index ad39178..b4587d8 100644 --- a/include/NazaraEditor/Core/Application/BaseApplication.hpp +++ b/include/NazaraEditor/Core/Application/BaseApplication.hpp @@ -32,6 +32,7 @@ namespace Nz // Editor events NazaraSignal(OnActionRegistered, const EditorAction::Properties&); + EditorBaseApplication(); virtual ~EditorBaseApplication(); @@ -64,6 +65,7 @@ namespace Nz private: static EditorBaseApplication* s_instance; + std::unique_ptr m_windowSwapchain; std::vector> m_windows; diff --git a/include/NazaraEditor/Editor/UI/MainWindow.hpp b/include/NazaraEditor/Editor/UI/MainWindow.hpp index 4e4d611..742db87 100644 --- a/include/NazaraEditor/Editor/UI/MainWindow.hpp +++ b/include/NazaraEditor/Editor/UI/MainWindow.hpp @@ -7,18 +7,5 @@ namespace NzEditor { public: MainWindow(Nz::EditorBaseApplication* app); - - bool Quit(); - - bool NewLevel(); - bool OpenLevel(); - bool SaveLevel(); - - bool NewProject(); - bool OpenProject(); - bool SaveProject(); - - protected: - void BuildMenuBar(); }; } \ No newline at end of file diff --git a/src/NazaraEditor/Editor/UI/MainWindow.cpp b/src/NazaraEditor/Editor/UI/MainWindow.cpp index 142aec8..96ad79d 100644 --- a/src/NazaraEditor/Editor/UI/MainWindow.cpp +++ b/src/NazaraEditor/Editor/UI/MainWindow.cpp @@ -6,39 +6,4 @@ namespace NzEditor : Nz::EditorMainWindow(app, "MainWindow", { "General", "Plugins" }) { } - - bool MainWindow::Quit() - { - return true; - } - - bool MainWindow::NewLevel() - { - return true; - } - - bool MainWindow::OpenLevel() - { - return true; - } - - bool MainWindow::SaveLevel() - { - return true; - } - - bool MainWindow::NewProject() - { - return true; - } - - bool MainWindow::OpenProject() - { - return true; - } - - bool MainWindow::SaveProject() - { - return true; - } } \ No newline at end of file