1234567891011121314151617181920212223242526272829303132 |
- #pragma once
- #include "OSGWidget.hpp"
- #include "NoMeshWidget.hpp"
- #include "EditWidget.hpp"
- #include <QMainWindow>
- QT_BEGIN_NAMESPACE
- namespace Ui { class MainWindow; }
- QT_END_NAMESPACE
- enum GuiView {
- NoMesh,
- Edit,
- };
- class MainWindow: public QMainWindow {
- Q_OBJECT
- public:
- MainWindow(QWidget* parent = nullptr);
- ~MainWindow();
- void renderView(GuiView view);
- private:
- void openFile();
- Ui::MainWindow* ui;
- OSGWidget* osgWidget;
- NoMeshWidget* noMeshWidget;
- EditWidget* editWidget;
- };
|