#include <CEGUICommonFileDialog.h>
Public Member Functions | |
CommonFileDialogInput (const uint uHandle=0, const String szFileName="", const String szFilter=EXTENSION_PRESENTATION_DEFAULT, const String szDefaultExtension=EXTENSION_ALL, const String szTitle="", bool bOpenFileDialog=true, bool bDoPrompt=true, const String szPromptText="") | |
virtual | ~CommonFileDialogInput (void) |
uint | getHandle (void) |
String | getFileName (void) |
String | getFilter (void) |
String | getDefaultExtension (void) |
String | getTitle (void) |
bool | getOpenFileDialog (void) |
bool | getDoPrompt (void) |
String | getPromptText (void) |
void | setHandle (const uint) |
void | setFileName (const String) |
void | setFilter (const String) |
void | setDefaultExtension (const String) |
void | setTitle (const String) |
void | setOpenFileDialog (const bool) |
void | setDoPrompt (const bool) |
void | setPromptText (const String) |
Private Attributes | |
uint | _uHandle |
String | _szFilter |
String | _szDefaultExtension |
String | _szFileName |
String | _szTitle |
bool | _bOpenFileDialog |
bool | _bDoPrompt |
String | _szPromptText |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TRUE for FileLoad, FALSE for FileSaveAs Default: TRUE |
|
Title of the window. Default title is "Load" in case _bOpenFileDialog is TRUE Default title is "Save as" in case _bOpenFileDialog is FALSE |
|
Filter for allowed extensions Default: "All files|*.*|" The filter is build according to the windows common file dialog filter string. An example: The filter "HTML Files (*.htm)|*.htm|Active Server Pages (*.asp)|*.asp|Perl Script (*.pl)|*.pl|All files|*.*|" (don't forget the last | or otherwise the last element will not be parsed) produces a list that looks like this in the combobox: HTML Files (*.htm) Active Server Pages (*.asp) Perl Script (*.pl) All files |
|
Default Extension Default: *.* |
|
Handle, that is supplied by the calling function. This handle serves as an identifier that determines the 'caller'. It will be added to the output object 'CommonFileDialogOutput' after the Ok button in the CommonFileDialog has been pressen, so the triggered function (registered by means of ´subscribe´) is able to identify who has originally called the dialog. Default: 0 (no handle) |
|
TRUE for prompting (are you sure?), FALSE for non-prompting Default: TRUE Define text in the prompt window Default for Load: "Cannot find the requested file." Default for Save: "The file already exist. Replace it?" |
|
Filename Default: "" (no filename) |
|
|