projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use the translated version of the type name in the parameter dialog.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
valuenode_switch.cpp
diff --git
a/synfig-core/trunk/src/synfig/valuenode_switch.cpp
b/synfig-core/trunk/src/synfig/valuenode_switch.cpp
index
022e832
..
17f6af3
100644
(file)
--- a/
synfig-core/trunk/src/synfig/valuenode_switch.cpp
+++ b/
synfig-core/trunk/src/synfig/valuenode_switch.cpp
@@
-1,6
+1,6
@@
/* === S Y N F I G ========================================================= */
/*! \file valuenode_switch.cpp
/* === S Y N F I G ========================================================= */
/*! \file valuenode_switch.cpp
-** \brief
Template File
+** \brief
Implementation of the "Switch" valuenode conversion.
**
** $Id$
**
**
** $Id$
**
@@
-83,6
+83,7
@@
bool
ValueNode_Switch::set_link_vfunc(int i,ValueNode::Handle x)
{
assert(i>=0 && i<link_count());
ValueNode_Switch::set_link_vfunc(int i,ValueNode::Handle x)
{
assert(i>=0 && i<link_count());
+
switch(i)
{
case 0:
switch(i)
{
case 0:
@@
-109,6
+110,7
@@
ValueNode::LooseHandle
ValueNode_Switch::get_link_vfunc(int i)const
{
assert(i>=0 && i<link_count());
ValueNode_Switch::get_link_vfunc(int i)const
{
assert(i>=0 && i<link_count());
+
switch(i)
{
case 0: return link_off_;
switch(i)
{
case 0: return link_off_;
@@
-128,6
+130,7
@@
String
ValueNode_Switch::link_name(int i)const
{
assert(i>=0 && i<link_count());
ValueNode_Switch::link_name(int i)const
{
assert(i>=0 && i<link_count());
+
switch(i)
{
case 0: return "link_off";
switch(i)
{
case 0: return "link_off";
@@
-141,6
+144,7
@@
String
ValueNode_Switch::link_local_name(int i)const
{
assert(i>=0 && i<link_count());
ValueNode_Switch::link_local_name(int i)const
{
assert(i>=0 && i<link_count());
+
switch(i)
{
case 0: return "Link Off";
switch(i)
{
case 0: return "Link Off";