Rename get_param_vocab to get_children_vocab and use a wrapper for the pure virtual...
[synfig.git] / synfig-core / src / synfig / valuenode_gradientcolor.cpp
index 60c6e7e..980cf08 100644 (file)
@@ -64,8 +64,6 @@ ValueNode_GradientColor::ValueNode_GradientColor(const ValueBase &value):
        default:
                throw Exception::BadType(ValueBase::type_local_name(value.get_type()));
        }
-
-       DCAST_HACK_ENABLE();
 }
 
 LinkableValueNode*
@@ -187,3 +185,26 @@ ValueNode_GradientColor::check_type(ValueBase::Type type)
 {
        return type==ValueBase::TYPE_COLOR;
 }
+
+LinkableValueNode::Vocab
+ValueNode_GradientColor::get_children_vocab_vfunc()const
+{
+       LinkableValueNode::Vocab ret;
+
+       ret.push_back(ParamDesc(ValueBase(),"gradient")
+               .set_local_name(_("Gradient"))
+               .set_description(_("The gradient where the color is picked from"))
+       );
+
+       ret.push_back(ParamDesc(ValueBase(),"index")
+               .set_local_name(_("Index"))
+               .set_description(_("The position of the color at the gradient (0,1]"))
+       );
+
+       ret.push_back(ParamDesc(ValueBase(),"loop")
+               .set_local_name(_("Loop"))
+               .set_description(_("When checked, the index would loop"))
+       );
+
+       return ret;
+}