From 6056c7c6f31de099172165ae97784e1a426c758e Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 13 Aug 2003 17:56:14 +0000 Subject: [PATCH] collection macro also for XTI_TEMPLATE_FIX git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/xti.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/wx/xti.h b/include/wx/xti.h index 03274ef4f3..75b4c82151 100644 --- a/include/wx/xti.h +++ b/include/wx/xti.h @@ -840,6 +840,10 @@ private : static wxPropertyAccessorT _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 _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 _accessor##name( (wxPropertyAccessor::SetRetBool*)NULL , &setter , &getter , #setter , #getter ) ; \ static wxPropertyInfo _propertyInfo##name( first , #name , wxGetTypeInfo( (type*) NULL ) ,&_accessor##name , wxxVariant(defaultValue) ) ; -- 2.45.2