class
BrowseDialog
Contains methods for opening various OS-specific browse, open and save file/folder dialogs.
Public
Methods
staticOpenFile
static bool OpenFile(const Path &defaultFolder, const String &filterList, bool allowMultiselect, Vector<Path> &outPaths)
Displays a platform specific dialog that allows the user to select file(s).
- defaultFolder
- Default path the dialog should point to.
- filterList
- Semi-colon separated list of file names or types to display in the dialog, for example "exe;txt;png".
- allowMultiselect
- True if user is allowed to select multiple files.
- outPaths
- A list of file paths selected by the user.
Returns: True if the user selected the file(s), false if the user canceled out of the dialog.
staticOpenFolder
Displays a platform specific dialog that allows the user to select a folder.
- defaultFolder
- Default path the dialog should point to.
- outPath
- Path to the selected folder.
Returns: True if the user selected the folder, false if the user canceled out of the dialog.
staticSaveFile
Displays a platform specific dialog that allows the user to select where to save a file.
- defaultFolder
- Default path the dialog should point to.
- filterList
- Semi-colon separated list of file names or types to display in the dialog, for example "exe;txt;png".
- outPath
- File path selected by the user.
Returns: True if the user selected the file, false if the user canceled out of the dialog.