Index: trunk/BNC/bnc.pro
===================================================================
--- trunk/BNC/bnc.pro	(revision 2139)
+++ trunk/BNC/bnc.pro	(revision 2140)
@@ -39,5 +39,5 @@
           bncserialport.h bncnetquerys.h bncfigure.h                  \ 
           bncfigurelate.h bncpppclient.h bncversion.h                 \ 
-          bancroft.h bncmodel.h                                       \ 
+          bancroft.h bncmodel.h bncfigureppp.h                        \ 
           RTCM/GPSDecoder.h RTCM/RTCM2.h RTCM/RTCM2Decoder.h          \
           RTCM/RTCM2_2021.h RTCM/rtcm_utils.h                         \
@@ -67,5 +67,5 @@
           bncserialport.cpp bncnetquerys.cpp bncfigure.cpp            \
           bncfigurelate.cpp bncpppclient.cpp bnctime.cpp              \
-          bancroft.cpp bncmodel.cpp                                   \ 
+          bancroft.cpp bncmodel.cpp bncfigureppp.cpp                  \ 
           RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp                        \
           RTCM/RTCM2_2021.cpp RTCM/rtcm_utils.cpp                     \
Index: trunk/BNC/bncfigureppp.cpp
===================================================================
--- trunk/BNC/bncfigureppp.cpp	(revision 2140)
+++ trunk/BNC/bncfigureppp.cpp	(revision 2140)
@@ -0,0 +1,111 @@
+// Part of BNC, a utility for retrieving decoding and
+// converting GNSS data streams from NTRIP broadcasters.
+//
+// Copyright (C) 2007
+// German Federal Agency for Cartography and Geodesy (BKG)
+// http://www.bkg.bund.de
+// Czech Technical University Prague, Department of Geodesy
+// http://www.fsv.cvut.cz
+//
+// Email: euref-ip@bkg.bund.de
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation, version 2.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+/* -------------------------------------------------------------------------
+ * BKG NTRIP Client
+ * -------------------------------------------------------------------------
+ *
+ * Class:      bncFigurePPP
+ *
+ * Purpose:    
+ *
+ * Author:     Perlt, Mervart
+ *
+ * Created:    11-Nov-2009
+ *
+ * Changes:    
+ *
+ * -----------------------------------------------------------------------*/
+
+#include <iostream>
+
+#include "bncfigureppp.h" 
+#include "bncsettings.h"
+
+using namespace std;
+
+// Constructor
+////////////////////////////////////////////////////////////////////////////
+bncFigurePPP::bncFigurePPP(QWidget *parent) : QWidget(parent) {
+}
+
+// Destructor
+////////////////////////////////////////////////////////////////////////////
+bncFigurePPP::~bncFigurePPP() { 
+  for (int ii = 0; ii < _pos.size(); ++ii) {
+    delete _pos[ii];
+  }
+}
+
+// 
+////////////////////////////////////////////////////////////////////////////
+void bncFigurePPP::slotNewPosition(const double* xyz) {
+
+  const static int MAXNUMPOS = 1000;
+
+  QMutexLocker locker(&_mutex);
+
+  double* newPos = new double [3];
+
+  newPos[0] = xyz[0];
+  newPos[1] = xyz[1];
+  newPos[2] = xyz[2];
+
+  _pos.push_back(newPos);
+
+  if (_pos.size() > MAXNUMPOS) {
+    delete _pos[0];
+    _pos.pop_front();
+  }
+
+  update();
+}
+
+// 
+////////////////////////////////////////////////////////////////////////////
+void bncFigurePPP::paintEvent(QPaintEvent *) {
+
+  int xMin =   0;
+  int xMax = 640;
+  int yMin =   0;
+  int yMax = 140;
+  float xLine = .60;
+
+  QPainter painter(this);
+
+  QFont font;
+  font.setPointSize(int(font.QFont::pointSize()*0.8));
+  painter.setFont(font);
+
+  // x-axis
+  // ------
+  painter.drawLine(xMin+60, int((yMax-yMin)*xLine), xMax*3, 
+                   int((yMax-yMin)*xLine));
+
+  // y-axis
+  // ------
+  painter.drawLine(xMin+60, int((yMax-yMin)*xLine), xMin+60, yMin+10);
+
+}
+
Index: trunk/BNC/bncfigureppp.h
===================================================================
--- trunk/BNC/bncfigureppp.h	(revision 2140)
+++ trunk/BNC/bncfigureppp.h	(revision 2140)
@@ -0,0 +1,47 @@
+// Part of BNC, a utility for retrieving decoding and
+// converting GNSS data streams from NTRIP broadcasters.
+//
+// Copyright (C) 2007
+// German Federal Agency for Cartography and Geodesy (BKG)
+// http://www.bkg.bund.de
+// Czech Technical University Prague, Department of Geodesy
+// http://www.fsv.cvut.cz
+//
+// Email: euref-ip@bkg.bund.de
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation, version 2.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+#ifndef BNCFIGUREPPP_H
+#define BNCFIGUREPPP_H
+
+#include <QtGui>
+
+class bncFigurePPP : public QWidget {
+  Q_OBJECT
+ public:
+  bncFigurePPP(QWidget *parent);
+  ~bncFigurePPP();
+
+ public slots:
+  void slotNewPosition(const double* xyz);
+
+ protected:
+  void paintEvent(QPaintEvent *event);
+
+ private:
+  QMutex           _mutex;
+  QVector<double*> _pos;
+};
+
+#endif
