MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
Chooser.hpp File Reference
+ Include dependency graph for Chooser.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::Portal
 
namespace  MayaFlux::Portal::System
 
namespace  MayaFlux::Portal::System::Dialog
 

Typedefs

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

Functions

void MayaFlux::Portal::System::Dialog::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 >
MayaFlux::Portal::System::Dialog::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 MayaFlux::Portal::System::Dialog::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 >
MayaFlux::Portal::System::Dialog::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.