Changeset 5971 in ntrip for trunk/BNC/src/bncwindow.cpp
- Timestamp:
- Aug 17, 2014, 12:50:34 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncwindow.cpp
r5968 r5971 94 94 _bncFigurePPP, SLOT(slotNewPosition(QByteArray, bncTime, QVector<double>))); 95 95 96 connect(BNC_CORE, SIGNAL(progressRnxPPP(int)), this, SLOT(slotPostProgress(int))); 97 connect(BNC_CORE, SIGNAL(finishedRnxPPP()), this, SLOT(slotFinishedRnxPPP())); 98 99 _runningRealTime = false; 100 _runningPostProcessingReqc = false; 101 _reqcActionComboBox = 0; // necessary for enableStartStop() 96 connect(BNC_CORE, SIGNAL(progressRnxPPP(int)), this, SLOT(slotPostProcessingProgress(int))); 97 connect(BNC_CORE, SIGNAL(finishedRnxPPP()), this, SLOT(slotPostProcessingFinished())); 98 99 _runningRealTime = false; 100 _runningPPP = false; 101 _runningEdit = false; 102 _runningQC = false; 103 _reqcActionComboBox = 0; // necessary for enableStartStop() 102 104 103 105 _mapWin = 0; … … 1672 1674 saveOptions(); 1673 1675 if ( _pppWidgets._dataSource->currentText() == "RINEX Files") { 1676 _runningPPP = true; 1677 enableStartStop(); 1674 1678 BNC_CORE->startPPP(); 1675 1679 } 1676 1680 else if ( !_reqcActionComboBox->currentText().isEmpty() ) { 1677 startPostProcessingReqc(); 1681 if (_reqcActionComboBox->currentText() == "Analyze") { 1682 _runningQC = true; 1683 t_reqcAnalyze* reqcAnalyze = new t_reqcAnalyze(this); 1684 connect(reqcAnalyze, SIGNAL(finished()), this, SLOT(slotPostProcessingFinished())); 1685 reqcAnalyze->start(); 1686 } 1687 else { 1688 _runningEdit = true; 1689 t_reqcEdit* reqcEdit = new t_reqcEdit(this); 1690 connect(reqcEdit, SIGNAL(finished()), this, SLOT(slotPostProcessingFinished())); 1691 reqcEdit->start(); 1692 } 1693 enableStartStop(); 1678 1694 } 1679 1695 else { … … 1749 1765 //////////////////////////////////////////////////////////////////////////// 1750 1766 void bncWindow::slotStop() { 1751 int iRet = QMessageBox::question(this, "Stop", "Stop retrieving data?",1767 int iRet = QMessageBox::question(this, "Stop", "Stop retrieving/processing data?", 1752 1768 QMessageBox::Yes, QMessageBox::No, 1753 1769 QMessageBox::NoButton); … … 1758 1774 delete _casterEph; _casterEph = 0; 1759 1775 _runningRealTime = false; 1776 _runningPPP = false; 1760 1777 enableStartStop(); 1761 1778 } … … 2336 2353 // Progress Bar Change 2337 2354 //////////////////////////////////////////////////////////////////////////// 2338 void bncWindow::slotPostPro gress(int nEpo) {2339 if (_actStart) {2340 _actStart->setText(QString("%1 Epochs").arg(nEpo)); 2341 } 2342 } 2343 2344 // Start Post-Processing Reqc 2345 //////////////////////////////////////////////////////////////////////////// 2346 void bncWindow::startPostProcessingReqc() { 2347 _running PostProcessingReqc = true;2355 void bncWindow::slotPostProcessingProgress(int nEpo) { 2356 _actStart->setText(QString("%1 Epochs").arg(nEpo)); 2357 } 2358 2359 // Post-Processing Reqc Finished 2360 //////////////////////////////////////////////////////////////////////////// 2361 void bncWindow::slotPostProcessingFinished() { 2362 _runningPPP = false; 2363 _runningEdit = false; 2364 _runningQC = false; 2348 2365 enableStartStop(); 2349 if (_reqcActionComboBox->currentText() == "Analyze") {2350 t_reqcAnalyze* reqcAnalyze = new t_reqcAnalyze(this);2351 connect(reqcAnalyze, SIGNAL(finished()),2352 this, SLOT(slotFinishedPostProcessingReqc()));2353 reqcAnalyze->start();2354 }2355 else {2356 t_reqcEdit* reqcEdit = new t_reqcEdit(this);2357 connect(reqcEdit, SIGNAL(finished()),2358 this, SLOT(slotFinishedPostProcessingReqc()));2359 reqcEdit->start();2360 }2361 }2362 2363 // Post-Processing Reqc Finished2364 ////////////////////////////////////////////////////////////////////////////2365 void bncWindow::slotFinishedPostProcessingReqc() {2366 _runningPostProcessingReqc = false;2367 if (_reqcActionComboBox->currentText() != "Analyze") {2368 QMessageBox::information(this, "Information",2369 "RINEX Processing Thread Finished");2370 }2371 enableStartStop();2372 }2373 2374 //2375 ////////////////////////////////////////////////////////////////////////////2376 void bncWindow::slotFinishedRnxPPP() {2377 if (_actStart) {2378 _actStart->setText(tr("Sta&rt"));2379 }2380 2366 } 2381 2367 … … 2392 2378 //////////////////////////////////////////////////////////////////////////// 2393 2379 void bncWindow::enableStartStop() { 2394 2395 if ( _reqcActionComboBox && !_reqcActionComboBox->currentText().isEmpty() ) {2396 if (_runningP ostProcessingReqc) {2397 _actSt art->setEnabled(false);2398 } 2399 else {2400 _actStart->setEnabled(true);2401 }2380 if ( running() ) { 2381 _actStart->setEnabled(false); 2382 if (_runningPPP) { 2383 _actStop->setEnabled(true); 2384 } 2385 } 2386 else { 2387 _actStart->setEnabled(true); 2402 2388 _actStop->setEnabled(false); 2403 }2404 else {2405 if (_runningRealTime) {2406 _actStart->setEnabled(false);2407 _actStop->setEnabled(true);2408 }2409 else {2410 _actStop->setEnabled(false);2411 if (_mountPointsTable->rowCount() == 0) {2412 _actStart->setEnabled(false);2413 }2414 else {2415 _actStart->setEnabled(true);2416 }2417 }2418 2389 } 2419 2390 }
Note:
See TracChangeset
for help on using the changeset viewer.