- Timestamp:
- Feb 12, 2012, 1:07:29 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpostprocess.cpp
r3684 r3685 102 102 } 103 103 104 // Read Observations 105 // ----------------- 104 // Read/Process Observations 105 // ------------------------- 106 int nEpo = 0; 106 107 const t_rnxObsFile::t_epo* epo = 0; 107 108 while ( (epo = _rnxObsFile->nextEpoch()) != 0 ) { 109 ++nEpo; 108 110 for (int iObs = 0; iObs < epo->satObs.size(); iObs++) { 109 111 const t_rnxObsFile::t_satObs& satObs = epo->satObs[iObs]; … … 138 140 _pppClient->putNewObs(obs); 139 141 } 142 if (nEpo % 10 == 0) { 143 emit progress(nEpo); 144 } 140 145 } 141 142 // ///// beg test143 // int MAXI = 5;144 // for (int ii = 1; ii < MAXI; ii++) {145 // cout << "ii = " << ii << endl;146 // emit progress(float(ii)/float(MAXI));147 // sleep(1);148 // }149 // //// end test150 146 151 147 emit finished(); -
trunk/BNC/bncpostprocess.h
r3646 r3685 47 47 48 48 signals: 49 void progress( float);49 void progress(int); 50 50 void finished(); 51 51 void newEphGPS(gpsephemeris gpseph); -
trunk/BNC/bncwindow.cpp
r3641 r3685 120 120 _actPostProcessing = new QAction(tr("Start PP"),this); 121 121 connect(_actPostProcessing, SIGNAL(triggered()), SLOT(slotStartPostProcessing())); 122 123 _postProgressBar = new QProgressBar;124 _postProgressBar->setMinimum(0);125 _postProgressBar->setMaximum(100);126 _postProgressBar->setMinimumWidth(15*ww);127 _postProgressBar->setMaximumWidth(15*ww);128 122 129 123 _actStop = new QAction(tr("Sto&p"),this); … … 1816 1810 //////////////////////////////////////////////////////////////////////////// 1817 1811 void bncWindow::AddToolbar() { 1818 // Tool (Command) Bar1819 // ------------------1820 1812 QToolBar* toolBar = new QToolBar; 1821 1813 addToolBar(Qt::BottomToolBarArea, toolBar); … … 1826 1818 toolBar->addAction(_actStop); 1827 1819 toolBar->addAction(_actPostProcessing); 1828 _postProgressLabel = new QLabel(" Progress");1820 _postProgressLabel = new QLabel("0 Epochs"); 1829 1821 toolBar->addWidget(_postProgressLabel); 1830 toolBar->addWidget(_postProgressBar);1831 1822 enableWidget(false, _postProgressLabel); 1832 1823 toolBar->addWidget(new QLabel(" ")); … … 2249 2240 slotSaveOptions(); 2250 2241 2251 _postProgress Bar->reset();2242 _postProgressLabel->setText("0 Epochs"); 2252 2243 enableWidget(true, _postProgressLabel); 2253 2244 2254 2245 t_postProcessing* postProcessing = new t_postProcessing(this); 2255 2246 connect(postProcessing, SIGNAL(finished()), this, SLOT(slotFinishedPostProcessing())); 2256 connect(postProcessing, SIGNAL(progress( float)), this, SLOT(slotPostProgress(float)));2247 connect(postProcessing, SIGNAL(progress(int)), this, SLOT(slotPostProgress(int))); 2257 2248 2258 2249 postProcessing->start(); … … 2265 2256 "Post-Processing Thread Finished"); 2266 2257 enableWidget(false, _postProgressLabel); 2267 _postProgressBar->reset();2268 2258 _actPostProcessing->setEnabled(true); 2269 2259 } … … 2271 2261 // Progress Bar Change 2272 2262 //////////////////////////////////////////////////////////////////////////// 2273 void bncWindow::slotPostProgress( float progress) {2274 if (_postProgress Bar) {2275 _postProgress Bar->setValue(int(progress*100.0));2276 } 2277 } 2263 void bncWindow::slotPostProgress(int nEpo) { 2264 if (_postProgressLabel) { 2265 _postProgressLabel->setText(QString("%1 Epochs").arg(nEpo)); 2266 } 2267 } -
trunk/BNC/bncwindow.h
r3629 r3685 66 66 void slotMountPointsRead(QList<bncGetThread*>); 67 67 void slotBncTextChanged(); 68 void slotPostProgress( float);68 void slotPostProgress(int); 69 69 70 70 private slots: … … 162 162 qtFileChooser* _postNavFileChooser; 163 163 qtFileChooser* _postCorrFileChooser; 164 QProgressBar* _postProgressBar;165 164 QLabel* _postProgressLabel; 166 165 QLineEdit* _postOutLineEdit;
Note:
See TracChangeset
for help on using the changeset viewer.