Add a macro to check the type of value before using it. This will be used by each...
[synfig.git] / synfig-core / trunk / src / synfig / layer_duplicate.h
index 4daf5a6..6d74c18 100644 (file)
@@ -40,13 +40,16 @@ class Layer_Duplicate : public synfig::Layer_Composite
        SYNFIG_LAYER_MODULE_EXT
 
 private:
-       mutable int index;
+       mutable Real index;
        mutable Time time_cur;
 
 public:
 
        Layer_Duplicate();
 
+       //! Duplicates the Layer
+       virtual Layer::Handle clone(const GUID& deriv_guid=GUID())const;
+
        virtual bool set_param(const String & param, const synfig::ValueBase &value);
 
        virtual ValueBase get_param(const String & param)const;
@@ -57,6 +60,8 @@ public:
 
        virtual void set_time(Context context, Time time, const Point &point)const;
 
+       virtual ValueNode_Duplicate::Handle get_duplicate_param()const;
+
        virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const;
 
        virtual Vocab get_param_vocab()const;