diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-12-12 18:50:47 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-12-12 18:50:47 +0000 |
| commit | a26a6461f2fd95fb81baed3d2949a432b4799fdf (patch) | |
| tree | b38c1b811ccf41a142ed9320836dec73ed1d829b /src/snapper.h | |
| parent | Do NOT use frames in the snapping tab in the document properties dialog ;-) (diff) | |
| download | inkscape-a26a6461f2fd95fb81baed3d2949a432b4799fdf.tar.gz inkscape-a26a6461f2fd95fb81baed3d2949a432b4799fdf.zip | |
Toggle snapping for each grid individually
(bzr r4219)
Diffstat (limited to 'src/snapper.h')
| -rw-r--r-- | src/snapper.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/snapper.h b/src/snapper.h index c5c111cff..cf2533f22 100644 --- a/src/snapper.h +++ b/src/snapper.h @@ -55,9 +55,10 @@ public: /** * \return true if this Snapper will snap at least one kind of point. */ - virtual bool ThisSnapperMightSnap() const {return (_enabled && _snap_from != 0);} // will likely be overridden by derived classes + virtual bool ThisSnapperMightSnap() const {return (_snap_enabled && _snap_from != 0);} // will likely be overridden by derived classes void setEnabled(bool s); + bool getEnabled() const {return _snap_enabled;} void freeSnap(SnappedConstraints &sc, PointType const &t, @@ -117,7 +118,7 @@ public: protected: SPNamedView const *_named_view; int _snap_from; ///< bitmap of point types that we will snap from - bool _enabled; ///< true if this snapper is enabled, otherwise false + bool _snap_enabled; ///< true if this snapper is enabled, otherwise false private: |
