bug fix: time interval disabled when angular conversion disabled.solved

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@81 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
l_maliakal_d
2012-10-01 09:36:25 +00:00
parent 87f79a9327
commit 887303c820
3 changed files with 38 additions and 33 deletions

View File

@ -509,7 +509,7 @@ void qTabPlot::EnableScanBox(){
bool checkedBefore = boxScan->isChecked();//||(!boxScan->isEnabled()));
int ang;
//none of these scan plotting options make sense if positions>0
//none of these scan plotting options make sense if positions exists
bool positionsExist = myDet->getAngularConversion(ang);//myDet->getPositions();
//only now enable/disable
@ -551,7 +551,7 @@ void qTabPlot::EnableScanBox(){
if((positionsExist)&&(chkSuperimpose->isChecked())) chkSuperimpose->setChecked(false);
chkSuperimpose->setEnabled(!positionsExist);
//box frequency should be enabled cuz its a normal 1d plot
boxFrequency->setEnabled(positionsExist);
//boxFrequency->setEnabled(positionsExist);
myPlot->EnableAnglePlot(positionsExist);
@ -688,8 +688,8 @@ void qTabPlot::Refresh(){
#endif
if(!myPlot->isRunning()){
connect(boxScan, SIGNAL(toggled(bool)), this, SLOT(EnableScanBox()));
SetFrequency();
EnableScanBox();
SetFrequency();
}else{
disconnect(boxScan, SIGNAL(toggled(bool)), this, SLOT(EnableScanBox()));
boxScan->setEnabled(false);