Enable Parameter Description for Linkable Value Nodes using ParamDesc class.
[synfig.git] / synfig-core / src / synfig / valuenode_cos.cpp
index f3e4793..253d8e0 100644 (file)
@@ -62,8 +62,6 @@ ValueNode_Cos::ValueNode_Cos(const ValueBase &value):
        default:
                throw Exception::BadType(ValueBase::type_local_name(value.get_type()));
        }
-
-       DCAST_HACK_ENABLE();
 }
 
 LinkableValueNode*
@@ -184,3 +182,21 @@ ValueNode_Cos::get_link_index_from_name(const String &name)const
 
        throw Exception::BadLinkName(name);
 }
+
+LinkableValueNode::Vocab
+ValueNode_Cos::get_param_vocab()const
+{
+       LinkableValueNode::Vocab ret;
+
+       ret.push_back(ParamDesc(ValueBase(),"angle")
+               .set_local_name(_("Angle"))
+               .set_description(_("Value to calculate the cosine"))
+       );
+
+       ret.push_back(ParamDesc(ValueBase(),"amp")
+               .set_local_name(_("Amplitude"))
+               .set_description(_("Multiplier of the resulting cosine"))
+       );
+
+       return ret;
+}