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