From 9d1365da9d6ed6312e4f034df40aa64dec35c9e0 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Tue, 2 Jun 2009 04:36:17 +0000 Subject: When dragging the origin of a guide along that guide, we should use constrained snapping instead of free snapping. Also make sure that we snap to paths too, not just to guides (bzr r7973) --- src/object-snapper.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/object-snapper.h') diff --git a/src/object-snapper.h b/src/object-snapper.h index f220106e3..baa60a096 100644 --- a/src/object-snapper.h +++ b/src/object-snapper.h @@ -53,13 +53,17 @@ public: GUIDE_TRANSL_SNAP_X, // For snapping a vertical guide (normal in the X-direction) to objects, GUIDE_TRANSL_SNAP_Y, // For snapping a horizontal guide (normal in the Y-direction) to objects ANGLED_GUIDE_TRANSL_SNAP, // For snapping an angled guide, while translating it accross the desktop - ANGLED_GUIDE_ROT_SNAP, // For snapping an angled guide, while rotating it around some pivot point TRANSL_SNAP_XY}; // All other cases; for snapping to objects, other than guides - void guideSnap(SnappedConstraints &sc, + void guideFreeSnap(SnappedConstraints &sc, Geom::Point const &p, Geom::Point const &guide_normal) const; + void guideConstrainedSnap(SnappedConstraints &sc, + Geom::Point const &p, + Geom::Point const &guide_normal, + ConstraintLine const &c) const; + bool ThisSnapperMightSnap() const; bool GuidesMightSnap() const; -- cgit v1.2.3