rename wxDECLARE_LOCAL_EVENT to just wxDECLARE_EVENT

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-02-07 15:29:29 +00:00
parent 3e083d652d
commit 1afe8c8307
3 changed files with 4 additions and 4 deletions

View File

@@ -123,7 +123,7 @@ extern WXDLLIMPEXP_BASE wxEventType wxNewEventType();
// Declare a local (not exported) wxEventType-based event type: // Declare a local (not exported) wxEventType-based event type:
#define wxDECLARE_LOCAL_EVENT( name, type ) \ #define wxDECLARE__EVENT( name, type ) \
wxDECLARE_EXPORTED_EVENT( wxEMPTY_PARAMETER_VALUE, name, type ) wxDECLARE_EXPORTED_EVENT( wxEMPTY_PARAMETER_VALUE, name, type )
// Try to cast the given event handler to the correct handler type: // Try to cast the given event handler to the correct handler type:
@@ -152,7 +152,7 @@ extern WXDLLIMPEXP_BASE wxEventType wxNewEventType();
// Declare a local (not exported) templatized event type: // Declare a local (not exported) templatized event type:
#define wxDECLARE_LOCAL_EVENT( name, type ) \ #define wxDECLARE__EVENT( name, type ) \
wxDECLARE_EXPORTED_EVENT( wxEMPTY_PARAMETER_VALUE, name, type ) wxDECLARE_EXPORTED_EVENT( wxEMPTY_PARAMETER_VALUE, name, type )
// Don't cast the given event handler so that wxEvtHandler::Connect() sees // Don't cast the given event handler so that wxEvtHandler::Connect() sees

View File

@@ -35,7 +35,7 @@
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// define a custom event type (we don't need a separate declaration here but // define a custom event type (we don't need a separate declaration here but
// usually you would use a matching wxDECLARE_LOCAL_EVENT in a header) // usually you would use a matching wxDECLARE_EVENT in a header)
wxDEFINE_EVENT(wxEVT_MY_CUSTOM_COMMAND, wxCommandEvent) wxDEFINE_EVENT(wxEVT_MY_CUSTOM_COMMAND, wxCommandEvent)
// it may also be convenient to define an event table macro for this event type // it may also be convenient to define an event table macro for this event type

View File

@@ -46,7 +46,7 @@ public:
typedef void (wxEvtHandler::*wxSoundBackendSDLNotificationFunction) typedef void (wxEvtHandler::*wxSoundBackendSDLNotificationFunction)
(wxSoundBackendSDLNotification&); (wxSoundBackendSDLNotification&);
wxDECLARE_LOCAL_EVENT( wxEVT_SOUND_BACKEND_SDL_NOTIFICATION, wxSoundBackendSDLNotification ) wxDECLARE_EVENT( wxEVT_SOUND_BACKEND_SDL_NOTIFICATION, wxSoundBackendSDLNotification )
#define EVT_SOUND_BACKEND_SDL_NOTIFICATON(func) \ #define EVT_SOUND_BACKEND_SDL_NOTIFICATON(func) \
DECLARE_EVENT_TABLE_ENTRY(wxEVT_SOUND_BACKEND_SDL_NOTIFICATION, \ DECLARE_EVENT_TABLE_ENTRY(wxEVT_SOUND_BACKEND_SDL_NOTIFICATION, \