Rename get_param_vocab to get_children_vocab and use a wrapper for the pure virtual...
[synfig.git] / synfig-core / src / synfig / valuenode_join.cpp
index eaa8fbc..bc01031 100644 (file)
@@ -74,8 +74,6 @@ ValueNode_Join::ValueNode_Join(const ValueBase &value):
        default:
                throw Exception::BadType(ValueBase::type_local_name(value.get_type()));
        }
-
-       DCAST_HACK_ENABLE();
 }
 
 LinkableValueNode*
@@ -227,3 +225,31 @@ ValueNode_Join::check_type(ValueBase::Type type)
        return
                type==ValueBase::TYPE_STRING;
 }
+
+LinkableValueNode::Vocab
+ValueNode_Join::get_children_vocab_vfunc()const
+{
+       LinkableValueNode::Vocab ret;
+
+       ret.push_back(ParamDesc(ValueBase(),"strings")
+               .set_local_name(_("Strings"))
+               .set_description(_("The List of strings to join"))
+       );
+
+       ret.push_back(ParamDesc(ValueBase(),"before")
+               .set_local_name(_("Before"))
+               .set_description(_("The string to place before the joined strings"))
+       );
+
+       ret.push_back(ParamDesc(ValueBase(),"separator")
+               .set_local_name(_("Separator"))
+               .set_description(_("The string to place between each string joined"))
+       );
+
+       ret.push_back(ParamDesc(ValueBase(),"after")
+               .set_local_name(_("After"))
+               .set_description(_("The string to place after the joined strings"))
+       );
+
+       return ret;
+}