00001 /* === S Y N F I G ========================================================= */ 00021 /* ========================================================================= */ 00022 00023 /* === S T A R T =========================================================== */ 00024 00025 #ifndef __SYNFIG_APP_ACTION_LAYERDUPLICATE_H 00026 #define __SYNFIG_APP_ACTION_LAYERDUPLICATE_H 00027 00028 /* === H E A D E R S ======================================================= */ 00029 00030 #include <synfig/layer.h> 00031 #include <synfigapp/action.h> 00032 #include <list> 00033 #include <synfig/guid.h> 00034 00035 /* === M A C R O S ========================================================= */ 00036 00037 /* === T Y P E D E F S ===================================================== */ 00038 00039 /* === C L A S S E S & S T R U C T S ======================================= */ 00040 00041 namespace synfigapp { 00042 00043 namespace Action { 00044 00045 class LayerDuplicate : 00046 public Super 00047 { 00048 private: 00049 00050 synfig::GUID guid; 00051 std::list<synfig::Layer::Handle> layers; 00052 00053 public: 00054 00055 LayerDuplicate(); 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 prepare(); 00064 00065 void export_dup_nodes(synfig::Layer::Handle, synfig::Canvas::Handle, int &); 00066 00067 ACTION_MODULE_EXT 00068 }; 00069 00070 }; // END of namespace action 00071 }; // END of namespace studio 00072 00073 /* === E N D =============================================================== */ 00074 00075 #endif