00001
00022
00023
00024
00025
00026 #ifndef __SYNFIG_APP_ACTION_GROUPREMOVELAYERS_H
00027 #define __SYNFIG_APP_ACTION_GROUPREMOVELAYERS_H
00028
00029
00030
00031 #include <synfig/layer.h>
00032 #include <synfigapp/action.h>
00033 #include <list>
00034
00035
00036
00037
00038
00039
00040
00041 namespace synfigapp {
00042
00043 class Instance;
00044
00045 namespace Action {
00046
00047 class GroupRemoveLayers :
00048 public Undoable,
00049 public CanvasSpecific
00050 {
00051 private:
00052
00053
00054 std::list<std::pair<synfig::Layer::Handle,synfig::String> > layer_list;
00055
00056 public:
00057
00058 GroupRemoveLayers();
00059
00060 static ParamVocab get_param_vocab();
00061 static bool is_candidate(const ParamList &x);
00062
00063 virtual bool set_param(const synfig::String& name, const Param &);
00064 virtual bool is_ready()const;
00065
00066 virtual void perform();
00067 virtual void undo();
00068
00069 ACTION_MODULE_EXT
00070 };
00071
00072 };
00073 };
00074
00075
00076
00077 #endif