X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftags%2Fstable%2Fsrc%2Fsynfigapp%2Factions%2Flayeradd.cpp;h=e7ec3aba2c75715bf92d48c855ba0330712718aa;hb=47fce282611fbba1044921d22ca887f9b53ad91a;hp=41cfe1a87140057d2a986b211526b41263a3c5cd;hpb=4cb5360f578f79e5d9e234570018d762ea0a964f;p=synfig.git diff --git a/synfig-studio/tags/stable/src/synfigapp/actions/layeradd.cpp b/synfig-studio/tags/stable/src/synfigapp/actions/layeradd.cpp index 41cfe1a..e7ec3ab 100644 --- a/synfig-studio/tags/stable/src/synfigapp/actions/layeradd.cpp +++ b/synfig-studio/tags/stable/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_INIT_NO_GET_LOCAL_NAME(Action::LayerAdd); ACTION_SET_NAME(Action::LayerAdd,"layer_add"); -ACTION_SET_LOCAL_NAME(Action::LayerAdd,"Add Layer"); +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() {