FGx
1
Main Page
Related Pages
Classes
Files
File List
File Members
src
mpmap
pilotswidget.h
1
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
2
// FGx FlightGear Launcher // pilotswidget.h
3
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
4
// (c) 2010-2012
5
// Yves Sablonier, Pete Morgan
6
// Geoff McLane
7
// GNU GPLv2, see main.cpp and shipped licence.txt for further information
8
9
#ifndef PILOTSWIDGET_H
10
#define PILOTSWIDGET_H
11
12
13
#include <QtNetwork/QNetworkAccessManager>
14
#include <QtNetwork/QNetworkReply>
15
16
#include <QDomDocument>
17
18
#include <QtGui/QWidget>
19
#include <QtGui/QTreeWidget>
20
#include <QtGui/QStatusBar>
21
#include <QtGui/QCheckBox>
22
#include <QtGui/QComboBox>
23
24
25
#include "xobjects/mainobject.h"
26
class
MainObject
;
27
28
#include "map/openlayerwidget.h"
29
30
#include "aircraft/xaero.h"
31
32
class
PilotsWidget
:
public
QWidget
33
{
34
Q_OBJECT
35
public
:
36
explicit
PilotsWidget
(
MainObject
*mob, QWidget *parent = 0);
37
38
enum
COLS{
39
C_CALLSIGN = 0,
40
C_AIRCRAFT = 1,
41
C_ALTITUDE =2,
42
C_HEADING = 3,
43
C_PITCH = 4,
44
C_LAT = 5,
45
C_LON = 6,
46
C_FLAG = 7,
47
C_COUNT = 8
48
};
49
50
MainObject
*mainObject;
51
52
OpenLayerWidget
*mapWidget;
53
QDomDocument dom;
54
55
QNetworkAccessManager *netMan;
56
QNetworkReply *reply;
57
QString server_string;
58
59
QCheckBox *checkBoxFollowSelected;
60
61
QCheckBox *checkBoxAutoRefresh;
62
QComboBox *comboBoxHz;
63
64
QTreeWidget *tree;
65
66
QStatusBar *statusBar;
67
68
QButtonGroup *buttonGroupCols;
69
70
void
set_map_widget(
OpenLayerWidget
*mapWidget);
71
72
signals:
73
74
//void radar(QString callsign, QString lat, QString lon, QString heading, QString altitude, bool is_tower);
75
//void clear_radar();
76
void
aircraft_selected(
XAero
aero);
77
78
public
slots:
79
80
void
fetch_pilots();
81
82
void
on_server_error(QNetworkReply::NetworkError);
83
void
on_server_ready_read();
84
void
on_server_read_finished();
85
86
void
on_check_autorefresh(
int
);
87
void
on_combo_changed(
int
);
88
void
on_item_doubled_clicked(QTreeWidgetItem*,
int
);
89
90
void
on_show_cols(QAbstractButton*);
91
92
};
93
94
#endif // PILOTSWIDGET_H
MainObject
The MainObject is an extended QObject, and the main "controller" for FGx.
Definition:
mainobject.h:61
OpenLayerWidget
Definition:
openlayerwidget.h:37
XAero
Definition:
xaero.h:14
PilotsWidget
Definition:
pilotswidget.h:32
Generated on Thu Feb 4 2016 13:59:22 for FGx by
1.8.11