/* === S Y N F I G ========================================================= */
/*! \file valuenode_stripes.cpp
-** \brief Template File
+** \brief Implementation of the "Stripes" valuenode conversion.
**
** $Id$
**
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();
ValueNode_Stripes::set_link_vfunc(int i,ValueNode::Handle x)
{
assert(i>=0 && i<link_count());
+
switch(i)
{
case 0:
ValueNode_Stripes::get_link_vfunc(int i)const
{
assert(i>=0 && i<link_count());
+
switch(i)
{
case 0:
ValueNode_Stripes::link_local_name(int i)const
{
assert(i>=0 && i<link_count());
+
switch(i)
{
case 0:
ValueNode_Stripes::link_name(int i)const
{
assert(i>=0 && i<link_count());
+
switch(i)
{
case 0:
return "stripes";
case 3:
return "width";
+ default:
+ return String();
}
- return String();
}
int