X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_repeat_gradient.cpp;h=79e4f663e161d87bf507e7426020959d4cc8bf75;hb=376a3dcd5c49955bebcb04543446e7378b8ef298;hp=0ea3f127d09ea5125869a191d814044987a7a438;hpb=7c6c9bc865caa5e585805199f7c2e5f595b1c030;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_repeat_gradient.cpp b/synfig-core/trunk/src/synfig/valuenode_repeat_gradient.cpp index 0ea3f12..79e4f66 100644 --- a/synfig-core/trunk/src/synfig/valuenode_repeat_gradient.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_repeat_gradient.cpp @@ -6,7 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley -** Copyright (c) 2007 Chris Moore +** Copyright (c) 2007, 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -93,73 +93,6 @@ synfig::ValueNode_Repeat_Gradient::~ValueNode_Repeat_Gradient() unlink_all(); } -bool -synfig::ValueNode_Repeat_Gradient::set_gradient(ValueNode::Handle a) -{ - if(a->get_type()!=ValueBase::TYPE_GRADIENT) - return false; - - gradient_=a; - - return true; -} - -bool -synfig::ValueNode_Repeat_Gradient::set_width(ValueNode::Handle x) -{ - if(x->get_type()!=ValueBase::TYPE_REAL) - return false; - - width_=x; - - return true; -} - -bool -synfig::ValueNode_Repeat_Gradient::set_count(ValueNode::Handle b) -{ - if(b->get_type()!=ValueBase::TYPE_INTEGER) - return false; - count_=b; - return true; -} - -bool -synfig::ValueNode_Repeat_Gradient::set_specify_start(ValueNode::Handle a) -{ - if(a->get_type()!=ValueBase::TYPE_BOOL) - return false; - specify_start_=a; - return true; -} - -bool -synfig::ValueNode_Repeat_Gradient::set_specify_end(ValueNode::Handle a) -{ - if(a->get_type()!=ValueBase::TYPE_BOOL) - return false; - specify_end_=a; - return true; -} - -bool -synfig::ValueNode_Repeat_Gradient::set_start_color(ValueNode::Handle a) -{ - if(a->get_type()!=ValueBase::TYPE_COLOR) - return false; - start_color_=a; - return true; -} - -bool -synfig::ValueNode_Repeat_Gradient::set_end_color(ValueNode::Handle a) -{ - if(a->get_type()!=ValueBase::TYPE_COLOR) - return false; - end_color_=a; - return true; -} - synfig::ValueBase synfig::ValueNode_Repeat_Gradient::operator()(Time t)const { @@ -199,35 +132,20 @@ synfig::ValueNode_Repeat_Gradient::operator()(Time t)const } bool -ValueNode_Repeat_Gradient::set_link_vfunc(int i,ValueNode::Handle x) +ValueNode_Repeat_Gradient::set_link_vfunc(int i,ValueNode::Handle value) { assert(i>=0 && i