Enable Parameter Description for Linkable Value Nodes using ParamDesc class.
[synfig.git] / synfig-core / src / synfig / valuenode_exp.cpp
index 4e41cc2..1a114bf 100644 (file)
@@ -175,3 +175,21 @@ ValueNode_Exp::check_type(ValueBase::Type type)
 {
        return type==ValueBase::TYPE_REAL;
 }
+
+LinkableValueNode::Vocab
+ValueNode_Exp::get_param_vocab()const
+{
+       LinkableValueNode::Vocab ret;
+
+       ret.push_back(ParamDesc(ValueBase(),"exp")
+               .set_local_name(_("Exponent"))
+               .set_description(_("The value to raise the constant 'e'"))
+       );
+
+       ret.push_back(ParamDesc(ValueBase(),"scale")
+               .set_local_name(_("Scale"))
+               .set_description(_("Multiplier of the resulting exponent"))
+       );
+
+       return ret;
+}