-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHTAppQt.h
executable file
·53 lines (41 loc) · 1.25 KB
/
HTAppQt.h
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
#ifndef HTAPPQT_H_
#define HTAPPQT_H_
#include <QObject>
#include <QAction>
#include "HTapp.h"
#include "gui/hammerqt.h"
#include "units/UnitObserver.h"
class HypothesisManager;
class Observations;
class HTAppQt : public QObject, public HTApplication
{
Q_OBJECT
public:
HTAppQt(const std::string& configFilename, const std::string& hostName, int port, bool wait_for_client, const std::string& scenarioFilename, int id, std::string& replayFile, std::string& configFile);
virtual ~HTAppQt();
virtual void initGUI();
virtual void Init(hammerQt* gui);
virtual void CreateActors();
virtual void InitHypothesisManager();
virtual void PreFrameGUI(const double);
virtual void PostFrame(const double);
void setGUI(hammerQt* gui) { hudGUI = mQtGUI = gui; }
protected slots:
void unitSelected(QString unitId);
void onNew();
void onOpen();
void onSave();
void onPathPlanning(bool);
void onFormation(QAction *);
void onManoeuvre(QAction *);
void onSaveAll();
public slots:
void onLaunchHypotheses();
protected:
void makeConnections();
virtual void RemoveUnit(Unit* unit, bool clear = false);
//Overrides the default drag rect that uses the X api.
virtual void drawDragRect(osg::Vec2 pressPoint, osg::Vec2 dragPoint);
hammerQt* mQtGUI;
};
#endif /*HTAPPQT_H_*/