/*! \file editmodeset.cpp
** \brief Template File
**
-** $Id: editmodeset.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
*/
/* ========================================================================= */
#include "editmodeset.h"
#include <synfigapp/canvasinterface.h>
+#include <synfigapp/general.h>
+
#endif
using namespace std;
ACTION_INIT(Action::EditModeSet);
ACTION_SET_NAME(Action::EditModeSet,"edit_mode_set");
-ACTION_SET_LOCAL_NAME(Action::EditModeSet,"Set Edit Mode");
+ACTION_SET_LOCAL_NAME(Action::EditModeSet,N_("Set Edit Mode"));
ACTION_SET_TASK(Action::EditModeSet,"set");
ACTION_SET_CATEGORY(Action::EditModeSet,Action::CATEGORY_OTHER);
ACTION_SET_PRIORITY(Action::EditModeSet,0);
ACTION_SET_VERSION(Action::EditModeSet,"0.0");
-ACTION_SET_CVS_ID(Action::EditModeSet,"$Id: editmodeset.cpp,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $");
+ACTION_SET_CVS_ID(Action::EditModeSet,"$Id$");
/* === G L O B A L S ======================================================= */
Action::EditModeSet::get_param_vocab()
{
ParamVocab ret(Action::CanvasSpecific::get_param_vocab());
-
+
ret.push_back(ParamDesc("edit_mode",Param::TYPE_EDITMODE)
.set_local_name(_("New Edit Mode"))
);
-
+
return ret;
}
bool
-Action::EditModeSet::is_canidate(const ParamList &x)
+Action::EditModeSet::is_candidate(const ParamList &x)
{
- return canidate_check(get_param_vocab(),x);
+ return candidate_check(get_param_vocab(),x);
}
bool
if(name=="edit_mode" && param.get_type()==Param::TYPE_EDITMODE)
{
set_edit_mode(param.get_edit_mode());
-
+
return true;
}
*/
-
+
return Action::CanvasSpecific::set_param(name,param);
}
return;
get_canvas_interface()->mode_=get_edit_mode();
-
+
get_canvas_interface()->signal_mode_changed_(get_edit_mode());
}
return;
get_canvas_interface()->mode_=old_edit_mode;
-
+
get_canvas_interface()->signal_mode_changed_(old_edit_mode);
}