#include <OpenFileDialog.hpp>
|
| | OpenFileDialog (const std::string &title, const std::string &initialPath=".", const bool allowMultiselect=true, const std::initializer_list< std::string > &filters={"*"}, const std::string &singleFilterDescription="All Files") |
| |
| | ~OpenFileDialog () noexcept=default |
| |
| std::vector< std::string > | Show () const |
| | Spawns Open File Dialog and returns selected file(s) paths.
|
| |
System Dialog to ask the user to select a file from disk
Definition at line 9 of file OpenFileDialog.hpp.
◆ OpenFileDialog()
| OpenFileDialog::OpenFileDialog |
( |
const std::string & |
title, |
|
|
const std::string & |
initialPath = ".", |
|
|
const bool |
allowMultiselect = true, |
|
|
const std::initializer_list< std::string > & |
filters = {"*"}, |
|
|
const std::string & |
singleFilterDescription = "All Files" |
|
) |
| |
|
explicit |
Constructor
- Parameters
-
| title | title of the dialog |
| initialPath | the default path of the dialog. |
| allowMultiselect | to allow selecting multiple files |
| filters | The filter list enumerates filter names and corresponded space-separated wildcard lists. It defaults to { "*" } |
| singleFilterDescription | The single filter description. It defaults to "All Files" |
◆ ~OpenFileDialog()
| OpenFileDialog::~OpenFileDialog |
( |
| ) |
|
|
defaultnoexcept |
◆ Show()
| std::vector< std::string > OpenFileDialog::Show |
( |
| ) |
const |
Spawns Open File Dialog and returns selected file(s) paths.
The documentation for this class was generated from the following file: