#include </home/zeitlin/src/wx/github/interface/wx/filectrl.h>
A file control event holds information about events associated with wxFileCtrl objects.
The following event handler macros redirect the events to member function handlers 'func' with prototypes like:
Event macros:
Public Member Functions | |
wxFileCtrlEvent (wxEventType type, wxObject *evtObject, int id) | |
Constructor. | |
wxString | GetDirectory () const |
Returns the current directory. | |
wxString | GetFile () const |
Returns the file selected (assuming it is only one file). | |
wxArrayString | GetFiles () const |
Returns the files selected. | |
int | GetFilterIndex () const |
Returns the current file filter index. | |
void | SetFiles (const wxArrayString &files) |
Sets the files changed by this event. | |
void | SetDirectory (const wxString &directory) |
Sets the directory of this event. | |
void | SetFilterIndex (int index) |
Sets the filter index changed by this event. |
wxFileCtrlEvent::wxFileCtrlEvent | ( | wxEventType | type, |
wxObject * | evtObject, | ||
int | id | ||
) |
Constructor.
wxString wxFileCtrlEvent::GetDirectory | ( | ) | const |
Returns the current directory.
In case of a EVT_FILECTRL_FOLDERCHANGED, this method returns the new directory.
wxString wxFileCtrlEvent::GetFile | ( | ) | const |
Returns the file selected (assuming it is only one file).
wxArrayString wxFileCtrlEvent::GetFiles | ( | ) | const |
Returns the files selected.
In case of a EVT_FILECTRL_SELECTIONCHANGED, this method returns the files selected after the event.
int wxFileCtrlEvent::GetFilterIndex | ( | ) | const |
Returns the current file filter index.
For a EVT_FILECTRL_FILTERCHANGED event, this method returns the new file filter index.
void wxFileCtrlEvent::SetDirectory | ( | const wxString & | directory | ) |
Sets the directory of this event.
void wxFileCtrlEvent::SetFiles | ( | const wxArrayString & | files | ) |
Sets the files changed by this event.
void wxFileCtrlEvent::SetFilterIndex | ( | int | index | ) |
Sets the filter index changed by this event.