FGx  1
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
mpmapwidget.h
1 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
2 // FGx FlightGear Launcher // mpmapwidget.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 MPMAPWIDGET_H
10 #define MPMAPWIDGET_H
11 
12 #include <QtCore/QString>
13 
14 #include <QtGui/QWidget>
15 #include <QtGui/QProgressBar>
16 #include <QtGui/QStatusBar>
17 #include <QtGui/QComboBox>
18 
19 #include <QtGui/QCloseEvent>
20 
21 #include <QtWebKit/QWebView>
22 #include <QtNetwork/QNetworkDiskCache>
23 #include <QtNetwork/QNetworkCookieJar>
24 
25 #include "xobjects/mainobject.h"
26 
27 class MainObject;
28 
29 class MpMapWidget : public QWidget
30 {
31 Q_OBJECT
32 public:
33  explicit MpMapWidget(MainObject *mOb, QWidget *parent = 0);
34 
35  MainObject *mainObject;
36  QString *mpmapFollowCallsign;
37 
38 private:
39 
40  QProgressBar *progressBar;
41  QStatusBar *statusBar;
42  QComboBox *comboServer;
43 
44 
45  QWebView *webView;
46  QNetworkDiskCache *networkDiskCache;
47  QNetworkCookieJar *networkCookieJar;
48 
49 signals:
50 
51 public slots:
52  void start_progress();
53  void update_progress(int progress);
54  void end_progress(bool Ok);
55 
56  void on_combo_server();
57  void closeEvent(QCloseEvent *event);
58 };
59 
60 
61 #endif // MPMAPWIDGET_H