FGx
1
src
mpmap
mpmapxwidget.h
1
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
2
// FGx FlightGear Launcher // mpmapxwidget.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 MPMAPXWIDGET_H
10
#define MPMAPXWIDGET_H
11
12
#include <QtCore/QVariant>
13
#include <QtCore/QString>
14
15
#include <QtWebKit/QWebView>
16
#include <QtNetwork/QNetworkDiskCache>
17
#include <QtNetwork/QNetworkCookieJar>
18
19
#include <QtGui/QSplitter>
20
#include <QtGui/QStatusBar>
21
#include <QtGui/QProgressBar>
22
#include <QtGui/QLabel>
23
#include <QtGui/QWidget>
24
#include <QtGui/QActionGroup>
25
#include <QtGui/QToolButton>
26
27
28
#include "map/openlayerwidget.h"
29
class
OpenLayerWidget
;
30
31
#include "mpmap/pilotswidget.h"
32
class
PilotsWidget
;
33
34
#include "xobjects/mainobject.h"
35
class
MainObject
;
36
37
//#include "xobjects/latlng.h"
38
39
#include "aircraft/xaero.h"
40
41
42
43
44
class
MpMapXWidget
:
public
QWidget
45
{
46
Q_OBJECT
47
public
:
48
explicit
MpMapXWidget
(
MainObject
*mob, QWidget *parent = 0);
49
50
MainObject
*mainObject;
51
52
OpenLayerWidget
*mapWidget;
53
PilotsWidget
*pilotsWidget;
54
55
QSplitter *splitter;
56
57
void
closeEvent(QCloseEvent *event);
58
signals:
59
60
public
slots:
61
62
void
initialize();
63
64
void
add_airport(QString airport);
65
void
add_runway(QString airport, QString rwy1, QString rwy2, QString lat1, QString lng1, QString lat2, QString lng2);
66
void
show_airport(QString airport);
67
68
void
focus_aero(
XAero
aero);
69
70
//void on_freeze_map(bool freeze);
71
void
on_splitter_moved();
72
};
73
74
#endif // MPMAPXWIDGET_H
MainObject
The MainObject is an extended QObject, and the main "controller" for FGx.
Definition:
mainobject.h:61
PilotsWidget
Definition:
pilotswidget.h:32
XAero
Definition:
xaero.h:14
MpMapXWidget
Definition:
mpmapxwidget.h:44
OpenLayerWidget
Definition:
openlayerwidget.h:37
Generated on Thu Feb 13 2020 01:20:07 for FGx by
1.8.17