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


Ignore:
Timestamp:
Jan 22, 2012, 6:16:57 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r3625 r3626  
    11441144    slotGetData();
    11451145  }
    1146 
    1147   // Post-Processing Watcher
    1148   // -----------------------
    1149   _postWatcher = 0;
    11501146}
    11511147
     
    22502246void bncWindow::slotStartPostProcessing() {
    22512247
     2248  _actPostProcessing->setEnabled(false);
     2249
    22522250  slotSaveOptions();
    22532251
    2254   _actPostProcessing->setEnabled(false);
    22552252  _postProgressBar->reset();
    22562253  _postProgressBar->show();
    22572254  enableWidget(true, _postProgressLabel);
    22582255
    2259   t_postInput input;
    2260   postProcessingInit(input);
    2261 
    2262   _postWatcher = new QFutureWatcher<t_irc>;
    2263   connect(_postWatcher, SIGNAL(finished()), this, SLOT(slotFinishedPostProcessing()));
    2264 
    2265   _postFuture = QtConcurrent::run(postProcessingRun, input);
    2266   _postWatcher->setFuture(_postFuture);
     2256  t_postProcessing* postProcessing = new t_postProcessing(this);
     2257  connect(postProcessing, SLOT(finished()), this, SIGNAL(slotFinishedPostProcessing));
     2258
     2259  postProcessing->start();
    22672260}
    22682261
     
    22712264void bncWindow::slotFinishedPostProcessing() {
    22722265  cout << "slotFinishedPostProcessing" << endl;
    2273   delete _postWatcher;
    2274   _postWatcher = 0;
     2266
    22752267  enableWidget(false, _postProgressLabel);
    22762268  _postProgressBar->hide();
    22772269  _actPostProcessing->setEnabled(true);
    22782270}
     2271
     2272// Progress Bar Change
     2273////////////////////////////////////////////////////////////////////////////
     2274void bncWindow::postProgress(float progress) {
     2275  if (_postProgressBar) {
     2276    _postProgressBar->setValue(int(progress*100.0));
     2277  }
     2278}
Note: See TracChangeset for help on using the changeset viewer.