Index: /trunk/BNC/bnc.pro
===================================================================
--- /trunk/BNC/bnc.pro	(revision 3243)
+++ /trunk/BNC/bnc.pro	(revision 3244)
@@ -43,4 +43,5 @@
           bnctides.h bncmap.h bncmapview.h bncantex.h                 \
           bncephuser.h bncoutf.h bncclockrinex.h bncsp3.h             \
+          bncbytescounter.h                                           \
           upload/bncrtnetdecoder.h upload/bncuploadcaster.h           \
           upload/bncrtnetuploadcaster.h upload/bnccustomtrafo.h       \
@@ -76,4 +77,5 @@
           bnctides.cpp bncmap.cpp bncmapview.cpp bncantex.cpp         \
           bncephuser.cpp bncoutf.cpp bncclockrinex.cpp bncsp3.cpp     \
+          bncbytescounter.cpp                                         \
           upload/bncrtnetdecoder.cpp upload/bncuploadcaster.cpp       \
           upload/bncrtnetuploadcaster.cpp upload/bnccustomtrafo.cpp   \
Index: /trunk/BNC/bncbytescounter.cpp
===================================================================
--- /trunk/BNC/bncbytescounter.cpp	(revision 3244)
+++ /trunk/BNC/bncbytescounter.cpp	(revision 3244)
@@ -0,0 +1,72 @@
+// 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:      bncBytesCounter
+ *
+ * Purpose:    Re-Implements QLabel
+ *
+ * Author:     L. Mervart
+ *
+ * Created:    03-Apr-2011
+ *
+ * Changes:    
+ *
+ * -----------------------------------------------------------------------*/
+
+#include "bncbytescounter.h"
+
+// Constructor
+////////////////////////////////////////////////////////////////////////////
+bncBytesCounter::bncBytesCounter() : QLabel() {
+  _bytesRead = 0.0;
+  setText(QString("%1 byte(s)").arg(0));
+}
+
+// Destructor
+////////////////////////////////////////////////////////////////////////////
+bncBytesCounter::~bncBytesCounter() {
+}
+
+// 
+////////////////////////////////////////////////////////////////////////////
+void bncBytesCounter::slotNewBytes(const QByteArray, double nbyte) {
+
+  QMutexLocker locker(&_mutex);
+
+  _bytesRead += nbyte;
+
+  if      (_bytesRead < 1e3) {
+    setText(QString("%1 byte(s)").arg((int)_bytesRead));
+  }
+  else if (_bytesRead < 1e6) {
+    setText(QString("%1 kB").arg(_bytesRead/1.e3, 5));
+  }
+  else {
+    setText(QString("%1 MB").arg(_bytesRead/1.e6, 5));
+  }
+}
Index: /trunk/BNC/bncbytescounter.h
===================================================================
--- /trunk/BNC/bncbytescounter.h	(revision 3244)
+++ /trunk/BNC/bncbytescounter.h	(revision 3244)
@@ -0,0 +1,45 @@
+// 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 BNCBYTESCOUNTER_H
+#define BNCBYTESCOUNTER_H
+
+#include <QtGui>
+
+class bncBytesCounter : public QLabel {
+  Q_OBJECT
+
+  public:
+    bncBytesCounter();
+    ~bncBytesCounter();
+ 
+  public slots:
+    void slotNewBytes(const QByteArray staID, double nbyte);
+
+  private:
+    double _bytesRead;
+    QMutex _mutex;
+};
+
+#endif
Index: /trunk/BNC/bncwindow.cpp
===================================================================
--- /trunk/BNC/bncwindow.cpp	(revision 3243)
+++ /trunk/BNC/bncwindow.cpp	(revision 3244)
@@ -993,5 +993,5 @@
   uploadLayoutEph->addWidget(_uploadEphHostLineEdit,              0, 1, 1, 3);
   uploadLayoutEph->addWidget(new QLabel("  Port"),                0, 4, Qt::AlignRight);
-  uploadLayoutEph->addWidget(_uploadEphPortLineEdit,              0, 5, 1, 10);
+  uploadLayoutEph->addWidget(_uploadEphPortLineEdit,              0, 5, 1, 1);
   uploadLayoutEph->addWidget(new QLabel("Mountpoint           "), 1, 0);
   uploadLayoutEph->addWidget(_uploadEphMountpointLineEdit,        1, 1);
@@ -1000,5 +1000,7 @@
   uploadLayoutEph->addWidget(new QLabel("Sampling"),              2, 0);
   uploadLayoutEph->addWidget(_uploadEphSampleSpinBox,             2, 1);
-  uploadLayoutEph->addWidget(new QLabel("Upload concatenated RTCMv3 Broadcast Ephemeris to caster."), 3, 0, 1, 50);
+  uploadLayoutEph->addWidget(new QLabel("Upload concatenated RTCMv3 Broadcast Ephemeris to caster."), 3, 0, 1, 5);
+
+  uploadLayoutEph->addWidget(new QLabel("0 byte(s)"), 3, 5); 
 
   uploadEphgroup->setLayout(uploadLayoutEph);
