blob: 1e8868a6d07ebc243ec0ad530b82f33cd2e8ec94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
|