diff --git a/slsDetectorGui/src/qDrawPlot.cpp b/slsDetectorGui/src/qDrawPlot.cpp index 018ccf313..1d3e4703f 100644 --- a/slsDetectorGui/src/qDrawPlot.cpp +++ b/slsDetectorGui/src/qDrawPlot.cpp @@ -461,7 +461,7 @@ int qDrawPlot::ResetDaqForGui(){ bool qDrawPlot::StartOrStopThread(bool start){ -#ifdef VERBOSE +#ifdef VERYVERBOSE cout << "StartOrStopThread:" << start << endl; #endif static bool firstTime = true; @@ -510,7 +510,7 @@ bool qDrawPlot::StartOrStopThread(bool start){ void qDrawPlot::SetScanArgument(int scanArg){ -#ifdef VERBOSE +#ifdef VERYVERBOSE cout << "SetScanArgument function:" << scanArg << " running:" << running << endl; #endif scanArgument = scanArg; @@ -627,11 +627,11 @@ void qDrawPlot::SetScanArgument(int scanArg){ void qDrawPlot::SetupMeasurement(){ -#ifdef VERBOSE +#ifdef VERYVERBOSE cout << "SetupMeasurement function:" << running << endl; #endif LockLastImageArray(); -#ifdef VERBOSE +#ifdef VERYVERBOSE cout << "locklastimagearray" << endl; #endif // Defaults @@ -643,7 +643,6 @@ void qDrawPlot::SetupMeasurement(){ //if(plot_in_scope==2) if(!running) lastImageNumber = 0;/**Just now */ - cout<<"before 2d"<isChecked()){ - if(myDet->setAngularConversionFile("default")){ + bool enabled = chkAngular->isChecked(); + //set + if(myDet->setAngularCorrectionMask(enabled) == enabled){ #ifdef VERBOSE - cout << "Setting angular conversion to default" << endl; + cout << "Angular Conversion mask:" << enabled << endl; #endif - }else{ + } + //error + else{ #ifdef VERBOSE cout << "Could not set angular conversion to default" << endl; #endif - qDefs::Message(qDefs::WARNING,"Angular Conversion could not be set. Please set the default file name using the command line, if you haven't already.","qTabDataOutput::SetAngularCorrection"); - chkAngular->setChecked(false); - } - }else{ - if(myDet->setAngularConversionFile("")){ -#ifdef VERBOSE - cout << "Could not reset angular correction" << endl; -#endif - qDefs::Message(qDefs::WARNING,"Angular Conversion could not be reset.","qTabDataOutput::SetAngularCorrection"); - chkAngular->setChecked(true); - }else{; -#ifdef VERBOSE - cout << "Unsetting angular correction" << endl; -#endif - } + qDefs::Message(qDefs::WARNING,"Angular Conversion could not be set/reset. Please set the default file name using the command line, if you want to set it.","qTabDataOutput::SetAngularCorrection"); + chkAngular->setChecked(!enabled); } emit AngularConversionSignal(chkAngular->isChecked()); diff --git a/slsDetectorGui/src/qTabPlot.cpp b/slsDetectorGui/src/qTabPlot.cpp index cef2f6b38..b072f84a9 100644 --- a/slsDetectorGui/src/qTabPlot.cpp +++ b/slsDetectorGui/src/qTabPlot.cpp @@ -715,6 +715,7 @@ void qTabPlot::EnableScanBox(bool Histo){ int mode1 = myDet->getScanMode(1); int ang; bool angConvert = myDet->getAngularConversion(ang); + myPlot->EnableAnglePlot(angConvert); radioDataGraph->setEnabled(true); radioHistogram->setEnabled(true); @@ -752,7 +753,6 @@ void qTabPlot::EnableScanBox(bool Histo){ - myPlot->EnableAnglePlot(angConvert); if(angConvert){ boxScan->setToolTip("Only 1D Plots enabled for Angle Plots"); //disable histogram diff --git a/slsDetectorGui/src/qTabSettings.cpp b/slsDetectorGui/src/qTabSettings.cpp index a0d2fb3f7..867f4d3a8 100644 --- a/slsDetectorGui/src/qTabSettings.cpp +++ b/slsDetectorGui/src/qTabSettings.cpp @@ -266,9 +266,12 @@ void qTabSettings::Refresh(){ // Number of Modules +#ifdef VERBOSE + cout << "Getting number of modules:" ; +#endif int numMod = myDet->setNumberOfModules(); #ifdef VERBOSE - cout << "Getting number of modules:" << numMod << endl; + cout << numMod << endl; #endif spinNumModules->setValue(numMod);