X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode.h;h=830cd304024834c48360b084093512674968f56c;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=8a1552e792c5e6b14db2bf25fad14560ac784ee9;hpb=c318e91118d00d944b39c88eb6a34f6c6a89489e;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode.h b/synfig-core/src/synfig/valuenode.h index 8a1552e..830cd30 100644 --- a/synfig-core/src/synfig/valuenode.h +++ b/synfig-core/src/synfig/valuenode.h @@ -370,7 +370,7 @@ protected: public: //! Returns the number of linked Value Nodes - virtual int link_count()const=0; + virtual int link_count()const; //! Returns the local name of the 'i' linked Value Node virtual String link_local_name(int i)const; @@ -396,10 +396,12 @@ public: //! Return a full description of the linked ValueNode given by the index String get_description(int index = -1, bool show_exported_name = true)const; - //! Gets the parameter vocabulary for linkable value nodes - virtual Vocab get_param_vocab()const=0; + //! Gets the children vocabulary for linkable value nodes + virtual Vocab get_children_vocab()const; protected: + //! Member to store the children vocabulary + Vocab children_vocab; //! Sets the type of the ValueNode void set_type(ValueBase::Type t) { ValueNode::set_type(t); } @@ -411,6 +413,12 @@ protected: //! Returns the cached times values for all the children (linked Value Nodes) virtual void get_times_vfunc(Node::time_set &set) const; + + //! Pure Virtual member to get the children vocabulary + virtual Vocab get_children_vocab_vfunc()const=0; + + //! Virtual memebr to set the children vocabulary to a given value + virtual void set_children_vocab(Vocab& rvocab); }; // END of class LinkableValueNode /*! \class ValueNodeList