mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-19 00:07:13 +02:00
bug fix: run index, plots only new data, lockimage for clone
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@83 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
@ -310,7 +310,12 @@ void qTabMeasurement::startStopAcquisition(){
|
||||
emit StopSignal();
|
||||
myDet->stopAcquisition();
|
||||
progressTimer->stop();
|
||||
spinIndex->setValue(myPlot->GetFileIndex());
|
||||
//spin index
|
||||
disconnect(spinIndex, SIGNAL(valueChanged(int)), this, SLOT(setRunIndex(int)));
|
||||
spinIndex->setValue(myDet->getFileIndex());
|
||||
lblProgressIndex->setText(QString::number(spinIndex->value()));
|
||||
connect(spinIndex, SIGNAL(valueChanged(int)), this, SLOT(setRunIndex(int)));
|
||||
|
||||
btnStartStop->setText("Start");
|
||||
btnStartStop->setIcon(*iconStart);
|
||||
btnStartStop->setChecked(false);
|
||||
@ -330,8 +335,14 @@ void qTabMeasurement::UpdateFinished(){
|
||||
btnStartStop->setChecked(false);
|
||||
Enable(1);
|
||||
connect(btnStartStop,SIGNAL(clicked()),this,SLOT(startStopAcquisition()));
|
||||
|
||||
UpdateProgress();
|
||||
spinIndex->setValue(myPlot->GetFileIndex());
|
||||
//spin index
|
||||
disconnect(spinIndex, SIGNAL(valueChanged(int)), this, SLOT(setRunIndex(int)));
|
||||
spinIndex->setValue(myDet->getFileIndex());
|
||||
lblProgressIndex->setText(QString::number(spinIndex->value()));
|
||||
connect(spinIndex, SIGNAL(valueChanged(int)), this, SLOT(setRunIndex(int)));
|
||||
|
||||
progressTimer->stop();
|
||||
}
|
||||
}
|
||||
@ -352,7 +363,7 @@ void qTabMeasurement::SetCurrentMeasurement(int val){
|
||||
|
||||
void qTabMeasurement::UpdateProgress(){
|
||||
progressBar->setValue((int)myPlot->GetProgress());
|
||||
lblProgressIndex->setText(QString::number(myPlot->GetFileIndex()));
|
||||
lblProgressIndex->setText(QString::number(myPlot->GetFileIndex()+1));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user