Rename get_param_vocab to get_children_vocab and use a wrapper for the pure virtual...
[synfig.git] / synfig-core / src / synfig / valuenode_sine.cpp
index 6e42dc7..3ebe280 100644 (file)
@@ -62,8 +62,6 @@ ValueNode_Sine::ValueNode_Sine(const ValueBase &value):
        default:
                throw Exception::BadType(ValueBase::type_local_name(value.get_type()));
        }
-
-       DCAST_HACK_ENABLE();
 }
 
 LinkableValueNode*
@@ -181,3 +179,21 @@ ValueNode_Sine::get_link_index_from_name(const String &name)const
 
        throw Exception::BadLinkName(name);
 }
+
+LinkableValueNode::Vocab
+ValueNode_Sine::get_children_vocab_vfunc()const
+{
+       LinkableValueNode::Vocab ret;
+
+       ret.push_back(ParamDesc(ValueBase(),"angle")
+               .set_local_name(_("Angle"))
+               .set_description(_("The angle where the sine is calculated from"))
+       );
+
+       ret.push_back(ParamDesc(ValueBase(),"amp")
+               .set_local_name(_("Amplitude"))
+               .set_description(_("The value that multiplies the resulting sine"))
+       );
+
+       return ret;
+}