FileDialogData

Engine/source/platform/nativeDialogs/fileDialog.h

More...

Public Types

enum
DialogStyle {
  FDS_OPEN = BIT(0)
  FDS_SAVE = BIT(1)
  FDS_OVERWRITEPROMPT = BIT(2)
  FDS_MUSTEXIST = BIT(3)
  FDS_MULTIPLEFILES = BIT(4)
  FDS_CHANGEPATH = BIT(5)
  FDS_BROWSEFOLDER = BIT(6)
}

Public Attributes

Default selected file of dialog.

Default path of dialog.

Should be referenced when dialogStyle MultipleFiles is NOT used: the file path of the user selected file.

List of Filters pipe separated e.g. "BMP Files (*.bmp)|*.bmp|JPG Files (*.jpg)|*.jpg".

FileDialogOpaqueData *

Stores platform specific info about the dialog.

Specifies the Style of the File Dialog.

Title to display in file dialog.

Public Functions

Detailed Description

Public Types

DialogStyle

Enumerator

FDS_OPEN = BIT(0)

This is an open dialog.

FDS_SAVE = BIT(1)

This is a save dialog.

FDS_OVERWRITEPROMPT = BIT(2)

Can only be used in conjunction with style SaveDialog: prompt for a confirmation if a file will be overwritten.

FDS_MUSTEXIST = BIT(3)

The user may only select files that actually exist.

FDS_MULTIPLEFILES = BIT(4)

Can only be used in conjunction with style OpenDialog: allows selecting multiple files.

FDS_CHANGEPATH = BIT(5)

Change the current working path to the directory where the file(s) chosen by the user are.

FDS_BROWSEFOLDER = BIT(6)

Select folders instead of files.

Public Attributes

StringTableEntry mDefaultFile 

Default selected file of dialog.

StringTableEntry mDefaultPath 

Default path of dialog.

StringTableEntry mFile 

Should be referenced when dialogStyle MultipleFiles is NOT used: the file path of the user selected file.

StringTableEntry mFilters 

List of Filters pipe separated e.g. "BMP Files (*.bmp)|*.bmp|JPG Files (*.jpg)|*.jpg".

FileDialogOpaqueData * mOpaqueData 

Stores platform specific info about the dialog.

U8 mStyle 

Specifies the Style of the File Dialog.

StringTableEntry mTitle 

Title to display in file dialog.

Public Functions

FileDialogData()

~FileDialogData()