blob: 9bac87094010dd5c9f844aa5e1930710d73477e0 (
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
37
38
|
#ifndef MAIN_WINDOW_HH
#define MAIN_WINDOW_HH
#include "opengl_widget.hh"
#include "drone_controller.hh"
#include "settings_pane.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;
SettingsPane *settings_pane;
DroneController *dc = nullptr;
void play();
void pause();
public:
MainWindow(QWidget *parent=nullptr);
void open(const QString &path);
private slots:
void onOpenGLWidgetInitialized();
};
#endif
|