103 static QString openDialogCaption( FileType fileType );
104 static QString saveDialogCaption( FileType fileType );
105 static QString openFileFilters( FileType fileType );
106 static QString saveFileFilters( FileType fileType );
110 static bool hasValidSuffix(
const QString& filters,
const QString& filePath);
111 static QString getDefaultExtensionByFileType(FileType fileType);
113 static QString toSettingKey( FileType fileType );
114 static void setLastSavePaths(
const QString& filePath);
A wrapper around QFileDialog which remembers selected paths.
static QString getLastSavePath(FileType fileType)
Retrieves the last used save path for a given file type.
static QStringList getOpenFileNames(QWidget *parent, FileType fileType, const QString &caption=QString())
Shows a file dialog which allows the user to select multiple files to open.
static void setLastSavePath(FileType fileType, const QString &savePath)
Saves the last used save path for a given file type.
static QString getSaveFileName(QWidget *parent, FileType fileType, const QString &caption=QString())
Shows a file dialog which allows the user to select a file save path.
static QString getOpenFileName(QWidget *parent, FileType fileType, const QString &caption=QString())
Shows a file dialog which allows the user to select a file to open.
static void setLastOpenPath(FileType fileType, const QString &openPath)
Saves the last opened file of a given type.
static QString getLastOpenPath(FileType fileType)
Retrieves the last opened file of a given type.
QObject * parent() const const