- Timestamp:
- Sep 25, 2006, 7:58:17 PM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnctabledlg.cpp
r195 r196 152 152 void bncTableDlg::slotGetTable() { 153 153 154 QStringList allLines;154 _allLines.clear(); 155 155 156 156 if ( getFullTable(_casterHostLineEdit->text(), 157 157 _casterPortLineEdit->text().toInt(), 158 allLines) != success ) {158 _allLines) != success ) { 159 159 QMessageBox::warning(0, "BNC", "Cannot retrieve table of data"); 160 160 return; … … 162 162 163 163 QStringList lines; 164 QStringListIterator it( allLines);164 QStringListIterator it(_allLines); 165 165 while (it.hasNext()) { 166 166 QString line = it.next(); … … 245 245 } 246 246 247 // 247 // Create RINEX skeleton header 248 248 //////////////////////////////////////////////////////////////////////////// 249 249 void bncTableDlg::slotSkl() { 250 QStringList fullTable; 251 bncTableDlg::getFullTable("www.euref-ip.net", 80, fullTable); 252 253 cout << fullTable.join("").toAscii().data() << endl; 254 255 } 250 251 int nRows = _table->rowCount(); 252 for (int iRow = 0; iRow < nRows; iRow++) { 253 if (_table->isItemSelected(_table->item(iRow,1))) { 254 QString staID = _table->item(iRow,0)->text(); 255 QString net = _table->item(iRow,6)->text(); 256 257 cout << (staID + " " + net).toAscii().data() << endl; 258 259 QString ftpDir; 260 QStringListIterator it(_allLines); 261 while (it.hasNext()) { 262 QString line = it.next(); 263 if (line.indexOf("NET") == 0) { 264 QStringList tags = line.split(';'); 265 if (tags.at(1) == net) { 266 ftpDir = tags.at(6); 267 break; 268 } 269 } 270 } 271 272 cout << ftpDir.toAscii().data() << endl; 273 274 } 275 } 276 277 } -
trunk/BNC/bnctabledlg.h
r195 r196 38 38 39 39 QTableWidget* _table; 40 QStringList _allLines; 40 41 }; 41 42
Note:
See TracChangeset
for help on using the changeset viewer.