MeshLib Documentation
Loading...
Searching...
No Matches
MR::FileDialogSignals Struct Reference

This structure contains global signals for file dialogs, that are called on valid selection of file or folder. More...

#include <MRFileDialog.h>

Public Types

using SelectFileSignal = Signal<void( const std::filesystem::path& path )>
 
using SelectFilesSignal = Signal<void( const std::vector<std::filesystem::path>& )>
 
using SelectFolderSignal = SelectFileSignal
 
using SelectFoldersSignal = SelectFilesSignal
 

Static Public Member Functions

static MRVIEWER_API FileDialogSignalsinstance ()
 returns instance of this holder
 

Public Attributes

SelectFileSignal onOpenFile
 called when one file is selected for opening (openFileDialog and openFileDialogAsync)
 
SelectFilesSignal onOpenFiles
 called when several files are selected for opening (openFilesDialog and openFilesDialogAsync)
 
SelectFileSignal onSaveFile
 called when file name is selected for saving (saveFileDialog and saveFileDialogAsync)
 
SelectFolderSignal onSelectFolder
 called when one folder is selected (we do not now differ reason)(openFolderDialog and openFolderDialogAsync)
 
SelectFoldersSignal onSelectFolders
 called when several folders are selected (we do not now differ reason)(openFoldersDialog)
 

Detailed Description

This structure contains global signals for file dialogs, that are called on valid selection of file or folder.

Member Typedef Documentation

◆ SelectFileSignal

using MR::FileDialogSignals::SelectFileSignal = Signal<void( const std::filesystem::path& path )>

◆ SelectFilesSignal

using MR::FileDialogSignals::SelectFilesSignal = Signal<void( const std::vector<std::filesystem::path>& )>

◆ SelectFolderSignal

◆ SelectFoldersSignal

Member Function Documentation

◆ instance()

static MRVIEWER_API FileDialogSignals & MR::FileDialogSignals::instance ( )
static

returns instance of this holder

Member Data Documentation

◆ onOpenFile

SelectFileSignal MR::FileDialogSignals::onOpenFile

called when one file is selected for opening (openFileDialog and openFileDialogAsync)

◆ onOpenFiles

SelectFilesSignal MR::FileDialogSignals::onOpenFiles

called when several files are selected for opening (openFilesDialog and openFilesDialogAsync)

◆ onSaveFile

SelectFileSignal MR::FileDialogSignals::onSaveFile

called when file name is selected for saving (saveFileDialog and saveFileDialogAsync)

◆ onSelectFolder

SelectFolderSignal MR::FileDialogSignals::onSelectFolder

called when one folder is selected (we do not now differ reason)(openFolderDialog and openFolderDialogAsync)

◆ onSelectFolders

SelectFoldersSignal MR::FileDialogSignals::onSelectFolders

called when several folders are selected (we do not now differ reason)(openFoldersDialog)


The documentation for this struct was generated from the following file: