-/* === S I N F G =========================================================== */
+/* === S Y N F I G ========================================================= */
/*! \file valuenode_dynamiclist.cpp
** \brief Template File
**
** $Id: valuenode_dynamiclist.cpp,v 1.1.1.1 2005/01/04 01:23:15 darco Exp $
**
** \legal
-** Copyright (c) 2002 Robert B. Quattlebaum Jr.
+** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
-** This software and associated documentation
-** are CONFIDENTIAL and PROPRIETARY property of
-** the above-mentioned copyright holder.
+** This package is free software; you can redistribute it and/or
+** modify it under the terms of the GNU General Public License as
+** published by the Free Software Foundation; either version 2 of
+** the License, or (at your option) any later version.
**
-** You may not copy, print, publish, or in any
-** other way distribute this software without
-** a prior written agreement with
-** the copyright holder.
+** This package is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+** General Public License for more details.
** \endlegal
*/
/* ========================================================================= */
using namespace std;
using namespace etl;
-using namespace sinfg;
+using namespace synfig;
/* === M A C R O S ========================================================= */
ValueNode_DynamicList::ListEntry::ActivepointList::iterator
ValueNode_DynamicList::ListEntry::add(Time time, bool status, int priority)
{
- typedef sinfg::ValueNode_DynamicList::ListEntry::ActivepointList::iterator iterator;
+ typedef synfig::ValueNode_DynamicList::ListEntry::ActivepointList::iterator iterator;
//! \optimize
Activepoint ap(time,status,priority);
ValueNode_DynamicList::ListEntry::ActivepointList::iterator
ValueNode_DynamicList::ListEntry::add(const Activepoint &x)
{
- typedef sinfg::ValueNode_DynamicList::ListEntry::ActivepointList::iterator iterator;
+ typedef synfig::ValueNode_DynamicList::ListEntry::ActivepointList::iterator iterator;
//! \optimize
Activepoint ap(x);
ValueNode_DynamicList::ListEntry ret;
- sinfg::ValueBase prev,next;
+ synfig::ValueBase prev,next;
index=index%link_count();
ValueNode_DynamicList::ListEntry::ActivepointList::iterator
ValueNode_DynamicList::ListEntry::find(const Time& x)
{
- typedef sinfg::ValueNode_DynamicList::ListEntry::ActivepointList ActivepointList;
+ typedef synfig::ValueNode_DynamicList::ListEntry::ActivepointList ActivepointList;
ActivepointList::iterator iter;
ValueNode_DynamicList::ListEntry::ActivepointList::const_iterator
ValueNode_DynamicList::ListEntry::find(const Time& x)const
{
- typedef sinfg::ValueNode_DynamicList::ListEntry::ActivepointList ActivepointList;
+ typedef synfig::ValueNode_DynamicList::ListEntry::ActivepointList ActivepointList;
ActivepointList::const_iterator iter;
ValueNode_DynamicList::ListEntry::ActivepointList::iterator
ValueNode_DynamicList::ListEntry::find_next(const Time& x)
{
- typedef sinfg::ValueNode_DynamicList::ListEntry::ActivepointList ActivepointList;
+ typedef synfig::ValueNode_DynamicList::ListEntry::ActivepointList ActivepointList;
ActivepointList::iterator iter;
ValueNode_DynamicList::ListEntry::ActivepointList::const_iterator
ValueNode_DynamicList::ListEntry::find_next(const Time& x)const
{
- typedef sinfg::ValueNode_DynamicList::ListEntry::ActivepointList ActivepointList;
+ typedef synfig::ValueNode_DynamicList::ListEntry::ActivepointList ActivepointList;
ActivepointList::const_iterator iter;
ValueNode_DynamicList::ListEntry::ActivepointList::iterator
ValueNode_DynamicList::ListEntry::find_prev(const Time& x)
{
- typedef sinfg::ValueNode_DynamicList::ListEntry::ActivepointList ActivepointList;
+ typedef synfig::ValueNode_DynamicList::ListEntry::ActivepointList ActivepointList;
ActivepointList::iterator iter;
iter=timing_info.end();
ValueNode_DynamicList::ListEntry::ActivepointList::const_iterator
ValueNode_DynamicList::ListEntry::find_prev(const Time& x)const
{
- typedef sinfg::ValueNode_DynamicList::ListEntry::ActivepointList ActivepointList;
+ typedef synfig::ValueNode_DynamicList::ListEntry::ActivepointList ActivepointList;
ActivepointList::const_iterator iter;
iter=timing_info.end();
float
ValueNode_DynamicList::ListEntry::amount_at_time(const Time &t,bool *rising)const
{
- typedef sinfg::ValueNode_DynamicList::ListEntry::Activepoint Activepoint;
- typedef sinfg::ValueNode_DynamicList::ListEntry::ActivepointList ActivepointList;
+ typedef synfig::ValueNode_DynamicList::ListEntry::Activepoint Activepoint;
+ typedef synfig::ValueNode_DynamicList::ListEntry::ActivepointList ActivepointList;
if(timing_info.empty())
return 1.0f;
bool
ValueNode_DynamicList::ListEntry::status_at_time(const Time &t)const
{
- typedef sinfg::ValueNode_DynamicList::ListEntry::Activepoint Activepoint;
- typedef sinfg::ValueNode_DynamicList::ListEntry::ActivepointList ActivepointList;
+ typedef synfig::ValueNode_DynamicList::ListEntry::Activepoint Activepoint;
+ typedef synfig::ValueNode_DynamicList::ListEntry::ActivepointList ActivepointList;
ActivepointList::const_iterator entry_iter;
ActivepointList::const_iterator prev_iter;
ret_list.push_back((*iter->value_node)(t));
else
{
- sinfg::warning(string("ValueNode_DynamicList::operator()():")+_("List type/item type mismatch, throwing away mismatch"));
+ synfig::warning(string("ValueNode_DynamicList::operator()():")+_("List type/item type mismatch, throwing away mismatch"));
}
}
}
if(list.empty())
- sinfg::warning(string("ValueNode_DynamicList::operator()():")+_("No entries in list"));
+ synfig::warning(string("ValueNode_DynamicList::operator()():")+_("No entries in list"));
else
if(ret_list.empty())
- sinfg::warning(string("ValueNode_DynamicList::operator()():")+_("No entries in ret_list"));
+ synfig::warning(string("ValueNode_DynamicList::operator()():")+_("No entries in ret_list"));
return ret_list;
}
return curr_item;
}
-const sinfg::Node::time_set & ValueNode_DynamicList::ListEntry::get_times() const
+const synfig::Node::time_set & ValueNode_DynamicList::ListEntry::get_times() const
{
- sinfg::ActivepointList::const_iterator j = timing_info.begin(),
+ synfig::ActivepointList::const_iterator j = timing_info.begin(),
end = timing_info.end();
//must remerge with all the other values because we don't know if we've changed...