Changeset 4627 in ntrip for trunk/BNC/src/bnctabledlg.cpp


Ignore:
Timestamp:
Sep 1, 2012, 2:19:52 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4626 r4627  
    327327  bncMap->setGeometry( x(), int(y()+height()*1.3), 880, 440 );
    328328
    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)));
    331331     
    332332  _buttonMap->setEnabled(false);
     
    334334  bncMap->exec();
    335335  _buttonMap->setEnabled(true);
    336 
    337   disconnect(this, SIGNAL(newPoint(QPointF, QString, QPen, double)),
    338              bncMap, SLOT(slotNewPoint(QPointF, QString, QPen, double)));
    339    
    340336  delete bncMap;
    341337}
     
    344340////////////////////////////////////////////////////////////////////////////
    345341void 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}
    368354
    369355// Select slot
     
    400386        mountPoints->push_back(url.toString() + " " + format + " " + latitude
    401387                        + " " + longitude + " " + nmea + " " + ntripVersion);
    402        
     388       
    403389        site.resize(4);
    404         emit newPoint(QPointF(longitude.toDouble(),latitude.toDouble()), site,
    405                       QPen(QBrush(QColor(255,0,0,200)), 3.0), 3.0 );
    406390      }
    407391    }
    408392  }
    409393  emit newMountPoints(mountPoints);
    410   emit fitFont();
    411394}
    412395
Note: See TracChangeset for help on using the changeset viewer.