1 #include "BrowseDialog.h" 21 FileDialog(title, filterList, directory, parent), p_dir(directory) {
28 allPButtons[0]->setText(
"View");
29 disconnect(allPButtons[0], 0, 0, 0);
30 connect(allPButtons[0], SIGNAL(pressed()),
this, SLOT(
displayCube()));
32 allPButtons[1]->setText(
"Close");
34 this->setFileMode(QFileDialog::ExistingFile);
47 p_dir = this->directory();
51 if(selectedFiles.size() < 1) {
52 QString message = tr(
"\nFile not found.\nPlease verify the " 53 "correct file name was given");
54 QMessageBox::warning(
this,
"File Not Found", message);
59 emit fileSelected(selectedFiles[0]);
Class for browsing cubes.
QDir & p_dir
The directory to open the dialog with.
void done()
Called when the user presses OK.
void displayCube()
This method is called after the user has selected a file either by double clicking on the file name o...
BrowseDialog(QString title, QStringList &filterList, QDir &dir, QWidget *parent=0)
BrowseDialog constructor.
Namespace for ISIS/Bullet specific routines.