- Timestamp:
- Apr 5, 2012, 11:52:26 AM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r3781 r3782 79 79 _bncFigureLate = new bncFigureLate(this); 80 80 _bncFigurePPP = new bncFigurePPP(this); 81 _postProcessingRunningPPP = false; 82 _postProcessingRunningTeqc = false; 81 _runningRealTime = false; 82 _runningPostProcessingPPP = false; 83 _runningPostProcessingTeqc = false; 83 84 84 85 int ww = QFontMetrics(this->font()).width('w'); … … 120 121 _actDeleteMountPoints->setEnabled(false); 121 122 122 _actGetData = new QAction(tr("Sta&rt"),this); 123 connect(_actGetData, SIGNAL(triggered()), SLOT(slotGetData())); 124 125 _actPostProcessing = new QAction(tr("Start PPP/Teqc"),this); 126 connect(_actPostProcessing, SIGNAL(triggered()), SLOT(slotStartPostProcessing())); 123 _actStart = new QAction(tr("Sta&rt"),this); 124 connect(_actStart, SIGNAL(triggered()), SLOT(slotStart())); 127 125 128 126 _actStop = new QAction(tr("Sto&p"),this); … … 609 607 _aogroup->addTab(uploadgroup,tr("Upload (clk)")); 610 608 _aogroup->addTab(uploadEphgroup,tr("Upload (eph)")); 611 612 connect(_aogroup, SIGNAL(currentChanged(int)),613 this, SLOT(slotEnablePostProcessing()));614 609 615 610 // Log Tab … … 1213 1208 // ---------- 1214 1209 if ( Qt::CheckState(settings.value("autoStart").toInt()) == Qt::Checked) { 1215 slot GetData();1210 slotStart(); 1216 1211 } 1217 1212 } … … 1236 1231 QListIterator<QString> it(settings.value("mountPoints").toStringList()); 1237 1232 if (!it.hasNext()) { 1238 _act GetData->setEnabled(false);1233 _actStart->setEnabled(false); 1239 1234 } 1240 1235 int iRow = 0; … … 1390 1385 1391 1386 if (_mountPointsTable->rowCount() == 0) { 1392 _act GetData->setEnabled(false);1387 _actStart->setEnabled(false); 1393 1388 } 1394 1389 } … … 1457 1452 _mountPointsTable->sortItems(1); 1458 1453 if (mountPoints->count() > 0 && !_actStop->isEnabled()) { 1459 _act GetData->setEnabled(true);1454 _actStart->setEnabled(true); 1460 1455 } 1461 1456 delete mountPoints; … … 1657 1652 delete _caster; _caster = 0; 1658 1653 delete _casterEph; _casterEph = 0; 1659 _act GetData->setEnabled(true);1654 _actStart->setEnabled(true); 1660 1655 _actStop->setEnabled(false); 1661 1656 } … … 1663 1658 // Retrieve Data 1664 1659 //////////////////////////////////////////////////////////////////////////// 1665 void bncWindow::slot GetData() {1660 void bncWindow::slotStart() { 1666 1661 slotSaveOptions(); 1667 1662 … … 1669 1664 1670 1665 _actDeleteMountPoints->setEnabled(false); 1671 _act GetData->setEnabled(false);1666 _actStart->setEnabled(false); 1672 1667 _actStop->setEnabled(true); 1673 1668 … … 1733 1728 delete _caster; _caster = 0; 1734 1729 delete _casterEph; _casterEph = 0; 1735 _act GetData->setEnabled(true);1730 _actStart->setEnabled(true); 1736 1731 _actStop->setEnabled(false); 1737 1732 } … … 1897 1892 toolBar->addAction(_actAddMountPoints); 1898 1893 toolBar->addAction(_actDeleteMountPoints); 1899 toolBar->addAction(_act GetData);1894 toolBar->addAction(_actStart); 1900 1895 toolBar->addAction(_actStop); 1901 toolBar->addAction(_actPostProcessing);1902 1896 toolBar->addWidget(new QLabel(" ")); 1903 1897 toolBar->addAction(_actwhatsthis); … … 2140 2134 enableWidget(!enable10, _teqcNavFileChooser); 2141 2135 enableWidget(!enable10, _teqcOutLineEdit); 2142 }2143 2144 slotEnablePostProcessing();2145 }2146 2147 // Enable/Disable Post-Processing Action2148 ////////////////////////////////////////////////////////////////////////////2149 void bncWindow::slotEnablePostProcessing() {2150 if (_actPostProcessing) {2151 if (_postProcessingRunningPPP || _postProcessingRunningTeqc) {2152 _actPostProcessing->setEnabled(false);2153 }2154 else {2155 if (_aogroup->currentIndex() == _tabIndexPPP1 ||2156 _aogroup->currentIndex() == _tabIndexPPP2) {2157 _actPostProcessing->setText("Start PPP");2158 bool enable = _pppSPPComboBox->currentText() == "Post-Processing";2159 _actPostProcessing->setEnabled(enable);2160 }2161 else if (_aogroup->currentIndex() == _tabIndexTeqc) {2162 _actPostProcessing->setText("Start Teqc");2163 _actPostProcessing->setEnabled(true);2164 }2165 else {2166 _actPostProcessing->setText("Start PPP/Teqc");2167 _actPostProcessing->setEnabled(false);2168 }2169 }2170 2136 } 2171 2137 } … … 2346 2312 } 2347 2313 2348 // Start Post-Processing PPP or Teqc (slot)2349 ////////////////////////////////////////////////////////////////////////////2350 void bncWindow::slotStartPostProcessing() {2351 if (_aogroup->currentIndex() == _tabIndexPPP1 ||2352 _aogroup->currentIndex() == _tabIndexPPP2) {2353 startPostProcessingPPP();2354 }2355 else if (_aogroup->currentIndex() == _tabIndexTeqc) {2356 startPostProcessingTeqc();2357 }2358 }2359 2360 2314 // Start Post-Processing PPP 2361 2315 //////////////////////////////////////////////////////////////////////////// 2362 2316 void bncWindow::startPostProcessingPPP() { 2363 2317 #ifdef USE_POSTPROCESSING 2364 _postProcessingRunningPPP = true; 2365 slotEnablePostProcessing(); 2366 _actPostProcessing->setText("0 Epochs"); 2318 _runningPostProcessingPPP = true; 2319 _actStart->setText("0 Epochs"); 2367 2320 2368 2321 slotSaveOptions(); … … 2382 2335 //////////////////////////////////////////////////////////////////////////// 2383 2336 void bncWindow::slotFinishedPostProcessingPPP() { 2384 _ postProcessingRunningPPP = false;2337 _runningPostProcessingPPP = false; 2385 2338 QMessageBox::information(this, "Information", 2386 2339 "Post-Processing Thread Finished"); 2387 slotEnablePostProcessing();2388 2340 } 2389 2341 … … 2391 2343 //////////////////////////////////////////////////////////////////////////// 2392 2344 void bncWindow::slotPostProgress(int nEpo) { 2393 if (_act PostProcessing) {2394 _act PostProcessing->setText(QString("%1 Epochs").arg(nEpo));2345 if (_actStart) { 2346 _actStart->setText(QString("%1 Epochs").arg(nEpo)); 2395 2347 } 2396 2348 } … … 2399 2351 //////////////////////////////////////////////////////////////////////////// 2400 2352 void bncWindow::startPostProcessingTeqc() { 2401 _ postProcessingRunningTeqc = false; // TODO2353 _runningPostProcessingTeqc = false; // TODO 2402 2354 QMessageBox::information(this, "Information", 2403 2355 "Teqc-Processing Not Yet Implemented"); 2404 slotEnablePostProcessing();2405 2356 } 2406 2357 … … 2408 2359 //////////////////////////////////////////////////////////////////////////// 2409 2360 void bncWindow::slotFinishedPostProcessingTeqc() { 2410 _ postProcessingRunningTeqc = false;2361 _runningPostProcessingTeqc = false; 2411 2362 QMessageBox::information(this, "Information", 2412 2363 "Teqc-Processing Thread Finished"); 2413 slotEnablePostProcessing();2414 2364 } 2415 2365 -
trunk/BNC/bncwindow.h
r3740 r3782 76 76 void slotSaveOptions(); 77 77 void slotAddMountPoints(); 78 void slotGetData(); 79 void slotStartPostProcessing(); 78 void slotStart(); 80 79 void slotFinishedPostProcessingPPP(); 81 80 void slotFinishedPostProcessingTeqc(); … … 91 90 void slotDelUploadRow(); 92 91 void slotSetUploadTrafo(); 93 void slotEnablePostProcessing();94 92 void slotTeqcEditOption(); 95 93 … … 102 100 void populateUploadTable(); 103 101 void enableWidget(bool enable, QWidget* widget); 102 void startRealTime(); 104 103 void startPostProcessingPPP(); 105 104 void startPostProcessingTeqc(); … … 114 113 QAction* _actSaveOpt; 115 114 QAction* _actQuit; 116 QAction* _actGetData; 117 QAction* _actPostProcessing; 115 QAction* _actStart; 118 116 QAction* _actStop; 119 117 QAction* _actAddMountPoints; … … 248 246 int _tabIndexPPP2; 249 247 int _tabIndexTeqc; 250 bool _postProcessingRunningPPP; 251 bool _postProcessingRunningTeqc; 248 bool _realTimeRunning; 249 bool _runningRealTime; 250 bool _runningPostProcessingPPP; 251 bool _runningPostProcessingTeqc; 252 252 }; 253 253 #endif -
trunk/BNC/rinex/bncpostprocess.cpp
r3763 r3782 158 158 obs.GPSWeek = epo->tt.gpsw(); 159 159 obs.GPSWeeks = epo->tt.gpssec(); 160 //// TODO: check RINEX Version 3 types 160 161 for (int iType = 0; iType < _rnxObsFile->nTypes(obs.satSys); iType++) { 161 162 QByteArray type = _rnxObsFile->obsType(obs.satSys,iType).toAscii();
Note:
See TracChangeset
for help on using the changeset viewer.