aboutsummaryrefslogtreecommitdiff
path: root/src/main_window.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_window.hh')
-rw-r--r--src/main_window.hh36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/main_window.hh b/src/main_window.hh
new file mode 100644
index 0000000..1e8868a
--- /dev/null
+++ b/src/main_window.hh
@@ -0,0 +1,36 @@
+#ifndef MAIN_WINDOW_HH
+#define MAIN_WINDOW_HH
+
+#include "opengl_widget.hh"
+#include "drone_controller.hh"
+
+#include <QMainWindow>
+#include <QTimer>
+#include <QToolBar>
+#include <QSlider>
+
+
+class MainWindow : public QMainWindow {
+ Q_OBJECT
+
+ OpenGLWidget glw;
+ QTimer timer;
+ QToolBar top_tb;
+ QToolBar bottom_tb;
+ QAction *open_action;
+ QAction *playpause_action;
+ QSlider *slider;
+ DroneController *dc = nullptr;
+ void play();
+ void pause();
+
+public:
+ MainWindow(QWidget *parent=nullptr);
+ void open(const QString &path);
+
+private slots:
+ void onOpenGLWidgetInitialized();
+};
+
+
+#endif