103 static QString openDialogCaption( FileType fileType );
104 static QString saveDialogCaption( FileType fileType );
105 static QString openFileFilters( FileType fileType );
106 static QString saveFileFilters( FileType fileType );
108 static QString defaultFileName( FileType fileType );
110 static QString addDefaultExtensionSuffix(FileType fileType);
112 static QString toSettingKey( FileType fileType );
115 #endif // FILEDIALOG_H
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 void setLastSavePath(FileType fileType, const QString &savePath)
Saves 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 QString getLastOpenPath(FileType fileType)
Retrieves the last opened file of a given type.
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 getSaveFileName(QWidget *parent, FileType fileType, const QString &caption=QString())
Shows a file dialog which allows the user to select a file save path.
QObject * parent() const const