mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
verifying output directory works for receiver based detectors.. before acquisition
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@206 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
/** Qt Project Class Headers */
|
||||
#include "qDrawPlot.h"
|
||||
#include "qTabMeasurement.h"
|
||||
class qTabDataOutput;
|
||||
#include "qTabDataOutput.h"
|
||||
class qTabPlot;
|
||||
class qTabActions;
|
||||
class qTabAdvanced;
|
||||
@ -80,6 +80,9 @@ public:
|
||||
/** Returns file path */
|
||||
QString GetFilePath(){QString s = QString(myDet->getFilePath().c_str());qDefs::checkErrorMessage(myDet); return s;};
|
||||
|
||||
/** Verifies if output directories for all the receivers exist */
|
||||
int DoesOutputDirExist(){return tab_dataoutput->VerifyOutputDirectory();};
|
||||
|
||||
private:
|
||||
/** The Qt Application */
|
||||
QApplication *theApp;
|
||||
|
@ -40,6 +40,10 @@ public:
|
||||
*/
|
||||
void Refresh();
|
||||
|
||||
/** verify output directories
|
||||
* /returns success or fail
|
||||
*/
|
||||
int VerifyOutputDirectory();
|
||||
|
||||
|
||||
private:
|
||||
@ -53,6 +57,9 @@ private:
|
||||
QString errFlatFieldTip;
|
||||
QString outDirTip;
|
||||
QPalette red;
|
||||
QPalette black;
|
||||
QPalette *red1;
|
||||
QPalette *black1;
|
||||
|
||||
/** methods */
|
||||
/** Sets up the widget */
|
||||
@ -61,11 +68,12 @@ private:
|
||||
/** Sets up all the slots and signals */
|
||||
void Initialization();
|
||||
|
||||
/** Populate the readouts
|
||||
*/
|
||||
void PopulateDetectors();
|
||||
|
||||
|
||||
private slots:
|
||||
/** Sets the output directory
|
||||
*/
|
||||
void setOutputDir();
|
||||
|
||||
/** Open dialog to choose the output directory */
|
||||
void browseOutputDir();
|
||||
@ -91,6 +99,12 @@ void SetAngularCorrection();
|
||||
/**discard bad channels*/
|
||||
void DiscardBadChannels();
|
||||
|
||||
/** set output directory*/
|
||||
void SetOutputDir();
|
||||
|
||||
/** set output directory*/
|
||||
void GetOutputDir();
|
||||
|
||||
signals:
|
||||
/**signal to enable/disable positions in Actions*/
|
||||
void AngularConversionSignal(bool);
|
||||
|
@ -16,6 +16,7 @@
|
||||
class multiSlsDetector;
|
||||
/** Qt Project Class Headers */
|
||||
#include "qDrawPlot.h"
|
||||
class qDetectorMain;
|
||||
|
||||
/**
|
||||
*@short sets up the measurement parameters
|
||||
@ -33,7 +34,7 @@ public:
|
||||
* @param detector is the detector returned from the detector tab
|
||||
* @param plot plot object reference
|
||||
*/
|
||||
qTabMeasurement(QWidget *parent,multiSlsDetector*& detector, qDrawPlot*& plot);
|
||||
qTabMeasurement(qDetectorMain *parent,multiSlsDetector*& detector, qDrawPlot*& plot);
|
||||
|
||||
/** Destructor
|
||||
*/
|
||||
@ -167,6 +168,8 @@ private slots:
|
||||
|
||||
|
||||
private:
|
||||
/** parent widget */
|
||||
qDetectorMain *thisParent;
|
||||
/** The sls detector object */
|
||||
multiSlsDetector *myDet;
|
||||
/** The Plot widget */
|
||||
|
Reference in New Issue
Block a user