Index: trunk/BNC/bnc.pro
===================================================================
--- trunk/BNC/bnc.pro	(revision 176)
+++ trunk/BNC/bnc.pro	(revision 177)
@@ -12,5 +12,5 @@
 
 HEADERS = bnchelp.html bncgetthread.h    bncwindow.h   bnctabledlg.h  \
-          bnccaster.h bncrinex.h bncapp.h bncutils.h                  \
+          bnccaster.h bncrinex.h bncapp.h bncutils.h   bnchlpdlg.h    \
           bncconst.h bnchtml.h                                        \
           RTCM/format.h RTCM/GPSDecoder.h RTCM/m_data.h RTCM/RTCM.h   \
@@ -22,5 +22,5 @@
 SOURCES = bncmain.cpp bncgetthread.cpp  bncwindow.cpp bnctabledlg.cpp \
           bnccaster.cpp bncrinex.cpp bncapp.cpp bncutils.cpp          \
-          bncconst.cpp bnchtml.cpp                                    \
+          bncconst.cpp bnchtml.cpp bnchlpdlg.cpp                      \
           RTCM/m_date.cpp RTCM/RTCM.cpp                               \
           RTCM3/rtcm3.cpp RTCM3/rtcm3torinex.cpp                      \
Index: trunk/BNC/bnchlpdlg.cpp
===================================================================
--- trunk/BNC/bnchlpdlg.cpp	(revision 177)
+++ trunk/BNC/bnchlpdlg.cpp	(revision 177)
@@ -0,0 +1,82 @@
+
+/* -------------------------------------------------------------------------
+ * BKG NTRIP Client
+ * -------------------------------------------------------------------------
+ *
+ * Class:      bncHlpDlg
+ *
+ * Purpose:    Displays the help
+ *
+ * Author:     L. Mervart
+ *
+ * Created:    24-Sep-2006
+ *
+ * Changes:    
+ *
+ * -----------------------------------------------------------------------*/
+
+#include "bnchlpdlg.h"
+#include "bnchtml.h"
+
+// Constructor
+////////////////////////////////////////////////////////////////////////////
+bncHlpDlg::bncHlpDlg(QWidget* parent, const QUrl& url) :
+                    QDialog(parent) {
+
+  const int ww = QFontMetrics(font()).width('w');
+
+  bncHtml* _tb = new bncHtml;
+  _tb->setSource(url);
+  _tb->setReadOnly(true);
+  connect(_tb, SIGNAL(backwardAvailable(bool)),
+          this, SLOT(backwardAvailable(bool)));
+  connect(_tb, SIGNAL(forwardAvailable(bool)),
+          this, SLOT(forwardAvailable(bool)));
+
+  QVBoxLayout* dlgLayout = new QVBoxLayout;
+  dlgLayout->addWidget(_tb);
+
+  QHBoxLayout* butLayout = new QHBoxLayout;
+
+  _backButton = new QPushButton("Backward");
+  _backButton->setMaximumWidth(10*ww);
+  _backButton->setEnabled(false);
+  connect(_backButton, SIGNAL(clicked()), _tb, SLOT(backward()));
+  butLayout->addWidget(_backButton);
+
+  _forwButton = new QPushButton("Forward");
+  _forwButton->setMaximumWidth(10*ww);
+  _forwButton->setEnabled(false);
+  connect(_forwButton, SIGNAL(clicked()), _tb, SLOT(forward()));
+  butLayout->addWidget(_forwButton);
+
+  _closeButton = new QPushButton("Close");
+  _closeButton->setMaximumWidth(10*ww);
+  butLayout->addWidget(_closeButton);
+  connect(_closeButton, SIGNAL(clicked()), this, SLOT(close()));
+
+  dlgLayout->addLayout(butLayout);
+
+  setLayout(dlgLayout);
+  resize(60*ww, 60*ww);
+  show();
+}
+
+// Destructor
+////////////////////////////////////////////////////////////////////////////
+bncHlpDlg::~bncHlpDlg() {
+  delete _tb;
+  delete _backButton;
+  delete _forwButton;
+  delete _closeButton;
+}
+
+// Slots
+////////////////////////////////////////////////////////////////////////////
+void bncHlpDlg::backwardAvailable(bool avail) {
+  _backButton->setEnabled(avail);
+}
+
+void bncHlpDlg::forwardAvailable(bool avail) {
+  _forwButton->setEnabled(avail);
+}
Index: trunk/BNC/bnchlpdlg.h
===================================================================
--- trunk/BNC/bnchlpdlg.h	(revision 177)
+++ trunk/BNC/bnchlpdlg.h	(revision 177)
@@ -0,0 +1,30 @@
+
+#ifndef BNCHLPDLG_H
+#define BNCHLPDLG_H
+
+#include <QtCore>
+#include <QtGui>
+
+class bncHtml;
+
+class bncHlpDlg : public QDialog {
+  Q_OBJECT
+
+  public:
+    bncHlpDlg(QWidget* parent, const QUrl& url);
+    ~bncHlpDlg();
+
+  signals:
+ 
+  public slots:
+    void backwardAvailable(bool);
+    void forwardAvailable(bool);
+
+  private:
+    bncHtml*     _tb;
+    QPushButton* _backButton;
+    QPushButton* _forwButton;
+    QPushButton* _closeButton;
+};
+
+#endif
Index: trunk/BNC/bnchtml.cpp
===================================================================
--- trunk/BNC/bnchtml.cpp	(revision 176)
+++ trunk/BNC/bnchtml.cpp	(revision 177)
@@ -15,6 +15,4 @@
  *
  * -----------------------------------------------------------------------*/
-
-#include <iostream>
 
 #include "bnchtml.h" 
Index: trunk/BNC/bncwindow.cpp
===================================================================
--- trunk/BNC/bncwindow.cpp	(revision 176)
+++ trunk/BNC/bncwindow.cpp	(revision 177)
@@ -20,4 +20,5 @@
 #include "bncgetthread.h" 
 #include "bnctabledlg.h" 
+#include "bnchlpdlg.h" 
 #include "bnchtml.h" 
 
@@ -442,19 +443,7 @@
 ////////////////////////////////////////////////////////////////////////////
 void bncWindow::slotHelp() {
-
-  bncHtml* tb = new bncHtml;
-  QUrl url; url.setPath(":bnchelp.html");
-  tb->setSource(url);
-  tb->setReadOnly(true);
-
-  QDialog* dlg = new QDialog(this);
-
-  QVBoxLayout* dlgLayout = new QVBoxLayout();
-  dlgLayout->addWidget(tb);
-
-  dlg->setLayout(dlgLayout);
-  int ww = QFontMetrics(font()).width('w');
-  dlg->resize(60*ww, 60*ww);
-  dlg->show();
+  QUrl url; 
+  url.setPath(":bnchelp.html");
+  new bncHlpDlg(this, url);
 }
 
