X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_timedswap.h;h=9e33646fcf06affb16c9124a86c57220bd45828d;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=4dfbbc555927494769beb24f4f9d31463dbaafbb;hpb=e8a065f2385c219c511b57dac52786120bfa097d;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_timedswap.h b/synfig-core/trunk/src/synfig/valuenode_timedswap.h index 4dfbbc5..9e33646 100644 --- a/synfig-core/trunk/src/synfig/valuenode_timedswap.h +++ b/synfig-core/trunk/src/synfig/valuenode_timedswap.h @@ -1,11 +1,12 @@ /* === S Y N F I G ========================================================= */ /*! \file valuenode_timedswap.h -** \brief Template Header +** \brief Header file for implementation of the "Timed Swap" valuenode conversion. ** -** $Id: valuenode_timedswap.h,v 1.1.1.1 2005/01/04 01:23:15 darco Exp $ +** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007, 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -39,7 +40,7 @@ struct ValueNode_TimedSwap : public LinkableValueNode { typedef etl::handle Handle; typedef etl::handle ConstHandle; - + private: ValueNode::RHandle before; @@ -47,7 +48,7 @@ private: ValueNode::RHandle swap_time; ValueNode::RHandle swap_length; - ValueNode_TimedSwap(ValueBase::Type id); + ValueNode_TimedSwap(const ValueBase &value); public: @@ -55,20 +56,6 @@ public: virtual ~ValueNode_TimedSwap(); - bool set_before(const ValueNode::Handle &a); - ValueNode::Handle get_before()const; - bool set_after(const ValueNode::Handle &a); - ValueNode::Handle get_after()const; - - void set_swap_time_real(Time x); - bool set_swap_time(const ValueNode::Handle &x); - ValueNode::Handle get_swap_time()const; - - void set_swap_length_real(Time x); - bool set_swap_length(const ValueNode::Handle &x); - ValueNode::Handle get_swap_length()const; - - virtual bool set_link_vfunc(int i,ValueNode::Handle x); virtual ValueNode::LooseHandle get_link_vfunc(int i)const; virtual int link_count()const; @@ -78,12 +65,12 @@ public: virtual ValueBase operator()(Time t)const; - virtual String get_name()const; + virtual String get_name()const; virtual String get_local_name()const; // static bool check_type(const ValueBase::Type &type); protected: - + virtual LinkableValueNode* create_new()const; public: