X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/85ee624151a25f7e765cf08335151217414548c4..0ce52f3d4eb9e5f915b9f48a8185431edb14c647:/include/wx/event.h diff --git a/include/wx/event.h b/include/wx/event.h index 25c5ee4985..bbd046aada 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -99,6 +99,7 @@ extern WXDLLIMPEXP_CORE const wxEventType wxEVT_COMMAND_TOOL_RCLICKED; extern WXDLLIMPEXP_CORE const wxEventType wxEVT_COMMAND_TOOL_DROPDOWN_CLICKED; extern WXDLLIMPEXP_CORE const wxEventType wxEVT_COMMAND_TOOL_ENTER; extern WXDLLIMPEXP_CORE const wxEventType wxEVT_COMMAND_SPINCTRL_UPDATED; +extern WXDLLIMPEXP_CORE const wxEventType wxEVT_COMMAND_SPINCTRLDOUBLE_UPDATED; // Sockets and timers send events, too extern WXDLLIMPEXP_BASE const wxEventType wxEVT_SOCKET; @@ -2258,7 +2259,10 @@ protected: // wxEvtHandler: the base class for all objects handling wxWidgets events // ---------------------------------------------------------------------------- -class WXDLLIMPEXP_BASE wxEvtHandler : public wxObject, public wxTrackable +class WXDLLIMPEXP_BASE wxEvtHandler : public wxObject +#if wxUSE_WEAKREF + , public wxTrackable +#endif { public: wxEvtHandler(); @@ -2358,7 +2362,9 @@ public: // Avoid problems at exit by cleaning up static hash table gracefully void ClearEventHashTable() { GetEventHashTable().Clear(); } +#if wxUSE_WEAKREF void OnSinkDestroyed( wxEvtHandler *sink ); +#endif private: static const wxEventTableEntry sm_eventTableEntries[]; @@ -2425,13 +2431,16 @@ protected: virtual void DoSetClientData( void *data ); virtual void *DoGetClientData() const; +#if wxUSE_WEAKREF // Search tracker objects for event connection with this sink wxEventConnectionRef *FindRefInTrackerList(wxEvtHandler *eventSink); +#endif private: DECLARE_DYNAMIC_CLASS_NO_COPY(wxEvtHandler) }; +#if wxUSE_WEAKREF // ---------------------------------------------------------------------------- // wxEventConnectionRef represents all connections between two event handlers // and enables automatic disconnect when an event handler sink goes out of @@ -2480,6 +2489,7 @@ private: DECLARE_NO_ASSIGN_CLASS(wxEventConnectionRef) }; +#endif // wxUSE_WEAKREF // Post a message to the given eventhandler which will be processed during the // next event loop iteration