MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Portal::System::Dialog Namespace Reference

Typedefs

using ChooserCallback = Core::FileDialogCallback
 Callback type for the primitive callback overload.
 
using ChooserFilter = Core::SystemFileFilter
 A named group of accepted file extensions.
 
using ChooserResult = Core::FileDialogResult
 Result type for the primitive callback overload.
 

Functions

void open_file (ChooserCallback callback, std::vector< ChooserFilter > filters={}, std::filesystem::path start_dir={})
 Present a native open-file dialog, delivering the result via callback.
 
template<typename T >
open_file (std::function< T(std::filesystem::path)> on_success, std::function< void(Core::SystemDialogError)> on_error, std::vector< ChooserFilter > filters={}, std::filesystem::path start_dir={})
 Present a native open-file dialog, returning T produced by on_success.
 
void save_file (ChooserCallback callback, std::string suggested_name={}, std::vector< ChooserFilter > filters={}, std::filesystem::path start_dir={})
 Present a native save-file dialog, delivering the result via callback.
 
template<typename T >
save_file (std::function< T(std::filesystem::path)> on_success, std::function< void(Core::SystemDialogError)> on_error, std::string suggested_name={}, std::vector< ChooserFilter > filters={}, std::filesystem::path start_dir={})
 Present a native save-file dialog, returning T produced by on_success.