made measurement tab faster, not too many checks anymore

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@259 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
l_maliakal_d
2014-02-10 16:20:17 +00:00
parent f768886308
commit 7ebd1643ee
3 changed files with 182 additions and 172 deletions

View File

@ -1142,9 +1142,14 @@ void qTabAdvanced::Refresh(){
qDefs::checkErrorMessage(myDet,"qTabAdvanced::Refresh");
#ifdef VERBOSE
cout << "Getting Detector Ports" << endl;
#endif
//disconnect
disconnect(spinControlPort, SIGNAL(valueChanged(int)), this, SLOT(SetControlPort(int)));
disconnect(spinStopPort, SIGNAL(valueChanged(int)), this, SLOT(SetStopPort(int)));
disconnect(spinStopPort, SIGNAL(valueChanged(int)), this, SLOT(SetStopPort(int)));
disconnect(comboOnline, SIGNAL(currentIndexChanged(int)), this, SLOT(SetOnline(int)));
//so that updated status
@ -1160,7 +1165,9 @@ void qTabAdvanced::Refresh(){
connect(comboOnline, SIGNAL(currentIndexChanged(int)), this, SLOT(SetOnline(int)));
#ifdef VERBOSE
cout << "Getting Receiver Network Information" << endl;
#endif
if ((detType==slsDetectorDefs::GOTTHARD) || (detType==slsDetectorDefs::MOENCH)){
//disconnect
disconnect(spinTCPPort, SIGNAL(valueChanged(int)), this, SLOT(SetRxrTCPPort(int)));
@ -1226,6 +1233,9 @@ void qTabAdvanced::Refresh(){
}
//roi
#ifdef VERBOSE
cout << "Getting ROI" << endl;
#endif
updateROIList();