Interact with the OS file system.
More...
#include <filesystem.h>
Interact with the OS file system.
◆ filesystem()
liblec::lecui::filesystem::filesystem |
( |
form & |
fm | ) |
|
Constructor.
- Parameters
-
fm | A reference to the form. |
◆ open_file()
std::vector< std::string > liblec::lecui::filesystem::open_file |
( |
const open_file_params & |
params | ) |
|
Display an 'open file' modal dialog.
- Parameters
-
params | The parameters of the dialog. |
- Returns
- A list of the full paths to the selected file(s), including the extensions.
◆ save_file()
std::string liblec::lecui::filesystem::save_file |
( |
const std::string & |
file, |
|
|
const save_file_params & |
params |
|
) |
| |
Display a 'save file' modal dialog so the user can select its properties and location.
- Parameters
-
file | The suggested name of the file. |
params | The parameters of the dialog. |
- Returns
- The full path the user desires, including the filename and extension.
◆ select_folder()
std::string liblec::lecui::filesystem::select_folder |
( |
const std::string & |
title | ) |
|
Display a 'select folder' modal dialog.
- Parameters
-
title | The title of the dialog. |
- Returns
- The full path to the selected folder. Empty if none is selected.
The documentation for this class was generated from the following file: