Working on 1827966: Angles are recalculated to 360 mod. New signal for class Duck...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 12 Nov 2007 08:34:13 +0000 (08:34 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 12 Nov 2007 08:34:13 +0000 (08:34 +0000)
git-svn-id: http://svn.voria.com/code@1137 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/duck.h

index 89bebdc..618662f 100644 (file)
@@ -102,6 +102,7 @@ public:
 private:
 
        sigc::signal<bool,const synfig::Point &> signal_edited_;
+       sigc::signal<bool,const synfig::Angle &> signal_edited_angle_;
        sigc::signal<void> signal_user_click_[5];
 
        Type type_;
@@ -139,6 +140,7 @@ public:
        ~Duck();
 
        sigc::signal<bool,const synfig::Point &> &signal_edited() { return signal_edited_; }
+       sigc::signal<bool,const synfig::Angle &> &signal_edited_angle() { return signal_edited_angle_; }
        sigc::signal<void> &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);