9 #include "BrowseDialog.h"
11 #include <QFileDialog>
12 #include <QMessageBox>
13 #include <QPushButton>
29 FileDialog(title, filterList, directory, parent), p_dir(directory) {
36 allPButtons[0]->setText(
"View");
37 disconnect(allPButtons[0], 0, 0, 0);
38 connect(allPButtons[0], SIGNAL(pressed()),
this, SLOT(
displayCube()));
40 allPButtons[1]->setText(
"Close");
42 this->setFileMode(QFileDialog::ExistingFile);
55 p_dir = this->directory();
59 if(selectedFiles.size() < 1) {
60 QString message = tr(
"\nFile not found.\nPlease verify the "
61 "correct file name was given");
62 QMessageBox::warning(
this,
"File Not Found", message);
67 emit fileSelected(selectedFiles[0]);