Enigma
3.2.2
A Simple, Reliable and Efficient Encryption Tool
Loading...
Searching...
No Matches
SaveFileDialog.hpp
Go to the documentation of this file.
1
#pragma once
2
#ifndef ENIGMA_SAVE_FILE_DIALOG_H
3
#define ENIGMA_SAVE_FILE_DIALOG_H
4
5
#include <
Core/Core.hpp
>
6
7
NS_ENIGMA_BEGIN
8
12
class
SaveFileDialog
{
13
public
:
/* Constructors / Destructor */
22
explicit
SaveFileDialog
(
const
std::string& title,
23
const
std::string& initialPath =
"."
,
24
const
bool
forceOverwrite =
true
,
25
const
std::initializer_list<std::string>& filters = {
"*"
},
26
const
std::string& singleFilterDescription =
"All Files"
);
27
~SaveFileDialog
() noexcept = default;
28
29
public:
/* Accessors */
33
[[nodiscard]] std::
string
Show
() const;
34
35
private:
36
std::
string
m_title;
/*< Dialog title */
37
std::
string
m_initialPath;
/*< Dialog initial path */
38
bool
m_forceOverwrite;
/*< Shall force file overwriting? */
39
std::vector<std::
string
> m_filters;
/*< Which files to allow e.g {"*.txt", "*.jpg"} */
40
std::
string
m_singleFilterDescription;
/*< All Files, Text Files... */
41
};
42
43
NS_ENIGMA_END
44
45
46
#endif
// !ENIGMA_SAVE_FILE_DIALOG_H
Core.hpp
NS_ENIGMA_BEGIN
#define NS_ENIGMA_BEGIN
Enable/Disable Assertions.
Definition
Macros.hpp:13
NS_ENIGMA_END
#define NS_ENIGMA_END
Definition
Macros.hpp:14
SaveFileDialog
Definition
SaveFileDialog.hpp:12
SaveFileDialog::Show
std::string Show() const
SaveFileDialog::SaveFileDialog
SaveFileDialog(const std::string &title, const std::string &initialPath=".", const bool forceOverwrite=true, const std::initializer_list< std::string > &filters={"*"}, const std::string &singleFilterDescription="All Files")
SaveFileDialog::~SaveFileDialog
~SaveFileDialog() noexcept=default
src
System
Dialogs
SaveFileDialog.hpp
Generated on Sat Apr 12 2025 16:55:01 for Enigma by
1.9.8