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


Ignore:
Timestamp:
Sep 7, 2012, 5:03:44 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4633 r4658  
    325325
    326326  t_bncMap* bncMap = new t_bncMap(this);
     327
    327328  bncMap->setGeometry( x(), int(y()+height()*1.3), 800, 600 );
    328329
    329   connect(this, SIGNAL(newPoint(const QString&, double, double)),
    330           bncMap, SLOT(slotNewPoint(const QString&, double, double)));
    331      
    332   _buttonMap->setEnabled(false);
    333   showSourceTable();
    334   bncMap->show();
    335   _buttonMap->setEnabled(true);
    336 }
    337 
    338 // Show world map
    339 ////////////////////////////////////////////////////////////////////////////
    340 void bncTableDlg::showSourceTable() {
    341   for(int i = 0; i < _allLines.size(); i++) {
    342     if (_allLines.at(i).startsWith("STR") == true){
    343       QStringList tmp = _allLines.at(i).split(';');
    344       if (tmp.size() > 0) {
     330  for (int ii = 0; ii < _allLines.size(); ii++) {
     331    if (_allLines.at(ii).startsWith("STR") == true) {
     332      QStringList tmp = _allLines.at(ii).split(';');
     333      if (tmp.size() > 10) {
    345334        double  latDeg = tmp.at(9).toDouble();
    346335        double  lonDeg = tmp.at(10).toDouble();
    347336        QString name   = tmp.at(1);
    348         emit newPoint(name, latDeg, lonDeg);
    349       }
    350     }
    351   }
     337        bncMap->slotNewPoint(name, latDeg, lonDeg);
     338      }
     339    }
     340  }
     341
     342  bncMap->show();
    352343}
    353344
Note: See TracChangeset for help on using the changeset viewer.