Changeset 3625 in ntrip for trunk/BNC/bncwindow.cpp
- Timestamp:
- Jan 22, 2012, 5:35:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r3624 r3625 119 119 120 120 _actPostProcessing = new QAction(tr("Start PP"),this); 121 connect(_actPostProcessing, SIGNAL(triggered()), SLOT(slot PostProcessing()));121 connect(_actPostProcessing, SIGNAL(triggered()), SLOT(slotStartPostProcessing())); 122 122 123 123 _postProgressBar = new QProgressBar; … … 1144 1144 slotGetData(); 1145 1145 } 1146 1147 // Post-Processing Watcher 1148 // ----------------------- 1149 _postWatcher = 0; 1146 1150 } 1147 1151 … … 2242 2246 } 2243 2247 2244 // Post-Processing 2245 //////////////////////////////////////////////////////////////////////////// 2246 void bncWindow::slotPostProcessing() { 2248 // Start Post-Processing 2249 //////////////////////////////////////////////////////////////////////////// 2250 void bncWindow::slotStartPostProcessing() { 2251 2252 slotSaveOptions(); 2253 2247 2254 _actPostProcessing->setEnabled(false); 2248 slotSaveOptions();2249 2255 _postProgressBar->reset(); 2250 2256 _postProgressBar->show(); 2251 2257 enableWidget(true, _postProgressLabel); 2252 2258 2253 bncSettings settings;2254 2255 2259 t_postInput input; 2256 input.obsFileName = settings.value("postObsFile").toString(); 2257 input.navFileName = settings.value("postNavFile").toString(); 2258 input.corrFileName = settings.value("postcorrFile").toString(); 2259 2260 QFuture<void> future = QtConcurrent::run(postProcessing, input); 2261 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); 2267 } 2268 2269 // Post-Processing Finished 2270 //////////////////////////////////////////////////////////////////////////// 2271 void bncWindow::slotFinishedPostProcessing() { 2272 cout << "slotFinishedPostProcessing" << endl; 2273 delete _postWatcher; 2274 _postWatcher = 0; 2262 2275 enableWidget(false, _postProgressLabel); 2263 2276 _postProgressBar->hide();
Note:
See TracChangeset
for help on using the changeset viewer.