Module: synfig
Branch: genete_width_points
Commit: bda27894f665b508e46516c81cc4f7f0c62799a5
URL:
http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=bda27894f665b508e46516c81cc4f7f0c62799a5
Author: Carlos Lopez <car...@pcnuevo.(none)>
Date: Sun Aug 2 10:32:24 2009 +0200
Allow wlinepoints be drawn in the curves panel.
---
synfig-studio/trunk/src/gtkmm/widget_curves.cpp | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/synfig-studio/trunk/src/gtkmm/widget_curves.cpp
b/synfig-studio/trunk/src/gtkmm/widget_curves.cpp
index 2260dad..556ba1d 100644
--- a/synfig-studio/trunk/src/gtkmm/widget_curves.cpp
+++ b/synfig-studio/trunk/src/gtkmm/widget_curves.cpp
@@ -219,6 +219,19 @@ struct studio::Widget_Curves::CurveStruct : sigc::trackable
channels.back().name="t2.y";
channels.back().color=Gdk::Color("#7f7f00");
break;
+ case ValueBase::TYPE_WLINEPOINT:
+ channels.push_back(Channel());
+ channels.back().name="position";
+ channels.back().color=Gdk::Color("#007f00");
+
+ channels.push_back(Channel());
+ channels.back().name="width";
+ channels.back().color=Gdk::Color("#7f0000");
+
+ channels.push_back(Channel());
+ channels.back().name="origin";
+ channels.back().color=Gdk::Color("#007f7f");
+ break;
default:
throw synfig::Exception::BadType("Bad type for
curves");
}
@@ -284,6 +297,10 @@ struct studio::Widget_Curves::CurveStruct : sigc::trackable
channels[7].values[time]=value.get(BLinePoint()).get_tangent2()[0];
channels[8].values[time]=value.get(BLinePoint()).get_tangent2()[1];
break;
+ case ValueBase::TYPE_WLINEPOINT:
+
channels[0].values[time]=value.get(WLinePoint()).get_position();
+
channels[1].values[time]=value.get(WLinePoint()).get_width();
+
channels[2].values[time]=value.get(WLinePoint()).get_origin();
default:
return 0;
}
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl