#include <file_dialog.hpp>
|
| static std::optional< std::string > | open_file (const std::string &title="Open", const std::vector< FileFilter > &filters={}, const std::string &default_path="") |
| static std::vector< std::string > | open_files (const std::string &title="Open", const std::vector< FileFilter > &filters={}, const std::string &default_path="") |
| static std::optional< std::string > | save_file (const std::string &title="Save", const std::vector< FileFilter > &filters={}, const std::string &default_path="", const std::string &default_name="") |
| static std::optional< std::string > | save_copy (const std::string &source_path, const std::string &title="Save", const std::vector< FileFilter > &filters={}, const std::string &default_path="", const std::string &default_name="", std::string *error=nullptr) |
| static std::optional< std::string > | choose_folder (const std::string &title="Choose Folder", const std::string &default_path="") |
| static std::vector< std::string > | choose_folders (const std::string &title="Choose Folders", const std::string &default_path="") |
| static std::vector< std::string > | choose_folders_with (const Backend &backend, const std::string &title, const std::string &default_path) |
| static void | set_backend (Backend backend) |
| static void | set_save_copy_backend (SaveCopyBackend backend) |
| static bool | has_save_copy_backend () |
| static void | clear_backend () |
| static bool | has_backend () |
| static bool | install_native_backend () |
◆ SaveCopyBackend
Initial value: std::function<std::optional<std::string>(
const std::string& source_path,
const std::string& title,
const std::vector<FileFilter>& filters,
const std::string& default_path,
const std::string& default_name,
std::string* error)>
◆ choose_folder()
| std::optional< std::string > pulp::platform::FileDialog::choose_folder |
( |
const std::string & | title = "Choose Folder", |
|
|
const std::string & | default_path = "" ) |
|
static |
◆ choose_folders()
| std::vector< std::string > pulp::platform::FileDialog::choose_folders |
( |
const std::string & | title = "Choose Folders", |
|
|
const std::string & | default_path = "" ) |
|
static |
◆ choose_folders_with()
| std::vector< std::string > pulp::platform::FileDialog::choose_folders_with |
( |
const Backend & | backend, |
|
|
const std::string & | title, |
|
|
const std::string & | default_path ) |
|
static |
◆ clear_backend()
| void pulp::platform::FileDialog::clear_backend |
( |
| ) |
|
|
static |
◆ has_backend()
| bool pulp::platform::FileDialog::has_backend |
( |
| ) |
|
|
static |
◆ has_save_copy_backend()
| bool pulp::platform::FileDialog::has_save_copy_backend |
( |
| ) |
|
|
static |
◆ install_native_backend()
| bool pulp::platform::FileDialog::install_native_backend |
( |
| ) |
|
|
static |
◆ open_file()
| std::optional< std::string > pulp::platform::FileDialog::open_file |
( |
const std::string & | title = "Open", |
|
|
const std::vector< FileFilter > & | filters = {}, |
|
|
const std::string & | default_path = "" ) |
|
static |
◆ open_files()
| std::vector< std::string > pulp::platform::FileDialog::open_files |
( |
const std::string & | title = "Open", |
|
|
const std::vector< FileFilter > & | filters = {}, |
|
|
const std::string & | default_path = "" ) |
|
static |
◆ save_copy()
| std::optional< std::string > pulp::platform::FileDialog::save_copy |
( |
const std::string & | source_path, |
|
|
const std::string & | title = "Save", |
|
|
const std::vector< FileFilter > & | filters = {}, |
|
|
const std::string & | default_path = "", |
|
|
const std::string & | default_name = "", |
|
|
std::string * | error = nullptr ) |
|
static |
◆ save_file()
| std::optional< std::string > pulp::platform::FileDialog::save_file |
( |
const std::string & | title = "Save", |
|
|
const std::vector< FileFilter > & | filters = {}, |
|
|
const std::string & | default_path = "", |
|
|
const std::string & | default_name = "" ) |
|
static |
◆ set_backend()
| void pulp::platform::FileDialog::set_backend |
( |
Backend | backend | ) |
|
|
static |
◆ set_save_copy_backend()
| void pulp::platform::FileDialog::set_save_copy_backend |
( |
SaveCopyBackend | backend | ) |
|
|
static |
The documentation for this class was generated from the following file:
- /home/runner/work/pulp/pulp/core/platform/include/pulp/platform/file_dialog.hpp