Provide shorter synonyms for wxEVT_XXX constants.

Use the same short names as are used by the event table macros for the event
type constants themselves. This makes them much more comfortable to use, e.g.
Bind(wxEVT_BUTTON) compared to Bind(wxEVT_COMMAND_BUTTON_CLICKED).

The old long names are still kept for backwards compatibility and shouldn't be
removed as it doesn't really cost anything to continue providing them, but all
new event types should only use the short versions.

Closes #10661.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-04-25 10:11:03 +00:00
parent 3f7564f229
commit ce7fe42e84
405 changed files with 2703 additions and 2409 deletions

View File

@@ -219,7 +219,7 @@ extern const wxTreeListItem wxTLI_LAST;
@beginEventTable{wxTreeListEvent}
@event{EVT_TREELIST_SELECTION_CHANGED(id, func)}
Process @c wxEVT_COMMAND_TREELIST_SELECTION_CHANGED event and notifies
Process @c wxEVT_TREELIST_SELECTION_CHANGED event and notifies
about the selection change in the control. In the single selection case
the item indicated by the event has been selected and previously
selected item, if any, was deselected. In multiple selection case, the
@@ -228,26 +228,26 @@ extern const wxTreeListItem wxTLI_LAST;
could have changed as well, use wxTreeListCtrl::GetSelections() to
retrieve the new selection if necessary.
@event{EVT_TREELIST_ITEM_EXPANDING(id, func)}
Process @c wxEVT_COMMAND_TREELIST_ITEM_EXPANDING event notifying about
Process @c wxEVT_TREELIST_ITEM_EXPANDING event notifying about
the given branch being expanded. This event is sent before the
expansion occurs and can be vetoed to prevent it from happening.
@event{EVT_TREELIST_ITEM_EXPANDED(id, func)}
Process @c wxEVT_COMMAND_TREELIST_ITEM_EXPANDED event notifying about
Process @c wxEVT_TREELIST_ITEM_EXPANDED event notifying about
the expansion of the given branch. This event is sent after the
expansion occurs and can't be vetoed.
@event{EVT_TREELIST_ITEM_CHECKED(id, func)}
Process @c wxEVT_COMMAND_TREELIST_ITEM_CHECKED event notifying about
Process @c wxEVT_TREELIST_ITEM_CHECKED event notifying about
the user checking or unchecking the item. You can use
wxTreeListCtrl::GetCheckedState() to retrieve the new item state and
wxTreeListEvent::GetOldCheckedState() to get the previous one.
@event{EVT_TREELIST_ITEM_ACTIVATED(id, func)}
Process @c wxEVT_COMMAND_TREELIST_ITEM_ACTIVATED event notifying about
Process @c wxEVT_TREELIST_ITEM_ACTIVATED event notifying about
the user double clicking the item or activating it from keyboard.
@event{EVT_TREELIST_ITEM_CONTEXT_MENU(id, func)}
Process @c wxEVT_COMMAND_TREELIST_ITEM_CONTEXT_MENU event indicating
Process @c wxEVT_TREELIST_ITEM_CONTEXT_MENU event indicating
that the popup menu for the given item should be displayed.
@event{EVT_TREELIST_COLUMN_SORTED(id, func)}
Process @c wxEVT_COMMAND_TREELIST_COLUMN_SORTED event indicating that
Process @c wxEVT_TREELIST_COLUMN_SORTED event indicating that
the control contents has just been resorted using the specified column.
The event doesn't carry the sort direction, use GetSortColumn() method
if you need to know it.
@@ -909,7 +909,7 @@ public:
/**
Return the previous state of the item checkbox.
This method can be used with @c wxEVT_COMMAND_TREELIST_ITEM_CHECKED
This method can be used with @c wxEVT_TREELIST_ITEM_CHECKED
events only.
Notice that the new state of the item can be retrieved using
@@ -920,7 +920,7 @@ public:
/**
Return the column affected by the event.
This is currently only used with @c wxEVT_COMMAND_TREELIST_COLUMN_SORTED
This is currently only used with @c wxEVT_TREELIST_COLUMN_SORTED
event.
*/
unsigned GetColumn() const;
@@ -937,10 +937,10 @@ public:
wxEVENT_HANDLER_CAST(wxTreeListEventFunction, func)
wxEventType wxEVT_COMMAND_TREELIST_SELECTION_CHANGED;
wxEventType wxEVT_COMMAND_TREELIST_ITEM_EXPANDING;
wxEventType wxEVT_COMMAND_TREELIST_ITEM_EXPANDED;
wxEventType wxEVT_COMMAND_TREELIST_ITEM_CHECKED;
wxEventType wxEVT_COMMAND_TREELIST_ITEM_ACTIVATED;
wxEventType wxEVT_COMMAND_TREELIST_ITEM_CONTEXT_MENU;
wxEventType wxEVT_COMMAND_TREELIST_COLUMN_SORTED;
wxEventType wxEVT_TREELIST_SELECTION_CHANGED;
wxEventType wxEVT_TREELIST_ITEM_EXPANDING;
wxEventType wxEVT_TREELIST_ITEM_EXPANDED;
wxEventType wxEVT_TREELIST_ITEM_CHECKED;
wxEventType wxEVT_TREELIST_ITEM_ACTIVATED;
wxEventType wxEVT_TREELIST_ITEM_CONTEXT_MENU;
wxEventType wxEVT_TREELIST_COLUMN_SORTED;