From 7fbe0814d52ba861a02b0560d4e6872845ef241e Mon Sep 17 00:00:00 2001 From: ccolin Date: Tue, 22 Dec 2020 13:15:23 +0100 Subject: initial commit --- src/main_window.hh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/main_window.hh (limited to 'src/main_window.hh') 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 +#include +#include +#include + + +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 -- cgit v1.2.3-70-g09d2