X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Faction.h;h=1dec9c57eed879457d73274b00738aeda45870ed;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=445806232fb3aeee421a2a627cfdfca9d1bd5315;hpb=312541920425e9ca481a0218c440f369dd25306f;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/action.h b/synfig-studio/trunk/src/synfigapp/action.h index 4458062..1dec9c5 100644 --- a/synfig-studio/trunk/src/synfigapp/action.h +++ b/synfig-studio/trunk/src/synfigapp/action.h @@ -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 @@ -167,6 +168,7 @@ enum Category CATEGORY_VALUENODE =(1<<5), CATEGORY_KEYFRAME =(1<<6), CATEGORY_GROUP =(1<<7), + CATEGORY_BEZIER =(1<<8), CATEGORY_OTHER =(1<<12), @@ -181,14 +183,14 @@ inline Category operator|(Category lhs, Category rhs) -//! Action Base Class +//! Top-level base class for all actions /*! An action should implement the following functions: -** static bool is_candidate(const ParamList &x); +** - static bool is_candidate(const ParamList &x); ** - Checks the ParamList to see if this action could be performed. -** static ParamVocab get_param_vocab(); +** - static ParamVocab get_param_vocab(); ** - Yields the ParamVocab object which describes what ** this action needs before it can perform the act. -** static Action::Base* create(); +** - static Action::Base* create(); ** - Factory for creating this action from a ParamList ** */ @@ -211,6 +213,8 @@ public: void set_param_list(const ParamList &); + static synfig::String get_layer_descriptions(const std::list layers, synfig::String singular_prefix = "", synfig::String plural_prefix = ""); + static synfig::String get_layer_descriptions(const std::list > layers, synfig::String singular_prefix = "", synfig::String plural_prefix = ""); }; // END of class Action::Base typedef Action::Base* (*Factory)();