Changeset 3685 in ntrip for trunk/BNC/bncwindow.cpp
- Timestamp:
- Feb 12, 2012, 1:07:29 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note:
See TracChangeset
for help on using the changeset viewer.