12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #pragma once
- #include "OSGWidget.hpp"
- #include "NoMeshWidget.hpp"
- #include "EditWidget.hpp"
- #include "ProjectStore.hpp"
- #include "enums.hpp"
- #include <QMainWindow>
- QT_BEGIN_NAMESPACE
- namespace Ui { class MainWindow; }
- QT_END_NAMESPACE
- class MainWindow: public QMainWindow {
- Q_OBJECT
- public:
- static MainWindow* getInstance();
- MainWindow(QWidget* parent = nullptr);
- ~MainWindow();
- void renderView(GuiView view);
- OSGWidget* getOsgWidget();
- ProjectStore* getStore();
- EditWidget* getEditWiget();
- private:
- void load();
- void save();
- void saveAs();
- void loadStaticMeshes();
- Ui::MainWindow* ui;
- OSGWidget* osgWidget;
- NoMeshWidget* noMeshWidget;
- EditWidget* editWidget;
- ProjectStore* projectStore;
- QMenu* fileMenu;
- QAction* newAct;
- QAction* loadAct;
- QAction* saveAct;
- QAction* saveAsAct;
- QAction* closeAct;
- };
|