00001 /* === S Y N F I G ========================================================= */ 00021 /* ========================================================================= */ 00022 00023 /* === S T A R T =========================================================== */ 00024 00025 #ifndef __SYNFIG_IMPORT_H 00026 #define __SYNFIG_IMPORT_H 00027 00028 /* === H E A D E R S ======================================================= */ 00029 00030 #include <synfig/layer_bitmap.h> 00031 #include <synfig/color.h> 00032 #include <synfig/vector.h> 00033 #include <synfig/importer.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 class Import : public synfig::Layer_Bitmap 00042 { 00043 SYNFIG_LAYER_MODULE_EXT 00044 00045 private: 00046 synfig::String filename; 00047 synfig::String abs_filename; 00048 synfig::Importer::Handle importer; 00049 synfig::Time time_offset; 00050 00051 protected: 00052 Import(); 00053 00054 public: 00055 ~Import(); 00056 00057 virtual bool set_param(const synfig::String & param, const synfig::ValueBase &value); 00058 00059 virtual synfig::ValueBase get_param(const synfig::String & param)const; 00060 00061 virtual Vocab get_param_vocab()const; 00062 00063 virtual void on_canvas_set(); 00064 00065 virtual void set_time(synfig::Context context, synfig::Time time)const; 00066 00067 virtual void set_time(synfig::Context context, synfig::Time time, const synfig::Point &point)const; 00068 }; 00069 00070 /* === E N D =============================================================== */ 00071 00072 #endif