Add "filter changed" event to wxFileCtrl.
Generate an event when the selection in the filter combobox of wxFileCtrl changes. Closes #12099. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -37,6 +37,9 @@
|
||||
The user changed the current selection(by selecting or deselecting a file)
|
||||
@event{EVT_FILECTRL_FOLDERCHANGED(id, func)}
|
||||
The current folder of the file control has been changed
|
||||
@event{EVT_FILECTRL_FILTERCHANGED(id, func)}
|
||||
The current file filter of the file control has been changed.
|
||||
@since 2.9.1
|
||||
@endEventTable
|
||||
|
||||
@library{wxbase}
|
||||
@@ -195,6 +198,8 @@ public:
|
||||
The user changed the current selection(by selecting or deselecting a file)
|
||||
@event{EVT_FILECTRL_FOLDERCHANGED(id, func)}
|
||||
The current folder of the file control has been changed
|
||||
@event{EVT_FILECTRL_FILTERCHANGED(id, func)}
|
||||
The current file filter of the file control has been changed
|
||||
@endEventTable
|
||||
|
||||
@library{wxbase}
|
||||
@@ -229,6 +234,16 @@ public:
|
||||
*/
|
||||
wxArrayString GetFiles() const;
|
||||
|
||||
/**
|
||||
Returns the current file filter index.
|
||||
|
||||
For a @b EVT_FILECTRL_FILTERCHANGED event, this method returns the new
|
||||
file filter index.
|
||||
|
||||
@since 2.9.1
|
||||
*/
|
||||
int GetFilterIndex() const;
|
||||
|
||||
/**
|
||||
Sets the files changed by this event.
|
||||
*/
|
||||
@@ -239,5 +254,12 @@ public:
|
||||
Sets the directory of this event.
|
||||
*/
|
||||
void SetDirectory( const wxString &directory );
|
||||
|
||||
/**
|
||||
Sets the filter index changed by this event.
|
||||
|
||||
@since 2.9.1
|
||||
*/
|
||||
void SetFilterIndex(int index);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user