Fork me on GitHub
2.15.20
FGx
A cross-platform launcher for FlightGear
mpmapxwidget.h
Go to the documentation of this file.
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 <QVariant>
13 #include <QString>
14 
15 #include <QWebView>
16 #include <QNetworkDiskCache>
17 #include <QNetworkCookieJar>
18 
19 #include <QSplitter>
20 #include <QStatusBar>
21 #include <QProgressBar>
22 #include <QLabel>
23 #include <QWidget>
24 #include <QActionGroup>
25 #include <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 
51 
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 * mainObject
Definition: mpmapxwidget.h:50
MpMapXWidget(MainObject *mob, QWidget *parent=0)
PilotsWidget * pilotsWidget
Definition: mpmapxwidget.h:53
void show_airport(QString airport)
void focus_aero(XAero aero)
The MainObject is an extended QObject, and the main "controller" for FGx.
Definition: mainobject.h:66
void on_splitter_moved()
void add_airport(QString airport)
OpenLayerWidget * mapWidget
Definition: mpmapxwidget.h:52
QSplitter * splitter
Definition: mpmapxwidget.h:55
void initialize()
Definition: xaero.h:14
void closeEvent(QCloseEvent *event)
void add_runway(QString airport, QString rwy1, QString rwy2, QString lat1, QString lng1, QString lat2, QString lng2)