FileDialogDelegate

It is possible to override or customize the file dialog in some cases. These members provide those hooks: you do fileDialogDelegate = new YourSubclassOf_FileDialogDelegate; and you can do your own thing.

This is a customization hook and you should not call methods on this class directly. Use the public functions getOpenFileName and getSaveFileName, or make an automatic dialog with FileName instead.

Members

Classes

PreviewWidget
class PreviewWidget

Functions

getFileName
void getFileName(Window owner, bool openOrSave, void delegate(string) onOK, string prefilledName, string[] filters, void delegate() onCancel, string initialDirectory)

Override this to change the dialog entirely.

makePreviewWidget
PreviewWidget makePreviewWidget(Widget parent)

Override this to add preview capabilities to the dialog for certain files.

Meta

History

Added January 1, 2025