nodebase.h

Go to the documentation of this file.
00001 
00002  
00003  
00004 
00005 
00006 
00007 
00008 
00009 
00010 /* === S Y N F I G ========================================================= */
00030 /* ========================================================================= */
00031 
00032 /* === S T A R T =========================================================== */
00033 
00034 #ifndef __SYNFIG_NODEBASE_H
00035 #define __SYNFIG_NODEBASE_H
00036 
00037 /* === H E A D E R S ======================================================= */
00038 
00039 #include "../protocol.h"
00040 #include "../string.h"
00041 #include "../guid.h"
00042 #include <sigc++/slot.h>
00043 
00044 /* === M A C R O S ========================================================= */
00045 
00046 /* === T Y P E D E F S ===================================================== */
00047 
00048 /* === C L A S S E S & S T R U C T S ======================================= */
00049 
00050 namespace synfig {
00051 namespace Proto {
00052 
00053 typedef int Query;
00054 typedef int NodeList;
00055 
00056 class NodeBase : public Protocol
00057 {
00058 public:
00059 
00060     
00061     sigc::slot< GUID > _slot_get_guid_const;
00062     GUID get_guid()const {
00063         return _slot_get_guid_const();
00064     }
00065 
00066 
00067     sigc::slot< void, GUID > _slot_set_guid;
00068     void set_guid(GUID v1) {
00069         return _slot_set_guid(v1);
00070     }
00071 
00072 
00073 
00074     
00075     sigc::slot< float, int,int > _slot_func_test;
00076     float func_test(int v1, int v2) {
00077         return _slot_func_test(v1, v2);
00078     }
00079 
00080 
00081     
00082     sigc::slot< String > _slot_get_id_const;
00083     String get_id()const {
00084         return _slot_get_id_const();
00085     }
00086 
00087 
00088     sigc::slot< void, String > _slot_set_id;
00089     void set_id(String v1) {
00090         return _slot_set_id(v1);
00091     }
00092 
00093 
00094 
00095     
00096     sigc::slot< NodeHandle > _slot_get_root_const;
00097     NodeHandle get_root()const {
00098         return _slot_get_root_const();
00099     }
00100 
00101 
00102     sigc::slot< void, NodeHandle > _slot_set_root;
00103     void set_root(NodeHandle v1) {
00104         return _slot_set_root(v1);
00105     }
00106 
00107 
00108 
00109     
00110     sigc::slot< sigc::signal<void> > _slot_signal_changed;
00111     sigc::signal<void> signal_changed() {
00112         return _slot_signal_changed();
00113     }
00114 
00115     
00116     sigc::slot< sigc::signal<void> > _slot_signal_deleted;
00117     sigc::signal<void> signal_deleted() {
00118         return _slot_signal_deleted();
00119     }
00120 
00121         
00122     
00123     sigc::slot< const NodeList > _slot_get_parents_const;
00124     const NodeList get_parents()const {
00125         return _slot_get_parents_const();
00126     }
00127 
00128     
00129     sigc::slot< const NodeList > _slot_get_children_const;
00130     const NodeList get_children()const {
00131         return _slot_get_children_const();
00132     }
00133 
00134 
00135     
00136     sigc::slot< NodeList, Query > _slot_query_children;
00137     NodeList query_children(Query v1) {
00138         return _slot_query_children(v1);
00139     }
00140 
00141 
00142 }; // END of class Proto::NodeBase
00143 
00144 }; // END of namespace Proto
00145 }; // END of namespace synfig
00146 
00147 /* === E N D =============================================================== */
00148 
00149 #endif

Generated on Wed Dec 12 03:11:41 2007 for synfig by  doxygen 1.5.4