file dialogs now show option to show all files, trimbits is possible to open non existing file, copying clones does not get rid of the old plot

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@257 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
l_maliakal_d
2014-02-05 16:37:05 +00:00
parent 28e0cae2e2
commit 534be9f942
9 changed files with 165 additions and 173 deletions

View File

@ -368,9 +368,13 @@ void qTabAdvanced::BrowseOutputFile(){
#endif
QString fName = dispFile->text();
//dialog
fName = QFileDialog::getSaveFileName(this,
tr("Choose file to write the trimbits to"),fName,
tr("Trimbit files (*.trim noise.sn*) "));
QFileDialog *fileDialog = new QFileDialog(this,
tr("Save Trimbits"),fName,
tr("Trimbit files (*.trim noise.sn*);;All Files(*) "));
fileDialog->setFileMode(QFileDialog::AnyFile );
if ( fileDialog->exec() == QDialog::Accepted )
fName = fileDialog->selectedFiles()[0];
//if empty, set the file name and it calls SetFileSteps, else ignore
if (!fName.isEmpty()){
dispFile->setText(fName);