From: dooglus Date: Mon, 12 Nov 2007 08:34:13 +0000 (+0000) Subject: Working on 1827966: Angles are recalculated to 360 mod. New signal for class Duck... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b1c59507f99d93b61e6eceeb75eede18c6333c0d;p=synfig.git Working on 1827966: Angles are recalculated to 360 mod. New signal for class Duck to indicate changes in angle. git-svn-id: http://svn.voria.com/code@1137 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/duck.h b/synfig-studio/trunk/src/gtkmm/duck.h index 89bebdc..618662f 100644 --- a/synfig-studio/trunk/src/gtkmm/duck.h +++ b/synfig-studio/trunk/src/gtkmm/duck.h @@ -102,6 +102,7 @@ public: private: sigc::signal signal_edited_; + sigc::signal signal_edited_angle_; sigc::signal signal_user_click_[5]; Type type_; @@ -139,6 +140,7 @@ public: ~Duck(); sigc::signal &signal_edited() { return signal_edited_; } + sigc::signal &signal_edited_angle() { return signal_edited_angle_; } sigc::signal &signal_user_click(int i=0) { assert(i>=0); assert(i<5); return signal_user_click_[i]; } void set_guid(const synfig::GUID& x) { guid_=x; } @@ -192,6 +194,8 @@ public: //! Returns the location of the duck synfig::Point get_point()const { return shared_point?*shared_point:point; } + synfig::Angle get_rotations()const { return rotations; }; + synfig::Point get_trans_point()const; void set_trans_point(const synfig::Point &x);