X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Factions%2Feditmodeset.cpp;h=e69c473a6c71d702ddb8d046601695581e7da43f;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=3f203479bb4b67ccb438aebf2a6b2d4bd8b72f06;hpb=02252941b29de64037116f4d37991a38d9ff0d94;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/actions/editmodeset.cpp b/synfig-studio/trunk/src/synfigapp/actions/editmodeset.cpp index 3f20347..e69c473 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/editmodeset.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/editmodeset.cpp @@ -2,19 +2,20 @@ /*! \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 */ /* ========================================================================= */ @@ -31,6 +32,8 @@ #include "editmodeset.h" #include +#include + #endif using namespace std; @@ -42,13 +45,13 @@ using namespace Action; /* === M A C R O S ========================================================= */ ACTION_INIT(Action::EditModeSet); -ACTION_SET_NAME(Action::EditModeSet,"edit_mode_set"); -ACTION_SET_LOCAL_NAME(Action::EditModeSet,"Set Edit Mode"); +ACTION_SET_NAME(Action::EditModeSet,"EditModeSet"); +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 ======================================================= */ @@ -64,18 +67,18 @@ Action::ParamVocab 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 @@ -85,11 +88,11 @@ Action::EditModeSet::set_param(const synfig::String& name, const Action::Param & 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); } @@ -110,7 +113,7 @@ Action::EditModeSet::perform() return; get_canvas_interface()->mode_=get_edit_mode(); - + get_canvas_interface()->signal_mode_changed_(get_edit_mode()); } @@ -123,6 +126,6 @@ Action::EditModeSet::undo() return; get_canvas_interface()->mode_=old_edit_mode; - + get_canvas_interface()->signal_mode_changed_(old_edit_mode); }