From 59c4341913f56e5fdc21c58ebf2425eadaec1eaa Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 9 May 2006 11:16:07 +0000 Subject: Re-enable link between grid visibility and grid snap. (bzr r795) --- src/snapper.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/snapper.h') diff --git a/src/snapper.h b/src/snapper.h index 33a15bd04..89e4f9d72 100644 --- a/src/snapper.h +++ b/src/snapper.h @@ -46,6 +46,8 @@ public: bool willSnapSomething() const; + void setEnabled(bool s); + SnappedPoint freeSnap(PointType t, NR::Point const &p, SPItem const *it) const; @@ -120,7 +122,8 @@ private: std::list const &it) const = 0; ::NR::Coord _distance; ///< snap distance (desktop coordinates) - int _snap_to; ///< bitmap of point types that we will snap to + int _snap_to; ///< bitmap of point types that we will snap to + bool _enabled; ///< true if this snapper is enabled, otherwise false }; } -- cgit v1.2.3