Changeset 4658 in ntrip
- Timestamp:
- Sep 7, 2012, 5:03:44 PM (12 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnctabledlg.cpp
r4633 r4658 325 325 326 326 t_bncMap* bncMap = new t_bncMap(this); 327 327 328 bncMap->setGeometry( x(), int(y()+height()*1.3), 800, 600 ); 328 329 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) { 345 334 double latDeg = tmp.at(9).toDouble(); 346 335 double lonDeg = tmp.at(10).toDouble(); 347 336 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(); 352 343 } 353 344 -
trunk/BNC/src/bnctabledlg.h
r4627 r4658 65 65 signals: 66 66 void newMountPoints(QStringList* mountPoints); 67 void newPoint(const QString& name, double latDeg, double lonDeg);68 67 69 68 private slots: … … 79 78 private: 80 79 void addUrl(const QUrl& url); 81 void showSourceTable();82 80 QComboBox* _casterHostComboBox; 83 81 QLineEdit* _casterPortLineEdit;
Note:
See TracChangeset
for help on using the changeset viewer.