**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2008 Gerco Ballintijn
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
return -channels[chan].values[time];
}
+
+ static bool is_not_supported(const synfigapp::ValueDesc& x)
+ {
+ return x.get_value_type() == ValueBase::TYPE_STRING
+ || x.get_value_type() == ValueBase::TYPE_CANVAS
+ || x.get_value_type() == ValueBase::TYPE_GRADIENT
+ || x.get_value_type() == ValueBase::TYPE_LIST
+ || x.get_value_type() == ValueBase::TYPE_SEGMENT;
+ }
};
/* === M E T H O D S ======================================================= */
std::list<synfigapp::ValueDesc>::iterator iter;
for(iter=value_descs.begin();iter!=value_descs.end();++iter)
{
+ if (CurveStruct::is_not_supported(*iter))
+ continue;
+
try {
curve_list_.push_back(*iter);
if(iter->is_value_node())
get_window()->draw_rectangle(gc, false, 0, round_to_int((0-r_bottom)/dr), w, 0);
// Draw current time
- gc->set_rgb_fg_color(Gdk::Color("#00007f"));
+ gc->set_rgb_fg_color(Gdk::Color("#0000ff")); // It should be user selectable
get_window()->draw_rectangle(gc, false, round_to_int((time_adjustment_->get_value()-t_begin)/dt), 0, 0, h);
+ // Draw curves for the valuenodes stored in the curve list
for(curve_iter=curve_list_.begin();curve_iter!=curve_list_.end();++curve_iter)
{
Real t;