]> git.saurik.com Git - wxWidgets.git/commitdiff
added range of types for delegate type info
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 27 Aug 2003 17:02:51 +0000 (17:02 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 27 Aug 2003 17:02:51 +0000 (17:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/xti.h

index 6d46979227d59d0a3f831249dd5c58b2e1361434..35ea60033dd48120a84c792c603ed2b25d389263 100644 (file)
@@ -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<typename T> 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
 //