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:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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, \
|
||||||
|
Reference in New Issue
Block a user