X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftags%2Fstable%2Fsrc%2Fsynfigapp%2Factions%2Fblinepointtangentmerge.cpp;h=39d4f36374f30a1601ee10bcc2dac66beb7ed5cf;hb=47fce282611fbba1044921d22ca887f9b53ad91a;hp=8cdeb3846ea9286ab0082a97bb80f4bd98b263c0;hpb=4cb5360f578f79e5d9e234570018d762ea0a964f;p=synfig.git diff --git a/synfig-studio/tags/stable/src/synfigapp/actions/blinepointtangentmerge.cpp b/synfig-studio/tags/stable/src/synfigapp/actions/blinepointtangentmerge.cpp index 8cdeb38..39d4f36 100644 --- a/synfig-studio/tags/stable/src/synfigapp/actions/blinepointtangentmerge.cpp +++ b/synfig-studio/tags/stable/src/synfigapp/actions/blinepointtangentmerge.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** 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 @@ -38,6 +39,8 @@ #include "valuedescconnect.h" #include +#include + #endif using namespace std; @@ -48,9 +51,9 @@ using namespace Action; /* === M A C R O S ========================================================= */ -ACTION_INIT(Action::BLinePointTangentMerge); +ACTION_INIT_NO_GET_LOCAL_NAME(Action::BLinePointTangentMerge); ACTION_SET_NAME(Action::BLinePointTangentMerge,"bline_point_tangent_merge"); -ACTION_SET_LOCAL_NAME(Action::BLinePointTangentMerge,_("Merge Tangents")); +ACTION_SET_LOCAL_NAME(Action::BLinePointTangentMerge,N_("Merge Tangents")); ACTION_SET_TASK(Action::BLinePointTangentMerge,"merge"); ACTION_SET_CATEGORY(Action::BLinePointTangentMerge,Action::CATEGORY_VALUENODE); ACTION_SET_PRIORITY(Action::BLinePointTangentMerge,0); @@ -69,6 +72,12 @@ Action::BLinePointTangentMerge::BLinePointTangentMerge() set_dirty(true); } +synfig::String +Action::BLinePointTangentMerge::get_local_name()const +{ + return strprintf(_("Merge Tangents of '%s'"), ((ValueNode::Handle)(value_node))->get_description().c_str()); +} + Action::ParamVocab Action::BLinePointTangentMerge::get_param_vocab() {