X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Factions%2Flayeradd.cpp;h=51d12db901b428ee81f5fadc09b974e98fe26467;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=41cfe1a87140057d2a986b211526b41263a3c5cd;hpb=837b63e9fb829d66d43f4f169861f8979f76820d;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/actions/layeradd.cpp b/synfig-studio/trunk/src/synfigapp/actions/layeradd.cpp index 41cfe1a..51d12db 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/layeradd.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/layeradd.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -32,6 +33,8 @@ #include "layeradd.h" #include +#include + #endif using namespace std; @@ -42,9 +45,9 @@ using namespace Action; /* === M A C R O S ========================================================= */ -ACTION_INIT(Action::LayerAdd); -ACTION_SET_NAME(Action::LayerAdd,"layer_add"); -ACTION_SET_LOCAL_NAME(Action::LayerAdd,"Add Layer"); +ACTION_INIT_NO_GET_LOCAL_NAME(Action::LayerAdd); +ACTION_SET_NAME(Action::LayerAdd,"LayerAdd"); +ACTION_SET_LOCAL_NAME(Action::LayerAdd,N_("Add Layer")); ACTION_SET_TASK(Action::LayerAdd,"add"); ACTION_SET_CATEGORY(Action::LayerAdd,Action::CATEGORY_LAYER); ACTION_SET_PRIORITY(Action::LayerAdd,0); @@ -61,6 +64,15 @@ Action::LayerAdd::LayerAdd() { } +synfig::String +Action::LayerAdd::get_local_name()const +{ + if (layer) + return strprintf("%s '%s'", _("Add Layer"), layer->get_local_name().c_str()); + else + return _("Add Layer"); +} + Action::ParamVocab Action::LayerAdd::get_param_vocab() {