00001 /* === S Y N F I G ========================================================= */ 00021 /* ========================================================================= */ 00022 00023 /* === S T A R T =========================================================== */ 00024 00025 #ifndef __SYNFIG_APP_ACTION_CANVASADD_H 00026 #define __SYNFIG_APP_ACTION_CANVASADD_H 00027 00028 /* === H E A D E R S ======================================================= */ 00029 00030 #include <synfig/renddesc.h> 00031 #include <synfigapp/action.h> 00032 00033 /* === M A C R O S ========================================================= */ 00034 00035 /* === T Y P E D E F S ===================================================== */ 00036 00037 /* === C L A S S E S & S T R U C T S ======================================= */ 00038 00039 namespace synfigapp { 00040 00041 class Instance; 00042 00043 namespace Action { 00044 00045 class CanvasAdd : 00046 public Undoable, 00047 public CanvasSpecific 00048 { 00049 private: 00050 00051 synfig::Canvas::Handle new_canvas; 00052 synfig::String id; 00053 00054 synfig::Canvas::Handle inline_parent; 00055 00056 public: 00057 00058 CanvasAdd(); 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 }; // END of namespace action 00073 }; // END of namespace studio 00074 00075 /* === E N D =============================================================== */ 00076 00077 #endif