X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode.h;h=d0daf7827aeee3deda6e5e0a988845d320f1379f;hb=8eed22b9657ac7cb1881eab5c7b5c3d1f0c69468;hp=379b3f0346b1088e23373c38a931c0029e339368;hpb=a9ab75e829a34cbdc8e996b24305943923b63298;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode.h b/synfig-core/src/synfig/valuenode.h index 379b3f0..d0daf78 100644 --- a/synfig-core/src/synfig/valuenode.h +++ b/synfig-core/src/synfig/valuenode.h @@ -39,6 +39,7 @@ #include #include "guid.h" #include +#include "paramdesc.h" #include "node.h" @@ -77,6 +78,7 @@ namespace synfig { class Canvas; class LinkableValueNode; class Layer; +class ParamVocab; /*! \class ValueNode ** \brief Base class for all Value Nodes @@ -335,6 +337,8 @@ public: */ typedef std::map Book; + typedef ParamVocab Vocab; + static Book& book(); //! Creates a Linkable Value Node based on the name and the returned @@ -389,6 +393,9 @@ 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; + protected: //! Sets the type of the ValueNode void set_type(ValueBase::Type t) { ValueNode::set_type(t); }