FileDialog

Pops up a dialog box for the user to select a color.

Constructors

this
this(Window parent, string title)

Construct the dialog.

this
this(string title)

Construct the dialog.

Members

Functions

addFileType
auto addFileType(string fileType)

Add an allowed file type. If a filetype combobox exists in the file dialog on the particular platform, this adds entries to it. When the user choose a filetype in the combobox, only the files of that type are listed. If no types are added or if the filetypes combobox is not supported by the particular platform then all files are listed regardless of their types.

setDefaultExtension
auto setDefaultExtension(string extension)

Set the default extension.

setInitialDirectory
auto setInitialDirectory(string directory)

Set the initial directory in the dialog.

setInitialFile
auto setInitialFile(string file)

Set the initial file in the dialog.

Variables

_defaultExtension
string _defaultExtension;
Undocumented in source.
_fileTypes
string[] _fileTypes;
Undocumented in source.
_initialDirectory
string _initialDirectory;
Undocumented in source.
_initialFile
string _initialFile;
Undocumented in source.
_typeVariable
string _typeVariable;
Undocumented in source.

Inherited Members

From Dialog

_parent
Window _parent;
Undocumented in source.
_title
string _title;
Undocumented in source.
_results
string[] _results;
Undocumented in source.
getResult
string getResult()

Get the dialog result. This varies on the type of dialog used and will reflect the overall result expected of each dialog.

removeBracesFromResults
void removeBracesFromResults()

Remove any leading or trailing braces.

show
auto show()

Show the dialog.

See Also

Meta