X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Factions%2Fvaluedescset.cpp;h=e3959ce06662ada48836dd444cb90d61e745227d;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=d4d89dba798c2b59ffa296c59313fc8c151c1d55;hpb=756c0d29ac1742f231e6615f9a577e574e35a4af;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/actions/valuedescset.cpp b/synfig-studio/trunk/src/synfigapp/actions/valuedescset.cpp index d4d89db..e3959ce 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/valuedescset.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/valuedescset.cpp @@ -55,7 +55,7 @@ using namespace Action; /* === M A C R O S ========================================================= */ ACTION_INIT_NO_GET_LOCAL_NAME(Action::ValueDescSet); -ACTION_SET_NAME(Action::ValueDescSet,"value_desc_set"); +ACTION_SET_NAME(Action::ValueDescSet,"ValueDescSet"); ACTION_SET_LOCAL_NAME(Action::ValueDescSet,N_("Set ValueDesc")); ACTION_SET_TASK(Action::ValueDescSet,"set"); ACTION_SET_CATEGORY(Action::ValueDescSet,Action::CATEGORY_VALUEDESC); @@ -159,8 +159,6 @@ Action::ValueDescSet::prepare() (value_desc.get_index()==4 || value_desc.get_index()==5) && (*value_desc.get_parent_value_node())(time).get(BLinePoint()).get_split_tangent_flag()==false) { - printf("a tangent got changed - #%d\n", value_desc.get_index()-3); - { ValueNode_Composite::Handle parent_value_node; parent_value_node=parent_value_node.cast_dynamic(value_desc.get_parent_value_node()); @@ -168,20 +166,18 @@ Action::ValueDescSet::prepare() Vector t1((*parent_value_node->get_link("t1"))(time)); Vector t2((*parent_value_node->get_link("t2"))(time)); - printf("current values are: t1(%.2f, %2.f) t2(%.2f, %.2f)\n", t1[0], t1[1], t2[0], t2[1]); } if (value_desc.get_index()==4) { - printf("copying change to tangent 2\n"); ValueNode_Composite::Handle parent_value_node; parent_value_node=parent_value_node.cast_dynamic(value_desc.get_parent_value_node()); assert(parent_value_node); - Action::Handle action(Action::create("value_desc_set")); + Action::Handle action(Action::create("ValueDescSet")); if(!action) - throw Error(_("Unable to find action value_desc_set (bug)")); + throw Error(_("Unable to find action ValueDescSet (bug)")); action->set_param("canvas",get_canvas()); action->set_param("canvas_interface",get_canvas_interface()); @@ -203,10 +199,10 @@ Action::ValueDescSet::prepare() { ValueDesc reference_value_desc(ValueNode_Reference::Handle::cast_dynamic(value_desc.get_value_node()),0); - Action::Handle action(Action::create("value_desc_set")); + Action::Handle action(Action::create("ValueDescSet")); if(!action) - throw Error(_("Unable to find action value_desc_set (bug)")); + throw Error(_("Unable to find action ValueDescSet (bug)")); action->set_param("canvas",get_canvas()); action->set_param("canvas_interface",get_canvas_interface()); @@ -271,10 +267,10 @@ Action::ValueDescSet::prepare() { ValueDesc component_value_desc(ValueNode_Composite::Handle::cast_dynamic(value_desc.get_value_node()),i); - Action::Handle action(Action::create("value_desc_set")); + Action::Handle action(Action::create("ValueDescSet")); if(!action) - throw Error(_("Unable to find action value_desc_set (bug)")); + throw Error(_("Unable to find action ValueDescSet (bug)")); action->set_param("canvas",get_canvas()); action->set_param("canvas_interface",get_canvas_interface()); @@ -329,10 +325,10 @@ Action::ValueDescSet::prepare() { ValueDesc component_value_desc(ValueNode_RadialComposite::Handle::cast_dynamic(value_desc.get_value_node()),i); - Action::Handle action(Action::create("value_desc_set")); + Action::Handle action(Action::create("ValueDescSet")); if(!action) - throw Error(_("Unable to find action value_desc_set (bug)")); + throw Error(_("Unable to find action ValueDescSet (bug)")); action->set_param("canvas",get_canvas()); action->set_param("canvas_interface",get_canvas_interface()); @@ -366,10 +362,10 @@ Action::ValueDescSet::prepare() { // we are splitting tangents - Action::Handle action(Action::create("value_desc_set")); + Action::Handle action(Action::create("ValueDescSet")); if(!action) - throw Error(_("Unable to find action value_desc_set (bug)")); + throw Error(_("Unable to find action ValueDescSet (bug)")); action->set_param("canvas",get_canvas()); action->set_param("canvas_interface",get_canvas_interface()); @@ -391,10 +387,10 @@ Action::ValueDescSet::prepare() (Vector)((*parent_value_node->get_link("t2"))(time))) / 2); { - Action::Handle action(Action::create("value_desc_set")); + Action::Handle action(Action::create("ValueDescSet")); if(!action) - throw Error(_("Unable to find action value_desc_set (bug)")); + throw Error(_("Unable to find action ValueDescSet (bug)")); action->set_param("canvas",get_canvas()); action->set_param("canvas_interface",get_canvas_interface()); @@ -409,10 +405,10 @@ Action::ValueDescSet::prepare() } { - Action::Handle action(Action::create("value_desc_set")); + Action::Handle action(Action::create("ValueDescSet")); if(!action) - throw Error(_("Unable to find action value_desc_set (bug)")); + throw Error(_("Unable to find action ValueDescSet (bug)")); action->set_param("canvas",get_canvas()); action->set_param("canvas_interface",get_canvas_interface()); @@ -479,7 +475,7 @@ Action::ValueDescSet::prepare() } else { - action=Action::create("value_node_replace"); + action=Action::create("ValueNodeReplace"); action->set_param("dest",value_desc.get_value_node()); action->set_param("src",ValueNode::Handle(value_node)); }