Create UI for choosing a file.
Consists of a text field, an optional preview image, browse button, reload button and a label indicating time/date the file was imported.
UI will look something like the following:
+------------------------------------+ +------+ +---------+ | Field | |Browse| | | +------------------------------------+ +------+ | Preview | Import Date +----------+ +--------+ | | | Custom | | Reload | | | +----------+ +--------+ +---------+
If want to size or layout the controls differently then override the DoLayout() method.
The Custom button requires the user to set the title for the button as well as the callback for the EVT_BUTTON
Public Member Functions |
|
__init__ () | |
GetBrowser () | |
GetDate () | |
GetCustomButton () | |
GetReloadButton () | |
GetEditButton () | |
GetPreview () | |
GetFieldSize () | |
GetPreviewSize () | |
DoLayout () | |
This method is responsible for laying out
the controls in this component. |
|
DoSetDateFont () | |
SetCopyWorking () | |
GetCopyWorking () | |
GetFileInfo () | |
SetUseOverridePreviewImage () | |
SetFileChangeCallback () | |
The FileChangeCallback will be called when
the file has changed. |
|
DoFileChangeCallback () | |
OnCustom () | |
OnReload () | |
OnEdit () | |
OnFileChange () | |
Enable () | |
UpdatePreviewImage () | |
SetTextEditable () | |
IsTextEditable () | |
SetValue () | |
GetValue () | |
SetChangeCallback () | |
SetFileValidator () |
UiUtilities.FileUi.__init__ | ( | ) |
Reimplemented from UiUtilities.UiComponent_.
UiUtilities.FileUi.GetBrowser | ( | ) |
UiUtilities.FileUi.GetDate | ( | ) |
UiUtilities.FileUi.GetCustomButton | ( | ) |
UiUtilities.FileUi.GetReloadButton | ( | ) |
UiUtilities.FileUi.GetEditButton | ( | ) |
UiUtilities.FileUi.GetPreview | ( | ) |
UiUtilities.FileUi.GetFieldSize | ( | ) |
UiUtilities.FileUi.GetPreviewSize | ( | ) |
UiUtilities.FileUi.DoLayout | ( | ) |
This method is responsible for laying out the controls in this component.
Override this method if you want a different layout.
UiUtilities.FileUi.DoSetDateFont | ( | ) |
UiUtilities.FileUi.SetCopyWorking | ( | ) |
UiUtilities.FileUi.GetCopyWorking | ( | ) |
UiUtilities.FileUi.GetFileInfo | ( | ) |
UiUtilities.FileUi.SetUseOverridePreviewImage | ( | ) |
UiUtilities.FileUi.SetFileChangeCallback | ( | ) |
The FileChangeCallback will be called when the file has changed.
UiUtilities.FileUi.DoFileChangeCallback | ( | ) |
UiUtilities.FileUi.OnCustom | ( | ) |
UiUtilities.FileUi.OnReload | ( | ) |
UiUtilities.FileUi.OnEdit | ( | ) |
UiUtilities.FileUi.OnFileChange | ( | ) |
UiUtilities.FileUi.Enable | ( | ) |
UiUtilities.FileUi.UpdatePreviewImage | ( | ) |
UiUtilities.FileUi.SetTextEditable | ( | ) |
UiUtilities.FileUi.IsTextEditable | ( | ) |
UiUtilities.FileUi.SetValue | ( | ) |
UiUtilities.FileUi.GetValue | ( | ) |
UiUtilities.FileUi.SetChangeCallback | ( | ) |
UiUtilities.FileUi.SetFileValidator | ( | ) |