]> git.saurik.com Git - wxWidgets.git/commitdiff
fix the new wxThreadEvent class adopting the new type-safe conventions for event...
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Wed, 4 Feb 2009 17:49:22 +0000 (17:49 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Wed, 4 Feb 2009 17:49:22 +0000 (17:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/event.h
src/common/event.cpp

index b92e213cd6a10248dd67cb38ac21157d0ab48be1..029719fb26948eb744b4d379eefa2f1f3bba2716 100644 (file)
@@ -114,7 +114,7 @@ extern WXDLLIMPEXP_BASE wxEventType wxNewEventType();
     // Define/Declare a wxEventType-based event type and initialize it with a
     // predefined event type. (Only used for wxEVT_SPIN_XXX for backward
     // compatibility)
+
     #define wxDEFINE_EVENT_ALIAS( name, type, value ) \
         const wxEventType name = value;
 
@@ -133,7 +133,7 @@ extern WXDLLIMPEXP_BASE wxEventType wxNewEventType();
 #else
     // Define/Declare a templatized event type with the corresponding event as
     // a nested typedef:
+
     #define wxDEFINE_EVENT( name, type ) \
         const wxEventTypeTag< type > name( wxNewEventType() );
 
@@ -516,6 +516,7 @@ extern WXDLLIMPEXP_BASE const wxEventType wxEVT_USER_FIRST;
 
     // Need events declared to do this
 class WXDLLIMPEXP_FWD_CORE wxCommandEvent;
+class WXDLLIMPEXP_FWD_CORE wxThreadEvent;
 class WXDLLIMPEXP_FWD_CORE wxMouseEvent;
 class WXDLLIMPEXP_FWD_CORE wxFocusEvent;
 class WXDLLIMPEXP_FWD_CORE wxChildFocusEvent;
@@ -575,7 +576,7 @@ wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_COMMAND_TOOL_DROPDOWN_CLICKED,
 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_COMMAND_TOOL_ENTER, wxCommandEvent)
 
     // Thread events
-wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_COMMAND_THREAD, wxCommandEvent)
+wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_COMMAND_THREAD, wxThreadEvent)
 
     // Mouse event types
 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_LEFT_DOWN, wxMouseEvent)
index 13adaf0aaa2027011b15f9e7ceb12a18a37aee50..6aff4544f459f6e0ddb8979a2538e8f00a76b8a7 100644 (file)
@@ -319,7 +319,7 @@ wxDEFINE_EVENT( wxEVT_HELP, wxHelpEvent )
 wxDEFINE_EVENT( wxEVT_DETAILED_HELP, wxHelpEvent )
 
 // Thread event
-DEFINE_EVENT_TYPE(wxEVT_COMMAND_THREAD)
+wxDEFINE_EVENT( wxEVT_COMMAND_THREAD, wxThreadEvent )
 
 #endif // wxUSE_GUI