Remove .gitignore do nothing is ignored.
[synfig.git] / synfig-studio / trunk / src / synfigapp / actions / valuenodeadd.cpp
index 12dd3a2..fae23c3 100644 (file)
@@ -2,7 +2,7 @@
 /*!    \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-2005 Robert B. Quattlebaum Jr., Adrian Bentley
@@ -32,6 +32,8 @@
 #include "valuenodeadd.h"
 #include <synfigapp/canvasinterface.h>
 
+#include <synfigapp/general.h>
+
 #endif
 
 using namespace std;
@@ -43,13 +45,13 @@ using namespace Action;
 /* === M A C R O S ========================================================= */
 
 ACTION_INIT(Action::ValueNodeAdd);
-ACTION_SET_NAME(Action::ValueNodeAdd,"value_node_add");
-ACTION_SET_LOCAL_NAME(Action::ValueNodeAdd,"Add ValueNode");
+ACTION_SET_NAME(Action::ValueNodeAdd,"ValueNodeAdd");
+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 ======================================================= */
 
@@ -65,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"))
@@ -74,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
@@ -90,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;
        }
 
@@ -119,7 +121,7 @@ Action::ValueNodeAdd::perform()
        {
                throw Error(_("Parameter appears to already be exported"));
        }
-       
+
        try
        {
                get_canvas()->add_value_node(value_node,name);
@@ -134,7 +136,7 @@ Action::ValueNodeAdd::perform()
        }
 
        set_dirty(false);
-       
+
        // Signal that a layer has been inserted
        if(get_canvas_interface())
        {
@@ -153,7 +155,7 @@ Action::ValueNodeAdd::undo()
        }
 
        set_dirty(false);
-       
+
        // Signal that a layer has been inserted
        if(get_canvas_interface())
        {