Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
SelectFolderDialog.hpp
Go to the documentation of this file.
1 #pragma once
2 #ifndef ENIGMA_SELECT_FOLDER_DIALOG_H
3 #define ENIGMA_SELECT_FOLDER_DIALOG_H
4 
5 #include <Core/Core.hpp>
6 #include <portable-file-dialogs.h>
7 
9 
14  public: /* Constructors / Destructor */
21  SelectFolderDialog(const std::string& title,
22  const std::string& initial_path = ".",
23  const bool force_path = true);
24  ~SelectFolderDialog() noexcept = default;
25 
26  public: /* Accessors */
30  std::string Show() const;
31 
32  private:
33  std::string m_title; /*< Dialog title */
34  std::string m_initial_path; /*< Dialog initial path */
35  bool m_force_path; /*< Shall force the operating system to use the provided path? Some systems default to the most recently used path, if applicable. */
36 };
37 
39 
40 
41 #endif // !ENIGMA_SELECT_FOLDER_DIALOG_H
#define NS_ENIGMA_BEGIN
Enable/Disable Assertions.
Definition: Macros.hpp:13
#define NS_ENIGMA_END
Definition: Macros.hpp:14
SelectFolderDialog(const std::string &title, const std::string &initial_path=".", const bool force_path=true)
std::string Show() const
~SelectFolderDialog() noexcept=default