source: ntrip/trunk/BNC/src/map/bncmapwin.h@ 8260

Last change on this file since 8260 was 8260, checked in by stuerze, 6 years ago

see #105: adaptations to allow for QtWebkit or QtWebEngine according to it's availability

File size: 1.8 KB
Line 
1// Part of BNC, a utility for retrieving decoding and
2// converting GNSS data streams from NTRIP broadcasters.
3//
4// Copyright (C) 2007
5// German Federal Agency for Cartography and Geodesy (BKG)
6// http://www.bkg.bund.de
7// Czech Technical University Prague, Department of Geodesy
8// http://www.fsv.cvut.cz
9//
10// Email: euref-ip@bkg.bund.de
11//
12// This program is free software; you can redistribute it and/or
13// modify it under the terms of the GNU General Public License
14// as published by the Free Software Foundation, version 2.
15//
16// This program is distributed in the hope that it will be useful,
17// but WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19// GNU General Public License for more details.
20//
21// You should have received a copy of the GNU General Public License
22// along with this program; if not, write to the Free Software
23// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
25#ifndef BNCMAPWIN_H
26#define BNCMAPWIN_H
27
28#ifdef QT_WEBENGINE
29 #include <QWebEngineView>
30#else
31 #include <QWebView>
32#endif
33#include <QLabel>
34#include <QHBoxLayout>
35#include <QWebFrame>
36#include <QByteArray>
37#include <QDialog>
38#include <QNetworkProxy>
39#include <QVector>
40#include "bnctime.h"
41
42class bncMapWin : public QDialog {
43 Q_OBJECT
44
45 public:
46 bncMapWin(QWidget* parent);
47 ~bncMapWin();
48
49 signals:
50 void mapClosed();
51
52 public slots:
53 void slotNewPosition(QByteArray staID, bncTime time, QVector<double> xx);
54
55 private slots:
56 void slotInitMap(bool isOk);
57
58 protected:
59 virtual void closeEvent(QCloseEvent *);
60
61 private:
62 void loadHtmlPage();
63 void gotoLocation(double lat, double lon);
64#ifdef QT_WEBENGINE
65 QWebEngineView* _webView;
66#else
67 QWebView* _webView;
68#endif
69 QLabel* _statusLabel;
70 double _currLat;
71 double _currLon;
72 QByteArray _staID;
73};
74
75#endif
Note: See TracBrowser for help on using the repository browser.