diff --git a/src/snapper.h b/src/snapper.h
index 89e4f9d7288e8197d0ad536e6e798b35e95e85d9..25e345305e7e4a2bf0e199745a0fa7f2181dbc3e 100644 (file)
--- a/src/snapper.h
+++ b/src/snapper.h
bool getSnapTo(PointType t) const;
::NR::Coord getDistance() const;
- bool willSnapSomething() const;
+ /**
+ * \return true if this Snapper will snap at least one kind of point.
+ */
+ virtual bool ThisSnapperMightSnap() const {return (_enabled && _snap_to != 0);} // will likely be overridden by derived classes
+
void setEnabled(bool s);
std::list<SPItem const *> const &it) const;
protected:
SPNamedView const *_named_view;
+ int _snap_to; ///< bitmap of point types that we will snap to
+ bool _enabled; ///< true if this snapper is enabled, otherwise false
private:
std::list<SPItem const *> const &it) const = 0;
::NR::Coord _distance; ///< snap distance (desktop coordinates)
- int _snap_to; ///< bitmap of point types that we will snap to
- bool _enabled; ///< true if this snapper is enabled, otherwise false
};
}