54 if (!filename.isEmpty()) {
55 QStringList files = filename.split(
",");
56 if (files.size() > 0) {
57 QString firstFile = files[0];
67 QStringList list = files;
68 QStringList::Iterator it = list.begin();
69 while (it != list.end()) {
70 if (it != list.begin())
78 if (!filename.isEmpty()) {
103 if (prop->isLoadProperty()) {
108 }
else if (prop->isSaveProperty()) {
110 }
else if (prop->isDirectoryProperty()) {
115 throw std::runtime_error(
"Invalid type of file property! This should not happen.");
118 if (!filename.isEmpty()) {
133 return QStringList();
136 return QStringList();
139 QStringList files = QFileDialog::getOpenFileNames(
nullptr,
"Open Multiple Files",
The most generic widgets for Property's that are only a simple string.
QLineEdit * m_textbox
The text box to edit.
A specialized class for dealing with file properties.
A property to allow a user to specify multiple files to load.
Base class for properties.
virtual std::string value() const =0
Returns the value of the property as a string.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
DLLExport QString getCaption(const std::string &dialogName, const Mantid::Kernel::Property *prop)
DLLExport QString getFilter(const Mantid::Kernel::Property *baseProp)
DLLExport QString getSaveFileName(QWidget *parent=nullptr, const Mantid::Kernel::Property *baseProp=nullptr, const QFileDialog::Options &options=QFileDialog::Options())
Contains modifications to Qt functions where problems have been found on certain operating systems.