Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
OpenFileDialog Class Reference

#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...
 

Detailed Description

System Dialog to ask the user to select a file from disk

Definition at line 12 of file OpenFileDialog.hpp.

Constructor & Destructor Documentation

◆ OpenFileDialog()

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

Parameters
titletitle of the dialog
initial_paththe default path of the dialog.
allow_multiselectto allow selecting multiple files
filtersThe filter list enumerates filter names and corresponded space-separated wildcard lists. It defaults to { "All Files", "*" }

◆ ~OpenFileDialog()

OpenFileDialog::~OpenFileDialog ( )
defaultnoexcept

Member Function Documentation

◆ 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: