source: ntrip/trunk/BNC/bnchtml.cpp@ 280

Last change on this file since 280 was 280, checked in by mervart, 17 years ago

* empty log message *

File size: 2.1 KB
Line 
1// Part of BNC, a utility for retrieving decoding and
2// converting GNSS data streams from NTRIP broadcasters,
3// written by Leos Mervart.
4//
5// Copyright (C) 2006
6// German Federal Agency for Cartography and Geodesy (BKG)
7// http://www.bkg.bund.de
8// Czech Technical University Prague, Department of Advanced Geodesy
9// http://www.fsv.cvut.cz
10//
11// Email: euref-ip@bkg.bund.de
12//
13// This program is free software; you can redistribute it and/or
14// modify it under the terms of the GNU General Public License
15// as published by the Free Software Foundation, version 2.
16//
17// This program is distributed in the hope that it will be useful,
18// but WITHOUT ANY WARRANTY; without even the implied warranty of
19// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20// GNU General Public License for more details.
21//
22// You should have received a copy of the GNU General Public License
23// along with this program; if not, write to the Free Software
24// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26/* -------------------------------------------------------------------------
27 * BKG NTRIP Client
28 * -------------------------------------------------------------------------
29 *
30 * Class: bncHtml
31 *
32 * Purpose: HTML Browser
33 *
34 * Author: L. Mervart
35 *
36 * Created: 14-Sep-2006
37 *
38 * Changes:
39 *
40 * -----------------------------------------------------------------------*/
41
42#include "bnchtml.h"
43
44using namespace std;
45
46// Constructor
47////////////////////////////////////////////////////////////////////////////
48bncHtml::bncHtml() : QTextBrowser() {
49
50 connect(this,SIGNAL(anchorClicked(const QUrl&)),
51 this,SLOT(slotAnchorClicked(const QUrl&)));
52}
53
54// Destructor
55////////////////////////////////////////////////////////////////////////////
56bncHtml::~bncHtml() {
57
58}
59
60//
61////////////////////////////////////////////////////////////////////////////
62void bncHtml::slotAnchorClicked(const QUrl& url) {
63
64
65 QString href = url.toString();
66 if (href.indexOf(':') != 0) {
67 QUrl urlNew; urlNew.setPath(":bnchelp.html" + href);
68 setSource(url);
69 }
70}
Note: See TracBrowser for help on using the repository browser.