X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_join.cpp;h=98edb47066c9c35058b0006e3469fa35ec1570e1;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=eaa8fbcced522bb5c43f6c3cd301ce5c292a776d;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_join.cpp b/synfig-core/src/synfig/valuenode_join.cpp index eaa8fbc..98edb47 100644 --- a/synfig-core/src/synfig/valuenode_join.cpp +++ b/synfig-core/src/synfig/valuenode_join.cpp @@ -55,6 +55,8 @@ using namespace synfig; ValueNode_Join::ValueNode_Join(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); switch(value.get_type()) { case ValueBase::TYPE_STRING: @@ -74,8 +76,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 +227,34 @@ ValueNode_Join::check_type(ValueBase::Type type) return type==ValueBase::TYPE_STRING; } + +LinkableValueNode::Vocab +ValueNode_Join::get_children_vocab_vfunc()const +{ + if(children_vocab.size()) + return children_vocab; + + 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; +}