Changeset 3735 in ntrip for trunk/BNC/bncwindow.cpp


Ignore:
Timestamp:
Mar 27, 2012, 6:27:15 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r3733 r3735  
    7878  _bncFigureLate = new bncFigureLate(this);
    7979  _bncFigurePPP = new bncFigurePPP(this);
     80  _postProcessingRunning = false;
    8081
    8182  int ww = QFontMetrics(this->font()).width('w');
     
    120121  connect(_actGetData, SIGNAL(triggered()), SLOT(slotGetData()));
    121122
    122   _actPostProcessing = new QAction(tr("Start PPP"),this);
     123  _actPostProcessing = new QAction(tr("Start PPP/Teqc"),this);
    123124  connect(_actPostProcessing, SIGNAL(triggered()), SLOT(slotStartPostProcessing()));
    124 
    125   _actTeqcProcessing = new QAction(tr("Start Teqc"),this);
    126   connect(_actTeqcProcessing, SIGNAL(triggered()), SLOT(slotStartTeqcProcessing()));
    127125
    128126  _actStop = new QAction(tr("Sto&p"),this);
     
    601599  _aogroup->addTab(agroup,tr("Outages"));
    602600  _aogroup->addTab(rgroup,tr("Miscellaneous"));
    603   _aogroup->addTab(pppgroup,tr("PPP (1)"));
    604   _aogroup->addTab(ppp2group,tr("PPP (2)"));
    605   _aogroup->addTab(teqcgroup,tr("teqc"));
     601  _aogroup->addTab(pppgroup,tr("PPP (1)"));  _tabIndexPPP1 = _aogroup->count() - 1;
     602  _aogroup->addTab(ppp2group,tr("PPP (2)")); _tabIndexPPP2 = _aogroup->count() - 1;
     603  _aogroup->addTab(teqcgroup,tr("teqc"));    _tabIndexTeqc = _aogroup->count() - 1;
    606604#ifdef USE_COMBINATION
    607605  _aogroup->addTab(cmbgroup,tr("Combination"));
     
    18861884  toolBar->addAction(_actStop);
    18871885  toolBar->addAction(_actPostProcessing);
    1888   toolBar->addAction(_actTeqcProcessing);
    18891886  toolBar->addWidget(new QLabel("                                           "));
    18901887  toolBar->addAction(_actwhatsthis);
     
    23002297}
    23012298
    2302 // Start Post-Processing
     2299// Start Post-Processing PPP or Teqc (slot)
    23032300////////////////////////////////////////////////////////////////////////////
    23042301void bncWindow::slotStartPostProcessing() {
     2302  if      (_aogroup->currentIndex() == _tabIndexPPP1 ||
     2303      _aogroup->currentIndex() == _tabIndexPPP2) {
     2304    startPostProcessingPPP();
     2305  }
     2306  else if (_aogroup->currentIndex() == _tabIndexTeqc) {
     2307    startPostProcessingTeqc();
     2308  }
     2309}
     2310
     2311// Start Post-Processing PPP
     2312////////////////////////////////////////////////////////////////////////////
     2313void bncWindow::startPostProcessingPPP() {
    23052314#ifdef USE_POSTPROCESSING
    23062315  _actPostProcessing->setEnabled(false);
     
    23202329}
    23212330
    2322 // Post-Processing Finished
     2331// Post-Processing PPP Finished
    23232332////////////////////////////////////////////////////////////////////////////
    23242333void bncWindow::slotFinishedPostProcessing() {
     
    23372346}
    23382347
    2339 // Start Teqc
    2340 ////////////////////////////////////////////////////////////////////////////
    2341 void bncWindow::slotStartTeqcProcessing() {
     2348// Start Post-Processing Teqc
     2349////////////////////////////////////////////////////////////////////////////
     2350void bncWindow::startPostProcessingTeqc() {
    23422351  QMessageBox::information(this, "Information",
    23432352                           "Teqc-Processing Not Yet Implemented");
    23442353}
    23452354
    2346 // Teqc-Processing Finished
     2355// Post-Processing Teqc Finished
    23472356////////////////////////////////////////////////////////////////////////////
    23482357void bncWindow::slotFinishedTeqcProcessing() {
    23492358  QMessageBox::information(this, "Information",
    23502359                           "Teqc-Processing Thread Finished");
    2351   _actTeqcProcessing->setText("Start Teqc-Processing");
    2352   _actTeqcProcessing->setEnabled(true);
    2353 }
     2360}
Note: See TracChangeset for help on using the changeset viewer.