Changeset 4627 in ntrip for trunk/BNC/src/bnctabledlg.cpp
- Timestamp:
- Sep 1, 2012, 2:19:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnctabledlg.cpp
r4626 r4627 327 327 bncMap->setGeometry( x(), int(y()+height()*1.3), 880, 440 ); 328 328 329 connect(this, SIGNAL(newPoint( QPointF, QString, QPen, double)),330 bncMap, SLOT(slotNewPoint(QPointF, QString, QPen, double)));329 connect(this, SIGNAL(newPoint(const QString&, double, double)), 330 bncMap, SLOT(slotNewPoint(const QString&, double, double))); 331 331 332 332 _buttonMap->setEnabled(false); … … 334 334 bncMap->exec(); 335 335 _buttonMap->setEnabled(true); 336 337 disconnect(this, SIGNAL(newPoint(QPointF, QString, QPen, double)),338 bncMap, SLOT(slotNewPoint(QPointF, QString, QPen, double)));339 340 336 delete bncMap; 341 337 } … … 344 340 //////////////////////////////////////////////////////////////////////////// 345 341 void bncTableDlg::showSourceTable() { 346 347 for( int i = 0; i < _allLines.size(); i++ ){ 348 349 if( _allLines.at(i).startsWith("STR") == true ){ 350 351 QStringList tmp = _allLines.at(i).split(';'); 352 if( tmp.size() > 0 ){ 353 354 QPointF point; 355 point.setY( tmp.at(9).toDouble() ); 356 point.setX( tmp.at(10).toDouble() ); 357 358 QString site = tmp.at(1); 359 site.resize(4); 360 361 emit newPoint(point, site, QPen(QBrush(QColor(0,0,255,200)), 1.5), 1.5 ); 362 } 363 } 364 } 365 emit fitMap(); 366 } 367 342 for(int i = 0; i < _allLines.size(); i++) { 343 if (_allLines.at(i).startsWith("STR") == true){ 344 QStringList tmp = _allLines.at(i).split(';'); 345 if (tmp.size() > 0) { 346 double latDeg = tmp.at(9).toDouble(); 347 double lonDeg = tmp.at(10).toDouble(); 348 QString name = tmp.at(1); 349 emit newPoint(name, latDeg, lonDeg); 350 } 351 } 352 } 353 } 368 354 369 355 // Select slot … … 400 386 mountPoints->push_back(url.toString() + " " + format + " " + latitude 401 387 + " " + longitude + " " + nmea + " " + ntripVersion); 402 388 403 389 site.resize(4); 404 emit newPoint(QPointF(longitude.toDouble(),latitude.toDouble()), site,405 QPen(QBrush(QColor(255,0,0,200)), 3.0), 3.0 );406 390 } 407 391 } 408 392 } 409 393 emit newMountPoints(mountPoints); 410 emit fitFont();411 394 } 412 395
Note:
See TracChangeset
for help on using the changeset viewer.