Enigma
3.2.0
A Simple, Reliable and Efficient Encryption Tool
|
#include <OpenFileDialog.hpp>
Public Member Functions | |
OpenFileDialog (const std::string &title, const std::string &initial_path=".", const bool allow_multiselect=true, const std::initializer_list< std::string > &filters={"All Files", "*"}) | |
~OpenFileDialog () noexcept=default | |
std::vector< std::string > | Show () const |
Spawns Open File Dialog and returns selected file(s) paths. More... | |
System Dialog to ask the user to select a file from disk
Definition at line 12 of file OpenFileDialog.hpp.
OpenFileDialog::OpenFileDialog | ( | const std::string & | title, |
const std::string & | initial_path = "." , |
||
const bool | allow_multiselect = true , |
||
const std::initializer_list< std::string > & | filters = {"All Files", "*"} |
||
) |
Constructor
title | title of the dialog |
initial_path | the default path of the dialog. |
allow_multiselect | to allow selecting multiple files |
filters | The filter list enumerates filter names and corresponded space-separated wildcard lists. It defaults to { "All Files", "*" } |
|
defaultnoexcept |
std::vector<std::string> OpenFileDialog::Show | ( | ) | const |
Spawns Open File Dialog and returns selected file(s) paths.