Changeset 3736 in ntrip
- Timestamp:
- Mar 27, 2012, 6:47:44 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r3735 r3736 78 78 _bncFigureLate = new bncFigureLate(this); 79 79 _bncFigurePPP = new bncFigurePPP(this); 80 _postProcessingRunning = false; 80 _postProcessingRunningPPP = false; 81 _postProcessingRunningTeqc = false; 81 82 82 83 int ww = QFontMetrics(this->font()).width('w'); … … 607 608 _aogroup->addTab(uploadgroup,tr("Upload (clk)")); 608 609 _aogroup->addTab(uploadEphgroup,tr("Upload (eph)")); 610 611 connect(_aogroup, SIGNAL(currentChanged(int)), 612 this, SLOT(slotEnablePostProcessing())); 609 613 610 614 // Log Tab … … 2116 2120 enableWidget(enable9, _postCorrFileChooser); 2117 2121 enableWidget(enable9, _postOutLineEdit); 2118 _actPostProcessing->setEnabled(enable9);2119 2120 2122 enableWidget(!enable9, _pppMountLineEdit); 2123 2124 slotEnablePostProcessing(); 2121 2125 } 2122 2126 } … … 2301 2305 void bncWindow::slotStartPostProcessing() { 2302 2306 if (_aogroup->currentIndex() == _tabIndexPPP1 || 2303 _aogroup->currentIndex() == _tabIndexPPP2) {2307 _aogroup->currentIndex() == _tabIndexPPP2) { 2304 2308 startPostProcessingPPP(); 2305 2309 } … … 2313 2317 void bncWindow::startPostProcessingPPP() { 2314 2318 #ifdef USE_POSTPROCESSING 2315 _actPostProcessing->setEnabled(false); 2319 _postProcessingRunningPPP = true; 2320 slotEnablePostProcessing(); 2316 2321 _actPostProcessing->setText("0 Epochs"); 2317 2322 … … 2319 2324 2320 2325 t_postProcessing* postProcessing = new t_postProcessing(this); 2321 connect(postProcessing, SIGNAL(finished()), this, SLOT(slotFinishedPostProcessing ()));2326 connect(postProcessing, SIGNAL(finished()), this, SLOT(slotFinishedPostProcessingPPP())); 2322 2327 connect(postProcessing, SIGNAL(progress(int)), this, SLOT(slotPostProgress(int))); 2323 2328 … … 2331 2336 // Post-Processing PPP Finished 2332 2337 //////////////////////////////////////////////////////////////////////////// 2333 void bncWindow::slotFinishedPostProcessing() { 2338 void bncWindow::slotFinishedPostProcessingPPP() { 2339 _postProcessingRunningPPP = false; 2334 2340 QMessageBox::information(this, "Information", 2335 2341 "Post-Processing Thread Finished"); 2336 _actPostProcessing->setText("Start Post-Processing"); 2337 _actPostProcessing->setEnabled(true); 2342 slotEnablePostProcessing(); 2338 2343 } 2339 2344 … … 2349 2354 //////////////////////////////////////////////////////////////////////////// 2350 2355 void bncWindow::startPostProcessingTeqc() { 2356 _postProcessingRunningTeqc = false; // TODO 2351 2357 QMessageBox::information(this, "Information", 2352 2358 "Teqc-Processing Not Yet Implemented"); 2359 slotEnablePostProcessing(); 2353 2360 } 2354 2361 2355 2362 // Post-Processing Teqc Finished 2356 2363 //////////////////////////////////////////////////////////////////////////// 2357 void bncWindow::slotFinishedTeqcProcessing() { 2364 void bncWindow::slotFinishedPostProcessingTeqc() { 2365 _postProcessingRunningTeqc = false; 2358 2366 QMessageBox::information(this, "Information", 2359 2367 "Teqc-Processing Thread Finished"); 2360 } 2368 slotEnablePostProcessing(); 2369 } 2370 2371 // Enable/Disable Post-Processing Action 2372 //////////////////////////////////////////////////////////////////////////// 2373 void bncWindow::slotEnablePostProcessing() { 2374 if (_actPostProcessing) { 2375 if (_postProcessingRunningPPP || _postProcessingRunningTeqc) { 2376 _actPostProcessing->setEnabled(false); 2377 } 2378 else { 2379 _actPostProcessing->setText("Start PPP/Teqc"); 2380 if (_aogroup->currentIndex() == _tabIndexPPP1 || 2381 _aogroup->currentIndex() == _tabIndexPPP2) { 2382 bool enable = _pppSPPComboBox->currentText() == "RNX"; 2383 _actPostProcessing->setEnabled(enable); 2384 } 2385 else if (_aogroup->currentIndex() == _tabIndexTeqc) { 2386 _actPostProcessing->setEnabled(true); 2387 } 2388 else { 2389 _actPostProcessing->setEnabled(false); 2390 } 2391 } 2392 } 2393 } 2394 -
trunk/BNC/bncwindow.h
r3735 r3736 78 78 void slotGetData(); 79 79 void slotStartPostProcessing(); 80 void slotFinishedPostProcessing ();81 void slotFinished TeqcProcessing();80 void slotFinishedPostProcessingPPP(); 81 void slotFinishedPostProcessingTeqc(); 82 82 void slotStop(); 83 83 void slotNewMountPoints(QStringList* mountPoints); … … 91 91 void slotDelUploadRow(); 92 92 void slotSetUploadTrafo(); 93 void slotEnablePostProcessing(); 93 94 94 95 protected: … … 102 103 void startPostProcessingPPP(); 103 104 void startPostProcessingTeqc(); 104 void enablePostProcessing();105 105 106 106 QMenu* _menuHlp; … … 247 247 int _tabIndexPPP2; 248 248 int _tabIndexTeqc; 249 bool _postProcessingRunning; 249 bool _postProcessingRunningPPP; 250 bool _postProcessingRunningTeqc; 250 251 }; 251 252 #endif
Note:
See TracChangeset
for help on using the changeset viewer.