- Timestamp:
- Jun 9, 2013, 10:48:43 AM (11 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncwindow.cpp
r5186 r5187 2137 2137 //////////////////////////////////////////////////////////////////////////// 2138 2138 void bncWindow::slotMountPointsRead(QList<bncGetThread*> threads) { 2139 _threads = threads; 2140 2139 2141 _bncFigure->updateMountPoints(); 2140 2142 _bncFigureLate->updateMountPoints(); … … 2171 2173 SLOT(slotNewPosition(bncTime, double, double, double))); 2172 2174 } 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 2173 2183 break; 2174 2184 } … … 2859 2869 if (!_mapWin) { 2860 2870 _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 } 2861 2877 } 2862 2878 _mapWin->show(); -
trunk/BNC/src/bncwindow.h
r5179 r5187 261 261 bool _runningPostProcessingReqc; 262 262 263 bncMapWin* _mapWin; 263 bncMapWin* _mapWin; 264 QList<bncGetThread*> _threads; 264 265 265 266 #ifdef RTROVER_INTERFACE -
trunk/BNC/src/map/bncmapwin.cpp
r5181 r5187 116 116 // 117 117 //////////////////////////////////////////////////////////////////////////// 118 void bncMapWin:: slotGotoLocation(double lat, double lon) {118 void bncMapWin::gotoLocation(double lat, double lon) { 119 119 _currLat = lat; 120 120 _currLon = lon; … … 142 142 _currLat += 0.00001; 143 143 _currLon += 0.00001; 144 slotGotoLocation(_currLat, _currLon);144 gotoLocation(_currLat, _currLon); 145 145 QTimer::singleShot(100, this, SLOT(slotTest())); 146 146 } 147 147 } 148 149 // 150 //////////////////////////////////////////////////////////////////////////// 151 void bncMapWin::slotNewPosition(bncTime time, double xx, double yy, double zz) { 152 153 } -
trunk/BNC/src/map/bncmapwin.h
r5181 r5187 28 28 #include <QtGui> 29 29 #include <QtWebKit> 30 #include "bnctime.h" 30 31 31 32 class bncMapWin : public QDialog { … … 39 40 40 41 public slots: 41 void slot GotoLocation(double lat, double lon);42 void slotNewPosition(bncTime time, double xx, double yy, double zz); 42 43 43 44 private slots: … … 48 49 enum e_mode {mode_test, mode_ppp}; 49 50 void loadHtmlPage(); 51 void gotoLocation(double lat, double lon); 50 52 QWebView* _webView; 51 53 QPushButton* _testButton;
Note:
See TracChangeset
for help on using the changeset viewer.