Mantid
|
Contains modifications to Qt functions where problems have been found on certain operating systems. More...
Functions | |
DLLExport QString | addExtension (const QString &filename, const QString &selectedFilter) |
For file dialogs. More... | |
DLLExport QString | formatExtension (const std::string &extension) |
Format extension into expected form (*.ext) More... | |
DLLExport QString | getCaption (const std::string &dialogName, const Mantid::Kernel::Property *prop) |
DLLExport QString | getFilter (const Mantid::Kernel::Property *baseProp) |
DLLExport QString | getFilter (const std::vector< std::string > &exts) |
For file dialogs. More... | |
DLLExport QString | getSaveFileName (QWidget *parent, const Mantid::Kernel::Property *baseProp, const QFileDialog::Options &options) |
Contains modifications to Qt functions where problems have been found on certain operating systems. More... | |
Contains modifications to Qt functions where problems have been found on certain operating systems.
QString MantidQt::API::FileDialogHandler::addExtension | ( | const QString & | filename, |
const QString & | selectedFilter | ||
) |
For file dialogs.
This will add the selected extension if an extension doesn't already exist.
Definition at line 54 of file FileDialogHandler.cpp.
Referenced by getSaveFileName().
QString MantidQt::API::FileDialogHandler::formatExtension | ( | const std::string & | extension | ) |
Format extension into expected form (*.ext)
extension | :: extension to be formatted |
extension | :: extension to be formatted |
Definition at line 127 of file FileDialogHandler.cpp.
Referenced by getFilter().
QString MantidQt::API::FileDialogHandler::getCaption | ( | const std::string & | dialogName, |
const Mantid::Kernel::Property * | prop | ||
) |
Definition at line 146 of file FileDialogHandler.cpp.
References Mantid::Kernel::Property::name().
Referenced by getSaveFileName(), and MantidQt::API::FilePropertyWidget::openFileDialog().
QString MantidQt::API::FileDialogHandler::getFilter | ( | const Mantid::Kernel::Property * | baseProp | ) |
Definition at line 71 of file FileDialogHandler.cpp.
References getFilter().
Referenced by getFilter(), getSaveFileName(), MantidQt::API::FilePropertyWidget::openFileDialog(), and MantidQt::API::FilePropertyWidget::openMultipleFileDialog().
QString MantidQt::API::FileDialogHandler::getFilter | ( | const std::vector< std::string > & | exts | ) |
For file dialogs.
exts | :: vector of extensions |
Have each filter on a separate line with Data Files as the first and All Files as the last
exts | :: vector of extensions |
Definition at line 96 of file FileDialogHandler.cpp.
References formatExtension().
QString MantidQt::API::FileDialogHandler::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.
parent | :: the dialog will be shown centered over this parent widget |
baseProp | :: The property that the dialog parameters will be extracted from. |
options | :: The options argument holds various options about how to run the dialog |
Definition at line 40 of file FileDialogHandler.cpp.
References addExtension(), getCaption(), getFilter(), and Mantid::Kernel::SingletonHolder< T >::Instance().
Referenced by MantidQt::API::FilePropertyWidget::openFileDialog().