-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.hpp
59 lines (47 loc) · 1.09 KB
/
mainwindow.hpp
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#include <QMainWindow>
#include <QVector>
#include <QPointF>
#include <QGraphicsScene>
class QTimer;
class QMenu;
class QAction;
class QGraphicsSceneMouseEvent;
class QKeyEvent;
class MainWindow;
class Landscape;
class LandscapeScene;
class Simulation;
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow();
~MainWindow();
void setMoveWeight( int newWeight );
void setMatchWeight( int newWeight );
void setAvoidWeight( int newWeight );
void setTargetWeight( int newWeight );
void toggleScatter();
void toggleAvoid();
void toggleMatch();
void addBoid();
void removeBoid( );
void addBoid2( );
void removeBoid2( );
void toggleTails();
int ticksSinceStart();
public slots:
void togglePause();
private:
void createActions();
void createMenus();
Simulation *simulation_;
Landscape *landscapeView_;
LandscapeScene *landscapeScene_;
void setupLandscape();
void createSimulation();
QMenu *fileMenu_;
QMenu *simMenu_;
QAction *quitAct_;
QAction *pauseAct_;
int ticksSinceStart_;
};