mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-14 13:57:13 +02:00
check if outdir exists,indent Actions,degreeC,cascode,thresholdscan(ev),not saving data secondary title,got rid of 2d sampledata
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@86 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
@ -64,6 +64,7 @@ void qTabDataOutput::SetupWidgetWindow(){
|
||||
QString("<nobr><font color=\"red\">"
|
||||
"Enter a valid file to enable Flat Field.</font></nobr>");
|
||||
|
||||
outDirTip = dispOutputDir->toolTip();
|
||||
|
||||
Initialization();
|
||||
|
||||
@ -146,13 +147,29 @@ void qTabDataOutput::setOutputDir(){
|
||||
while(path.endsWith('/')) path.chop(1);
|
||||
dispOutputDir->setText(path);
|
||||
|
||||
//if(QFile::exists(path))
|
||||
if(QFile::exists(path)){
|
||||
lblOutputDir->setText("Output Directory: ");
|
||||
lblOutputDir->setPalette(chkRate->palette());
|
||||
lblOutputDir->setToolTip(outDirTip);
|
||||
dispOutputDir->setToolTip(outDirTip);
|
||||
btnOutputBrowse->setToolTip(outDirTip);
|
||||
|
||||
myDet->setFilePath(string(path.toAscii().constData()));
|
||||
#ifdef VERBOSE
|
||||
cout << "Output Directory changed to :"<<myDet->getFilePath() << endl;
|
||||
#endif
|
||||
}
|
||||
else{
|
||||
lblOutputDir->setText("Output Directory:*");
|
||||
lblOutputDir->setPalette(red);
|
||||
QString errTip = outDirTip +
|
||||
QString("<nobr><font color=\"red\">"
|
||||
"Enter a valid path to change <b>Output Directory</b>.</font></nobr>");
|
||||
lblOutputDir->setToolTip(errTip);
|
||||
dispOutputDir->setToolTip(errTip);
|
||||
btnOutputBrowse->setToolTip(errTip);
|
||||
}
|
||||
|
||||
myDet->setFilePath(string(path.toAscii().constData()));
|
||||
#ifdef VERBOSE
|
||||
cout << "Output Directory changed to :"<<myDet->getFilePath() << endl;
|
||||
#endif
|
||||
connect(dispOutputDir, SIGNAL(editingFinished()), this, SLOT(setOutputDir()));
|
||||
}
|
||||
|
||||
@ -454,7 +471,11 @@ void qTabDataOutput::Refresh(){
|
||||
cout << "Getting output directory" << endl;
|
||||
#endif
|
||||
dispOutputDir->setText(QString(myDet->getFilePath().c_str()));
|
||||
|
||||
lblOutputDir->setText("Output Directory: ");
|
||||
lblOutputDir->setPalette(chkRate->palette());
|
||||
lblOutputDir->setToolTip(outDirTip);
|
||||
dispOutputDir->setToolTip(outDirTip);
|
||||
btnOutputBrowse->setToolTip(outDirTip);
|
||||
|
||||
//flat field correction from server
|
||||
#ifdef VERBOSE
|
||||
|
Reference in New Issue
Block a user