X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Factions%2Fvaluenodeadd.cpp;h=4e4c5e1a3a06d175b028649eccb4616cad66b6ed;hb=fcf1f2a99d715f39ca71469145d286d74a8af159;hp=7739c5fb0bf2016f590735d4e2fb95bbc67f76c2;hpb=02252941b29de64037116f4d37991a38d9ff0d94;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/actions/valuenodeadd.cpp b/synfig-studio/trunk/src/synfigapp/actions/valuenodeadd.cpp index 7739c5f..4e4c5e1 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/valuenodeadd.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/valuenodeadd.cpp @@ -2,19 +2,20 @@ /*! \file valuenodeadd.cpp ** \brief Template File ** -** $Id: valuenodeadd.cpp,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $ +** $Id$ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. ** \endlegal */ /* ========================================================================= */ @@ -31,6 +32,8 @@ #include "valuenodeadd.h" #include +#include + #endif using namespace std; @@ -43,12 +46,12 @@ using namespace Action; ACTION_INIT(Action::ValueNodeAdd); ACTION_SET_NAME(Action::ValueNodeAdd,"value_node_add"); -ACTION_SET_LOCAL_NAME(Action::ValueNodeAdd,"Add ValueNode"); +ACTION_SET_LOCAL_NAME(Action::ValueNodeAdd,N_("Add ValueNode")); ACTION_SET_TASK(Action::ValueNodeAdd,"add"); ACTION_SET_CATEGORY(Action::ValueNodeAdd,Action::CATEGORY_VALUENODE); ACTION_SET_PRIORITY(Action::ValueNodeAdd,0); ACTION_SET_VERSION(Action::ValueNodeAdd,"0.0"); -ACTION_SET_CVS_ID(Action::ValueNodeAdd,"$Id: valuenodeadd.cpp,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $"); +ACTION_SET_CVS_ID(Action::ValueNodeAdd,"$Id$"); /* === G L O B A L S ======================================================= */ @@ -64,7 +67,7 @@ Action::ParamVocab Action::ValueNodeAdd::get_param_vocab() { ParamVocab ret(Action::CanvasSpecific::get_param_vocab()); - + ret.push_back(ParamDesc("new",Param::TYPE_VALUENODE) .set_local_name(_("New ValueNode")) .set_desc(_("ValueNode to be added")) @@ -73,14 +76,14 @@ Action::ValueNodeAdd::get_param_vocab() ret.push_back(ParamDesc("name",Param::TYPE_STRING) .set_local_name(_("Name")) ); - + return ret; } bool -Action::ValueNodeAdd::is_canidate(const ParamList &x) +Action::ValueNodeAdd::is_candidate(const ParamList &x) { - return canidate_check(get_param_vocab(),x); + return candidate_check(get_param_vocab(),x); } bool @@ -89,14 +92,14 @@ Action::ValueNodeAdd::set_param(const synfig::String& param_name, const Action:: if(param_name=="new" && param.get_type()==Param::TYPE_VALUENODE) { value_node=param.get_value_node(); - + return true; } if(param_name=="name" && param.get_type()==Param::TYPE_STRING) { name=param.get_string(); - + return true; } @@ -118,7 +121,7 @@ Action::ValueNodeAdd::perform() { throw Error(_("Parameter appears to already be exported")); } - + try { get_canvas()->add_value_node(value_node,name); @@ -133,7 +136,7 @@ Action::ValueNodeAdd::perform() } set_dirty(false); - + // Signal that a layer has been inserted if(get_canvas_interface()) { @@ -152,7 +155,7 @@ Action::ValueNodeAdd::undo() } set_dirty(false); - + // Signal that a layer has been inserted if(get_canvas_interface()) {