65MRVIEWER_API std::filesystem::path
openFolderDialog( std::filesystem::path baseFolder = {} );
69MRVIEWER_API
void openFolderDialogAsync( std::function<
void (
const std::filesystem::path& )> callback, std::filesystem::path baseFolder = {} );
73MRVIEWER_API std::vector<std::filesystem::path>
openFoldersDialog( std::filesystem::path baseFolder = {} );
std::vector< IOFilter > IOFilters
Definition MRIOFilters.h:32
Definition MRCameraOrientationPlugin.h:8
MRVIEWER_API std::filesystem::path openFileDialog(const FileParameters ¶ms={})
MRVIEWER_API std::vector< std::filesystem::path > openFoldersDialog(std::filesystem::path baseFolder={})
MRVIEWER_API void openFilesDialogAsync(std::function< void(const std::vector< std::filesystem::path > &)> callback, const FileParameters ¶ms={})
MRVIEWER_API std::filesystem::path saveFileDialog(const FileParameters ¶ms={})
MRVIEWER_API void openFileDialogAsync(std::function< void(const std::filesystem::path &)> callback, const FileParameters ¶ms={})
MRVIEWER_API std::filesystem::path openFolderDialog(std::filesystem::path baseFolder={})
MRVIEWER_API void openFolderDialogAsync(std::function< void(const std::filesystem::path &)> callback, std::filesystem::path baseFolder={})
MRVIEWER_API std::vector< std::filesystem::path > openFilesDialog(const FileParameters ¶ms={})
MRVIEWER_API void saveFileDialogAsync(std::function< void(const std::filesystem::path &)> callback, const FileParameters ¶ms={})
This structure contains global signals for file dialogs, that are called on valid selection of file o...
Definition MRFileDialog.h:13
SelectFileSignal onOpenFile
called when one file is selected for opening (openFileDialog and openFileDialogAsync)
Definition MRFileDialog.h:23
static MRVIEWER_API FileDialogSignals & instance()
returns instance of this holder
SelectFilesSignal onOpenFiles
called when several files are selected for opening (openFilesDialog and openFilesDialogAsync)
Definition MRFileDialog.h:24
SelectFileSignal onSaveFile
called when file name is selected for saving (saveFileDialog and saveFileDialogAsync)
Definition MRFileDialog.h:26
SelectFolderSignal onSelectFolder
called when one folder is selected (we do not now differ reason)(openFolderDialog and openFolderDialo...
Definition MRFileDialog.h:28
SelectFoldersSignal onSelectFolders
called when several folders are selected (we do not now differ reason)(openFoldersDialog)
Definition MRFileDialog.h:29
Definition MRFileDialog.h:38
std::string fileName
Definition MRFileDialog.h:40
std::filesystem::path baseFolder
Definition MRFileDialog.h:43
IOFilters filters
Definition MRFileDialog.h:44