68MRVIEWER_API std::filesystem::path
openFolderDialog( std::filesystem::path baseFolder = {} );
72MRVIEWER_API
void openFolderDialogAsync( std::function<
void (
const std::filesystem::path& )> callback, std::filesystem::path baseFolder = {} );
76MRVIEWER_API std::vector<std::filesystem::path>
openFoldersDialog( std::filesystem::path baseFolder = {} );
SelectFileSignal onOpenFile
called when one file is selected for opening (openFileDialog and openFileDialogAsync)
Definition MRFileDialog.h:26
MRVIEWER_API std::filesystem::path openFileDialog(const FileParameters ¶ms={})
MRVIEWER_API std::vector< std::filesystem::path > openFoldersDialog(std::filesystem::path baseFolder={})
std::string fileName
Default filename.
Definition MRFileDialog.h:43
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:27
MRVIEWER_API void openFilesDialogAsync(std::function< void(const std::vector< std::filesystem::path > &)> callback, const FileParameters ¶ms={})
bool multiselect
open dialog only
Definition MRFileDialog.h:91
std::filesystem::path baseFolder
Definition MRFileDialog.h:46
SelectFileSignal onSaveFile
called when file name is selected for saving (saveFileDialog and saveFileDialogAsync)
Definition MRFileDialog.h:29
MRVIEWER_API std::filesystem::path saveFileDialog(const FileParameters ¶ms={})
returns empty path on cancel
bool saveDialog
open dialog only
Definition MRFileDialog.h:92
MRVIEWER_API void openFileDialogAsync(std::function< void(const std::filesystem::path &)> callback, const FileParameters ¶ms={})
MRVIEWER_API std::filesystem::path getLastUsedDir()
SelectFolderSignal onSelectFolder
called when one folder is selected (we do not now differ reason)(openFolderDialog and openFolderDialo...
Definition MRFileDialog.h:31
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={})
bool folderDialog
Definition MRFileDialog.h:90
SelectFoldersSignal onSelectFolders
called when several folders are selected (we do not now differ reason)(openFoldersDialog)
Definition MRFileDialog.h:32
IOFilters filters
Definition MRFileDialog.h:47
MRVIEWER_API void setLastUsedDir(const std::filesystem::path &folder)
saves in the configuration the path to last used folder (where the files were last saved or open)
std::vector< IOFilter > IOFilters
Definition MRIOFilters.h:32
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
This structure contains global signals for file dialogs, that are called on valid selection of file o...
Definition MRFileDialog.h:16
Definition MRFileDialog.h:89
Definition MRFileDialog.h:41