Changeset 3625 in ntrip
- Timestamp:
- Jan 22, 2012, 5:35:15 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpostprocess.cpp
r3615 r3625 41 41 #include <iostream> 42 42 #include "bncpostprocess.h" 43 #include "bncsettings.h" 43 44 44 45 using namespace std; … … 46 47 // 47 48 //////////////////////////////////////////////////////////////////////////// 48 t_irc postProcessing(const t_postInput& input) { 49 t_irc postProcessingInit(t_postInput& input) { 50 bncSettings settings; 51 input.obsFileName = settings.value("postObsFile").toString(); 52 input.navFileName = settings.value("postNavFile").toString(); 53 input.corrFileName = settings.value("postcorrFile").toString(); 54 55 return success; 56 } 57 58 // 59 //////////////////////////////////////////////////////////////////////////// 60 t_irc postProcessingRun(const t_postInput& input) { 49 61 50 62 cout << "obsFile: " << input.obsFileName.toAscii().data() << endl; -
trunk/BNC/bncpostprocess.h
r3615 r3625 36 36 }; 37 37 38 t_irc postProcessing(const t_postInput& input); 38 t_irc postProcessingInit(t_postInput& input); 39 t_irc postProcessingRun(const t_postInput& input); 39 40 40 41 #endif -
trunk/BNC/bncwindow.cpp
r3624 r3625 119 119 120 120 _actPostProcessing = new QAction(tr("Start PP"),this); 121 connect(_actPostProcessing, SIGNAL(triggered()), SLOT(slotPostProcessing())); 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(); -
trunk/BNC/bncwindow.h
r3620 r3625 76 76 void slotAddMountPoints(); 77 77 void slotGetData(); 78 void slotPostProcessing(); 78 void slotStartPostProcessing(); 79 void slotFinishedPostProcessing(); 79 80 void slotStop(); 80 81 void slotNewMountPoints(QStringList* mountPoints); … … 163 164 QLabel* _postProgressLabel; 164 165 QLineEdit* _postOutLineEdit; 166 QFutureWatcher<t_irc>* _postWatcher; 167 QFuture<t_irc> _postFuture; 165 168 166 169 QCheckBox* _rnxV3CheckBox;
Note:
See TracChangeset
for help on using the changeset viewer.