Change the displayed name of this action from 'Connect' to 'Add Waypoint'. Maybe...
[synfig.git] / synfig-studio / trunk / src / synfigapp / actions / colorset.cpp
index 967b070..42c23ce 100644 (file)
@@ -2,7 +2,7 @@
 /*!    \file colorset.cpp
 **     \brief Template File
 **
-**     $Id: colorset.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
@@ -55,7 +55,7 @@ ACTION_SET_TASK(Action::ColorSet,"set");
 ACTION_SET_CATEGORY(Action::ColorSet,Action::CATEGORY_VALUEDESC);
 ACTION_SET_PRIORITY(Action::ColorSet,0);
 ACTION_SET_VERSION(Action::ColorSet,"0.0");
-ACTION_SET_CVS_ID(Action::ColorSet,"$Id: colorset.cpp,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $");
+ACTION_SET_CVS_ID(Action::ColorSet,"$Id$");
 
 /* === G L O B A L S ======================================================= */
 
@@ -72,7 +72,7 @@ Action::ParamVocab
 Action::ColorSet::get_param_vocab()
 {
        ParamVocab ret(Action::CanvasSpecific::get_param_vocab());
-       
+
        ret.push_back(ParamDesc("value_desc",Param::TYPE_VALUEDESC)
                .set_local_name(_("ValueDesc"))
        );
@@ -81,14 +81,14 @@ Action::ColorSet::get_param_vocab()
                .set_local_name(_("Time"))
                .set_optional()
        );
-       
+
        return ret;
 }
 
 bool
-Action::ColorSet::is_canidate(const ParamList &x)
+Action::ColorSet::is_candidate(const ParamList &x)
 {
-       if(!canidate_check(get_param_vocab(),x))
+       if(!candidate_check(get_param_vocab(),x))
                return false;
        return x.find("value_desc")->second.get_value_desc().get_value_type()==ValueBase::TYPE_COLOR;
 }
@@ -100,17 +100,17 @@ Action::ColorSet::set_param(const synfig::String& name, const Action::Param &par
        {
                // Grab the value_desc
                value_desc=param.get_value_desc();
-               
+
                // Grab the current color
                color=synfigapp::Main::get_foreground_color();
-               
+
                return value_desc.get_value_type()==ValueBase::TYPE_COLOR;
        }
 
        if(name=="time" && param.get_type()==Param::TYPE_TIME)
        {
                time=param.get_time();
-               
+
                return true;
        }
 
@@ -129,16 +129,16 @@ void
 Action::ColorSet::prepare()
 {
        clear();
-       
+
        Action::Handle action;
        action=Action::create("value_desc_set");
-               
+
        action->set_param("canvas",get_canvas());
        action->set_param("canvas_interface",get_canvas_interface());
        action->set_param("value_desc",value_desc);
        action->set_param("new_value",ValueBase(color));
        action->set_param("time",time);
-       
+
        if(!action->is_ready())
                throw Error(Error::TYPE_NOTREADY);