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

Last change on this file since 168 was 168, checked in by mervart, 18 years ago

* empty log message *

File size: 1.0 KB
Line 
1
2/* -------------------------------------------------------------------------
3 * BKG NTRIP Client
4 * -------------------------------------------------------------------------
5 *
6 * Class: bncHtml
7 *
8 * Purpose: HTML Browser
9 *
10 * Author: L. Mervart
11 *
12 * Created: 14-Sep-2006
13 *
14 * Changes:
15 *
16 * -----------------------------------------------------------------------*/
17
18#include <iostream>
19
20#include "bnchtml.h"
21
22using namespace std;
23
24// Constructor
25////////////////////////////////////////////////////////////////////////////
26bncHtml::bncHtml() : QTextBrowser() {
27
28 connect(this,SIGNAL(anchorClicked(const QUrl&)),
29 this,SLOT(slotAnchorClicked(const QUrl&)));
30}
31
32// Destructor
33////////////////////////////////////////////////////////////////////////////
34bncHtml::~bncHtml() {
35
36}
37
38//
39////////////////////////////////////////////////////////////////////////////
40void bncHtml::slotAnchorClicked(const QUrl& url) {
41
42 QString str(
43#include "bnchelp.html"
44 );
45 setHtml(str);
46
47 scrollToAnchor(url.toString().mid(1));
48}
Note: See TracBrowser for help on using the repository browser.