X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_stripes.cpp;h=55e6a6631623b49608936ec367be61dc416e1830;hb=334e15ce6c4d9b1f30a168a55e7ef4d31320d568;hp=a1a34f8189ee7b95e87b280fa1b1517e6a02a8dc;hpb=537bbdbf5b44201ef6cb7b6495e6256993c9bf01;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_stripes.cpp b/synfig-core/trunk/src/synfig/valuenode_stripes.cpp index a1a34f8..55e6a66 100644 --- a/synfig-core/trunk/src/synfig/valuenode_stripes.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_stripes.cpp @@ -1,6 +1,6 @@ /* === S Y N F I G ========================================================= */ /*! \file valuenode_stripes.cpp -** \brief Template File +** \brief Implementation of the "Stripes" valuenode conversion. ** ** $Id$ ** @@ -74,7 +74,7 @@ ValueNode_Stripes::create(const ValueBase& x) if(id!=ValueBase::TYPE_GRADIENT) { assert(0); - throw runtime_error("synfig::ValueNode_Stripes:Bad type "+ValueBase::type_name(id)); + throw runtime_error(String(_("Stripes"))+_(":Bad type ")+ValueBase::type_local_name(id)); } ValueNode_Stripes* value_node=new ValueNode_Stripes(); @@ -89,48 +89,6 @@ synfig::ValueNode_Stripes::~ValueNode_Stripes() unlink_all(); } -bool -synfig::ValueNode_Stripes::set_color1(ValueNode::Handle a) -{ - if(a->get_type()!=ValueBase::TYPE_COLOR) - return false; - - color1_=a; - - return true; -} - -bool -synfig::ValueNode_Stripes::set_color2(ValueNode::Handle a) -{ - if(a->get_type()!=ValueBase::TYPE_COLOR) - return false; - - color2_=a; - - return true; -} - -bool -synfig::ValueNode_Stripes::set_width(ValueNode::Handle x) -{ - if(x->get_type()!=ValueBase::TYPE_REAL) - return false; - - width_=x; - - return true; -} - -bool -synfig::ValueNode_Stripes::set_stripes(ValueNode::Handle b) -{ - if(b->get_type()!=ValueBase::TYPE_INTEGER) - return false; - stripes_=b; - return true; -} - synfig::ValueBase synfig::ValueNode_Stripes::operator()(Time t)const { @@ -161,25 +119,17 @@ synfig::ValueNode_Stripes::operator()(Time t)const } bool -ValueNode_Stripes::set_link_vfunc(int i,ValueNode::Handle x) +ValueNode_Stripes::set_link_vfunc(int i,ValueNode::Handle value) { assert(i>=0 && i=0 && i=0 && i=0 && i