From: Stefan Csomor Date: Wed, 27 Aug 2003 17:02:51 +0000 (+0000) Subject: added range of types for delegate type info X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4177a99c30a1f4ea6439d55f3284e0fa5f688cf8 added range of types for delegate type info git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/xti.h b/include/wx/xti.h index 6d46979227..35ea60033d 100644 --- a/include/wx/xti.h +++ b/include/wx/xti.h @@ -516,11 +516,14 @@ class WXDLLIMPEXP_BASE wxDelegateTypeInfo : public wxTypeInfo { public : wxDelegateTypeInfo( int eventType , wxClassInfo* eventClass , converterToString_t to = NULL , converterFromString_t from = NULL ) ; + wxDelegateTypeInfo( int eventType , int lastEventType, wxClassInfo* eventClass , converterToString_t to = NULL , converterFromString_t from = NULL ) ; int GetEventType() const { return m_eventType ; } + int GetLastEventType() const { return m_lastEventType ; } const wxClassInfo* GetEventClass() const { return m_eventClass ; } private : const wxClassInfo *m_eventClass; // (extended will merge into classinfo) int m_eventType ; + int m_lastEventType ; } ; template const wxTypeInfo* wxGetTypeInfo( T * ) { return wxTypeInfo::FindType(typeid(T).name()) ; } @@ -1133,6 +1136,10 @@ WX_DECLARE_STRING_HASH_MAP_WITH_DECL( wxPropertyInfo* , wxPropertyInfoMap , clas static wxDelegateTypeInfo _typeInfo##name( eventType , CLASSINFO( eventClass ) ) ; \ static wxPropertyInfo _propertyInfo##name( first ,class_t::GetClassInfoStatic() , wxT(#name) , &_typeInfo##name , NULL , wxxVariant() ) ; \ +#define WX_DELEGATE_RANGE( name , eventType , lastEventType , eventClass ) \ + static wxDelegateTypeInfo _typeInfo##name( eventType , lastEventType , CLASSINFO( eventClass ) ) ; \ + static wxPropertyInfo _propertyInfo##name( first , class_t::GetClassInfoStatic() , wxT(#name) , &_typeInfo##name , NULL , wxxVariant() ) ; \ + // ---------------------------------------------------------------------------- // Handler Info //