- Timestamp:
- Sep 24, 2006, 3:22:52 PM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r177 r182 50 50 connect(_actQuit, SIGNAL(triggered()), SLOT(close())); 51 51 52 _actAddMountPoints = new QAction(tr(" &AddMountpoints"),this);52 _actAddMountPoints = new QAction(tr("Add &Mountpoints"),this); 53 53 connect(_actAddMountPoints, SIGNAL(triggered()), SLOT(slotAddMountPoints())); 54 54 … … 57 57 _actDeleteMountPoints->setEnabled(false); 58 58 59 _actGetData = new QAction(tr(" &Get Data"),this);59 _actGetData = new QAction(tr("Sta&rt"),this); 60 60 connect(_actGetData, SIGNAL(triggered()), SLOT(slotGetData())); 61 62 _actStop = new QAction(tr("Sto&p"),this); 63 connect(_actStop, SIGNAL(triggered()), SLOT(slotStop())); 64 _actStop->setEnabled(false); 61 65 62 66 // Create Menus … … 81 85 toolBar->addAction(_actDeleteMountPoints); 82 86 toolBar->addAction(_actGetData); 87 toolBar->addAction(_actStop); 83 88 84 89 // Canvas with Editable Fields … … 342 347 _actDeleteMountPoints->setEnabled(false); 343 348 _actGetData->setEnabled(false); 349 _actStop->setEnabled(true); 344 350 345 351 _bncCaster = new bncCaster(_outFileLineEdit->text(), … … 372 378 373 379 getThread->start(); 380 } 381 } 382 383 // Retrieve Data 384 //////////////////////////////////////////////////////////////////////////// 385 void bncWindow::slotStop() { 386 int iRet = QMessageBox::question(this, "Stop", "Stop retrieving data?", 387 QMessageBox::Yes, QMessageBox::No, 388 QMessageBox::NoButton); 389 if (iRet == QMessageBox::Yes) { 390 _bncCaster->terminate(); 391 _bncCaster->wait(1000); 392 delete _bncCaster; 393 _bncCaster = 0; 394 _actGetData->setEnabled(true); 395 _actStop->setEnabled(false); 374 396 } 375 397 } -
trunk/BNC/bncwindow.h
r143 r182 25 25 void slotAddMountPoints(); 26 26 void slotGetData(); 27 void slotStop(); 27 28 void slotNewMountPoints(QStringList* mountPoints); 28 29 void slotDeleteMountPoints(); … … 43 44 QAction* _actQuit; 44 45 QAction* _actGetData; 46 QAction* _actStop; 45 47 QAction* _actAddMountPoints; 46 48 QAction* _actDeleteMountPoints;
Note:
See TracChangeset
for help on using the changeset viewer.