Rename get_param_vocab to get_children_vocab and use a wrapper for the pure virtual...
[synfig.git] / synfig-core / src / synfig / valuenode_twotone.cpp
index 3c18ce0..89850f7 100644 (file)
@@ -64,8 +64,6 @@ synfig::ValueNode_TwoTone::ValueNode_TwoTone(const ValueBase &value):LinkableVal
        default:
                throw Exception::BadType(ValueBase::type_local_name(value.get_type()));
        }
-
-       DCAST_HACK_ENABLE();
 }
 
 LinkableValueNode*
@@ -187,3 +185,21 @@ ValueNode_TwoTone::check_type(ValueBase::Type type)
 {
        return type==ValueBase::TYPE_GRADIENT;
 }
+
+LinkableValueNode::Vocab
+ValueNode_TwoTone::get_children_vocab_vfunc()const
+{
+       LinkableValueNode::Vocab ret;
+
+       ret.push_back(ParamDesc(ValueBase(),"color1")
+               .set_local_name(_("Color 1"))
+               .set_description(_("The start color of the gradient"))
+       );
+
+       ret.push_back(ParamDesc(ValueBase(),"color2")
+               .set_local_name(_("Color 2"))
+               .set_description(_("The end color of the gradient"))
+       );
+
+       return ret;
+}