]> git.saurik.com Git - wxWidgets.git/commitdiff
collection macro also for XTI_TEMPLATE_FIX
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 13 Aug 2003 17:56:14 +0000 (17:56 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 13 Aug 2003 17:56:14 +0000 (17:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/xti.h

index 03274ef4f3576dfe563df91c6ea2d7170292cbdd..75b4c8215175449776de8879922ca8a544a32df1 100644 (file)
@@ -840,6 +840,10 @@ private :
        static wxPropertyAccessorT<class_t , type> _accessor##name( &setter , &getter , #setter , #getter ) ; \
        static wxPropertyInfo _propertyInfo##name( first , #name , wxGetTypeInfo( (type*) NULL ) ,&_accessor##name , wxxVariant(defaultValue) ) ;
 
+#define WX_PROPERTY_COLLECTION( name , colltype , addelemtype , adder , getter ) \
+       static wxPropertyCollectionAccessorT<class_t , colltype , addelemtype > _accessor##name( &adder , &getter , #adder , #getter ) ; \
+       static wxPropertyInfo _propertyInfo##name( first , #name , wxGetTypeInfo( (colltype*) NULL ) ,wxGetTypeInfo( (addelemtype*) NULL ) ,&_accessor##name ) ;
+
 #define WX_PROPERTY_SET_RET_BOOL( name , type , setter , getter ,defaultValue ) \
        static wxPropertyAccessorT<class_t , type> _accessor##name( (wxPropertyAccessor::SetRetBool*)NULL , &setter , &getter , #setter , #getter ) ; \
        static wxPropertyInfo _propertyInfo##name( first , #name , wxGetTypeInfo( (type*) NULL ) ,&_accessor##name , wxxVariant(defaultValue) ) ;