MainWindow.hpp 511 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include "OSGWidget.hpp"
  3. #include "NoMeshWidget.hpp"
  4. #include "EditWidget.hpp"
  5. #include <QMainWindow>
  6. QT_BEGIN_NAMESPACE
  7. namespace Ui { class MainWindow; }
  8. QT_END_NAMESPACE
  9. enum GuiView {
  10. NoMesh,
  11. Edit,
  12. };
  13. class MainWindow: public QMainWindow {
  14. Q_OBJECT
  15. public:
  16. MainWindow(QWidget* parent = nullptr);
  17. ~MainWindow();
  18. void renderView(GuiView view);
  19. private:
  20. void openFile();
  21. Ui::MainWindow* ui;
  22. OSGWidget* osgWidget;
  23. NoMeshWidget* noMeshWidget;
  24. EditWidget* editWidget;
  25. };