From 07d32ff9bade493f2549e8e90c32d11ba12b199d Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Sat, 31 Jan 2009 13:51:52 +0000 Subject: Store the snapper tolerances in the snap-preferences instead of in each snapper individualy. This way we don't have to update all snappers when the namedview has been updated (and we can get rid of the _update_snap_distances() call) (bzr r7208) --- src/guide-snapper.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/guide-snapper.h') diff --git a/src/guide-snapper.h b/src/guide-snapper.h index f36d03499..dd5581654 100644 --- a/src/guide-snapper.h +++ b/src/guide-snapper.h @@ -31,6 +31,9 @@ public: GuideSnapper(SnapManager *sm, Geom::Coord const d); bool ThisSnapperMightSnap() const; + Geom::Coord getSnapperTolerance() const; //returns the tolerance of the snapper in screen pixels (i.e. independent of zoom) + bool getSnapperAlwaysSnap() const; //if true, then the snapper will always snap, regardless of its tolerance + private: LineList _getSnapLines(Geom::Point const &p) const; void _addSnappedLine(SnappedConstraints &sc, Geom::Point const snapped_point, Geom::Coord const snapped_distance, Geom::Point const normal_to_line, Geom::Point const point_on_line) const; -- cgit v1.2.3