mod_geo-tp/src/main_window.h

33 lines
481 B
C
Raw Normal View History

2021-09-20 20:36:29 +02:00
#ifndef MAIN_WINDOW_H
#define MAIN_WINDOW_H
#include <QMainWindow>
#include <QToolBar>
#include "mesh_viewer.h"
#include "my_mesh.h"
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow(QWidget *parent=nullptr);
void open(const QString &path);
private slots:
void meshViewerInitialized();
private:
MyMesh mesh;
MeshViewer mesh_viewer;
OpenGLMesh *glm = nullptr;
QToolBar toolbar;
QAction *open_action;
QList<QAction *> toolbar_actions;
};
#endif