PCL
|
A modal dialog box to select a single file name for output. More...
#include <FileDialog.h>
Public Member Functions | |
SaveFileDialog () | |
~SaveFileDialog () override | |
void | DisableOverwritePrompt (bool disable=true) |
void | EnableOverwritePrompt (bool enable=true) |
bool | Execute () override |
String | FileName () const |
bool | IsOverwritePromptEnabled () const |
void | LoadImageFilters () |
Public Member Functions inherited from pcl::FileDialog | |
FileDialog () | |
virtual | ~FileDialog () |
void | AddFilter (const FileFilter &filter) |
void | AddFilters (const filter_list &filters) |
String | Caption () const |
filter_list & | Filters () |
const filter_list & | Filters () const |
String | InitialPath () const |
String | SelectedFileExtension () const |
void | SetCaption (const String &caption) |
void | SetFilter (const FileFilter &filter) |
void | SetFilters (const filter_list &filters) |
void | SetInitialPath (const String &path) |
void | SetSelectedFileExtension (const String &) |
Additional Inherited Members | |
Public Types inherited from pcl::FileDialog | |
using | filter_list = Array< FileFilter > |
Definition at line 420 of file FileDialog.h.
pcl::SaveFileDialog::SaveFileDialog | ( | ) |
Constructs a SaveFileDialog object
|
override |
Destroys a SaveFileDialog object
|
inline |
Disables or enables overwrite prompts for this dialog.
This is a convenience member function, equivalent to EnableOverwritePrompt( !disable )
Definition at line 471 of file FileDialog.h.
void pcl::SaveFileDialog::EnableOverwritePrompt | ( | bool | enable = true | ) |
Enables or disables overwrite prompts for this dialog.
|
overridevirtual |
Modal dialog execution.
Returns true if the dialog has been accepted; false if the dialog has been cancelled.
Implements pcl::FileDialog.
String pcl::SaveFileDialog::FileName | ( | ) | const |
Returns the selected file path. A full file path is always returned.
bool pcl::SaveFileDialog::IsOverwritePromptEnabled | ( | ) | const |
Returns true iff overwrite prompts are enabled for this dialog.
When overwrite prompts are enabled, the dialog will request confirmation if an existing file is selected.
void pcl::SaveFileDialog::LoadImageFilters | ( | ) |
Loads a set of file filters corresponding to all installed file formats that are able to write image files.
The set of file filters loaded by this function will depend on the file format modules currently installed on the PixInsight platform. Typically it will include formats like FITS, TIFF, JPEG, and JPEG2000. In the (improbable) event that no file format able to write files is installed on the platform, the filter set will be empty.