]> Shamusworld >> Repos - architektonas/blobdiff - src/dimension.h
Added UI feedback to Dimension object.
[architektonas] / src / dimension.h
index 7ffca2faabf8e72b4473c809c1f8981391cf8c07..32aa2857c3582ee1786faaa70b7f62baf0210c29 100644 (file)
@@ -28,9 +28,14 @@ class Dimension: public Object
                virtual QRectF Extents(void);
                void FlipSides(void);
 
+       protected:
+               void SaveHitState(void);
+               bool HitStateChanged(void);
+
        protected:
                Vector endpoint;                                        // Starting point is Object::position
                Vector oldPoint;                                        // Used for dragging
+               Point oldEndpoint;
 
        private:
                bool dragging;
@@ -41,6 +46,7 @@ class Dimension: public Object
                DimensionType dimensionType;
                bool hitPoint1;
                bool hitPoint2;
+               bool oldHitPoint1, oldHitPoint2;
        public:
                double size;                                            // Size of arrows/text in base units