mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-14 05:47:14 +02:00
check error message in between implemented in gui
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@159 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
@ -64,6 +64,7 @@ void qTabSettings::SetupWidgetWindow(){
|
|||||||
default: comboDynamicRange->setCurrentIndex(0); break;
|
default: comboDynamicRange->setCurrentIndex(0); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qDefs::checkErrorMessage(myDet);
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
@ -71,6 +72,7 @@ void qTabSettings::SetupWidgetWindow(){
|
|||||||
void qTabSettings::SetupDetectorSettings(){
|
void qTabSettings::SetupDetectorSettings(){
|
||||||
// Get detector settings from detector
|
// Get detector settings from detector
|
||||||
slsDetectorDefs::detectorSettings sett = myDet->getSettings();
|
slsDetectorDefs::detectorSettings sett = myDet->getSettings();
|
||||||
|
qDefs::checkErrorMessage(myDet);
|
||||||
if(sett==-1) sett = slsDetectorDefs::UNDEFINED;
|
if(sett==-1) sett = slsDetectorDefs::UNDEFINED;
|
||||||
// To be able to index items on a combo box
|
// To be able to index items on a combo box
|
||||||
model = qobject_cast<QStandardItemModel*>(comboSettings->model());
|
model = qobject_cast<QStandardItemModel*>(comboSettings->model());
|
||||||
@ -169,6 +171,8 @@ void qTabSettings::setSettings(int index){
|
|||||||
if(expertMode) emit UpdateTrimbitSignal(0);
|
if(expertMode) emit UpdateTrimbitSignal(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qDefs::checkErrorMessage(myDet);
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
@ -184,6 +188,8 @@ void qTabSettings::SetNumberOfModules(int index){
|
|||||||
cout << "ERROR: Setting number of modules to "<< i << endl;
|
cout << "ERROR: Setting number of modules to "<< i << endl;
|
||||||
#endif
|
#endif
|
||||||
spinNumModules->setValue(i);
|
spinNumModules->setValue(i);
|
||||||
|
|
||||||
|
qDefs::checkErrorMessage(myDet);
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
@ -217,7 +223,9 @@ void qTabSettings::SetDynamicRange(int index){
|
|||||||
default: comboDynamicRange->setCurrentIndex(0); break;
|
default: comboDynamicRange->setCurrentIndex(0); break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
qDefs::checkErrorMessage(myDet);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
@ -236,6 +244,8 @@ void qTabSettings::SetEnergy(){
|
|||||||
disconnect(spinThreshold, SIGNAL(valueChanged(int)), this, SLOT(SetEnergy()));
|
disconnect(spinThreshold, SIGNAL(valueChanged(int)), this, SLOT(SetEnergy()));
|
||||||
spinThreshold->setValue(ret);
|
spinThreshold->setValue(ret);
|
||||||
connect(spinThreshold, SIGNAL(valueChanged(int)), this, SLOT(SetEnergy()));
|
connect(spinThreshold, SIGNAL(valueChanged(int)), this, SLOT(SetEnergy()));
|
||||||
|
|
||||||
|
qDefs::checkErrorMessage(myDet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -299,6 +309,8 @@ void qTabSettings::Refresh(){
|
|||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "**Updated Settings Tab" << endl << endl;
|
cout << "**Updated Settings Tab" << endl << endl;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
qDefs::checkErrorMessage(myDet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user