diff options
| author | Carl Hetherington <cth@carlh.net> | 2006-05-03 11:01:57 +0000 |
|---|---|---|
| committer | cth103 <cth103@users.sourceforge.net> | 2006-05-03 11:01:57 +0000 |
| commit | 672c5870a6c912439bc0fc2655ed4368b2007082 (patch) | |
| tree | 6435ef7371b017bb318cab12ef82864086826cd7 /src/snap.h | |
| parent | small update for 1480247 fix (cleaned up the redundant code) (diff) | |
| download | inkscape-672c5870a6c912439bc0fc2655ed4368b2007082.tar.gz inkscape-672c5870a6c912439bc0fc2655ed4368b2007082.zip | |
Give SPNamedView a SnapManager instance and use it for all management of snapping settings.
(bzr r701)
Diffstat (limited to 'src/snap.h')
| -rw-r--r-- | src/snap.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/snap.h b/src/snap.h index 6b94fb4c2..252c585c9 100644 --- a/src/snap.h +++ b/src/snap.h @@ -20,15 +20,15 @@ #include <libnr/nr-coord.h> #include <libnr/nr-dim2.h> #include <libnr/nr-forward.h> -#include "snapper.h" +#include "grid-snapper.h" +#include "guide-snapper.h" +#include "object-snapper.h" class SPNamedView; class SnapManager { public: - SnapManager(SPNamedView const *v) : namedview(v) {} - bool willSnapSomething() const; Inkscape::SnappedPoint freeSnap(Inkscape::Snapper::PointType t, @@ -60,8 +60,12 @@ public: std::list<SPItem const *> const &it, NR::Point const &tr) const; -private: - SPNamedView const *namedview; + Inkscape::GridSnapper grid; + Inkscape::GuideSnapper guide; + Inkscape::ObjectSnapper object; + + typedef std::list<const Inkscape::Snapper*> SnapperList; + SnapperList getSnappers() const; }; |
