00001
00021
00022
00023
00024
00025 #ifndef __SYNFIG_APP_ACTION_CANVASREMOVE_H
00026 #define __SYNFIG_APP_ACTION_CANVASREMOVE_H
00027
00028
00029
00030 #include <synfig/renddesc.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 CanvasRemove :
00046 public Undoable,
00047 public CanvasSpecific
00048 {
00049 private:
00050 synfig::Canvas::Handle parent_canvas;
00051 synfig::String canvas_id;
00052 public:
00053
00054 CanvasRemove();
00055
00056 static ParamVocab get_param_vocab();
00057 static bool is_candidate(const ParamList &x);
00058
00059 virtual bool set_param(const synfig::String& name, const Param &);
00060 virtual bool is_ready()const;
00061
00062 virtual void perform();
00063 virtual void undo();
00064
00065 ACTION_MODULE_EXT
00066 };
00067
00068 };
00069 };
00070
00071
00072
00073 #endif