1 #if 0                           // this file is not used 
   26 #ifndef __SYNFIG_NODEBASE_H 
   27 #define __SYNFIG_NODEBASE_H 
   34 #include <sigc++/slot.h> 
   38 #define PX_DEFINE_DATA(name,type) \ 
   39     PX_DEFINE_FUNC_CONST0(get_##name, type) \ 
   40     PX_DEFINE_FUNC1(set_##name, void, type) 
   42 #define PX_DEFINE_FUNC0(name,ret) \ 
   43     sigc::slot< ret > _slot_##name; \ 
   45         return _slot_##name(); \ 
   48 #define PX_DEFINE_FUNC1(name,ret,type) \ 
   49     sigc::slot< ret, type > _slot_##name; \ 
   51         return _slot_##name(v1); \ 
   53 #define PX_DEFINE_FUNC2(name,ret,type1,type2) \ 
   54     sigc::slot< ret, type1, type2 > _slot_##name; \ 
   55     ret name(type1 v1, type2 v2) { \ 
   56         return _slot_##name(v1,v2); \ 
   58 #define PX_DEFINE_FUNC_CONST0(name,ret) \ 
   59     sigc::slot< ret > _slot_##name##_const; \ 
   61         return _slot_##name##_const(); \ 
   74 class NodeBase : 
public Protocol
 
   78     PX_DEFINE_DATA(guid, GUID)
 
   80     PX_DEFINE_FUNC2(func_test, 
float, 
int, 
int)
 
   86     PX_DEFINE_FUNC0(signal_changed, sigc::signal<
void>)
 
   87     PX_DEFINE_FUNC0(signal_deleted, sigc::signal<
void>)
 
   89     PX_DEFINE_FUNC_CONST0(get_parents, NodeList)
 
   90     PX_DEFINE_FUNC_CONST0(get_children, NodeList)
 
   92     PX_DEFINE_FUNC1(query_children, NodeList, Query)