Changeset 5187 in ntrip


Ignore:
Timestamp:
Jun 9, 2013, 10:48:43 AM (8 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncwindow.cpp

    r5186 r5187  
    21372137////////////////////////////////////////////////////////////////////////////
    21382138void bncWindow::slotMountPointsRead(QList<bncGetThread*> threads) {
     2139  _threads = threads;
     2140
    21392141  _bncFigure->updateMountPoints();
    21402142  _bncFigureLate->updateMountPoints();
     
    21712173                  SLOT(slotNewPosition(bncTime, double, double, double)));
    21722174        }
     2175
     2176        if (_mapWin) {
     2177          disconnect(thread, SIGNAL(newPosition(bncTime, double, double, double)),
     2178                     _mapWin, SLOT(slotNewPosition(bncTime, double, double, double)));
     2179          connect(thread, SIGNAL(newPosition(bncTime, double, double, double)),
     2180                  _mapWin, SLOT(slotNewPosition(bncTime, double, double, double)));
     2181        }
     2182
    21732183        break;
    21742184      }
     
    28592869  if (!_mapWin) {
    28602870    _mapWin = new bncMapWin(this);
     2871    QListIterator<bncGetThread*> it(_threads);
     2872    while (it.hasNext()) {
     2873      bncGetThread* thread = it.next();
     2874      connect(thread, SIGNAL(newPosition(bncTime, double, double, double)),
     2875              _mapWin, SLOT(slotNewPosition(bncTime, double, double, double)));
     2876    }
    28612877  }
    28622878  _mapWin->show();
  • trunk/BNC/src/bncwindow.h

    r5179 r5187  
    261261    bool _runningPostProcessingReqc;
    262262
    263     bncMapWin* _mapWin;
     263    bncMapWin*           _mapWin;
     264    QList<bncGetThread*> _threads;
    264265
    265266#ifdef RTROVER_INTERFACE
  • trunk/BNC/src/map/bncmapwin.cpp

    r5181 r5187  
    116116//
    117117////////////////////////////////////////////////////////////////////////////
    118 void bncMapWin::slotGotoLocation(double lat, double lon) {
     118void bncMapWin::gotoLocation(double lat, double lon) {
    119119  _currLat = lat;
    120120  _currLon = lon;
     
    142142    _currLat += 0.00001;
    143143    _currLon += 0.00001;
    144     slotGotoLocation(_currLat, _currLon);
     144    gotoLocation(_currLat, _currLon);
    145145    QTimer::singleShot(100, this, SLOT(slotTest()));
    146146  }
    147147}
     148
     149//
     150////////////////////////////////////////////////////////////////////////////
     151void bncMapWin::slotNewPosition(bncTime time, double xx, double yy, double zz) {
     152
     153}
  • trunk/BNC/src/map/bncmapwin.h

    r5181 r5187  
    2828#include <QtGui>
    2929#include <QtWebKit>
     30#include "bnctime.h"
    3031
    3132class bncMapWin : public QDialog {
     
    3940
    4041 public slots:
    41   void slotGotoLocation(double lat, double lon);
     42  void slotNewPosition(bncTime time, double xx, double yy, double zz);
    4243
    4344 private slots:
     
    4849  enum e_mode {mode_test, mode_ppp};
    4950  void loadHtmlPage();
     51  void gotoLocation(double lat, double lon);
    5052  QWebView*    _webView;
    5153  QPushButton* _testButton;
Note: See TracChangeset for help on using the changeset viewer.