Rename get_param_vocab to get_children_vocab and use a wrapper for the pure virtual...
[synfig.git] / synfig-core / src / synfig / valuenode_exp.cpp
index 05d4b63..7b96298 100644 (file)
@@ -62,8 +62,6 @@ ValueNode_Exp::ValueNode_Exp(const ValueBase &value):
        default:
                throw Exception::BadType(ValueBase::type_local_name(value.get_type()));
        }
-
-       DCAST_HACK_ENABLE();
 }
 
 LinkableValueNode*
@@ -177,3 +175,21 @@ ValueNode_Exp::check_type(ValueBase::Type type)
 {
        return type==ValueBase::TYPE_REAL;
 }
+
+LinkableValueNode::Vocab
+ValueNode_Exp::get_children_vocab_vfunc()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;
+}