52 #ifndef __PCL_FileDialog_h
53 #define __PCL_FileDialog_h
68 class FileDialogPrivate;
69 class OpenFileDialogPrivate;
70 class SaveFileDialogPrivate;
71 class GetDirectoryDialogPrivate;
100 SetDescription( description );
101 AddExtensions( extensions );
110 SetDescription( description );
111 AddExtension( extension );
132 return m_description;
141 m_description = description.Trimmed();
164 for (
const String& extension : extensions )
165 AddExtension( extension );
178 String MakeAPIFilter()
const;
180 friend class FileDialogPrivate;
379 EnableMultipleSelections( !disable );
473 EnableOverwritePrompt( !disable );
Abstract base class of PCL file dialogs.
const filter_list & Filters() const
String InitialPath() const
void SetFilters(const filter_list &filters)
void SetCaption(const String &caption)
void AddFilters(const filter_list &filters)
void AddFilter(const FileFilter &filter)
String SelectedFileExtension() const
void SetSelectedFileExtension(const String &)
void SetInitialPath(const String &path)
void SetFilter(const FileFilter &filter)
A description of a file type and its associated file extensions.
String Description() const
void AddExtension(const String &extension)
const StringList & Extensions() const
FileFilter(const String &description, const String &extension)
void SetDescription(const String &description)
FileFilter(const FileFilter &x)=default
void AddExtensions(const StringList &extensions)
FileFilter(const String &description, const StringList extensions)
A modal dialog box to select an existing directory.
~GetDirectoryDialog() override
A modal dialog box to select one or more existing files.
~OpenFileDialog() override
bool AllowsMultipleSelections() const
const StringList & FileNames() const
void EnableMultipleSelections(bool enable=true)
void DisableMultipleSelections(bool disable=true)
A modal dialog box to select a single file name for output.
void EnableOverwritePrompt(bool enable=true)
bool IsOverwritePromptEnabled() const
void DisableOverwritePrompt(bool disable=true)
~SaveFileDialog() override