summaryrefslogtreecommitdiffstats
path: root/src/snap.h
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2011-11-04 21:30:19 +0000
committerDiederik van Lierop <mail@diedenrezi.nl>2011-11-04 21:30:19 +0000
commit224a99dc216119d34eb3ed13d12f123158acfe3c (patch)
treecb012b688f276656612f2994e461fda3622bcd20 /src/snap.h
parentPowerstroke: add erasing of knots with ctrl+alt (LPE parameter editing on-can... (diff)
downloadinkscape-224a99dc216119d34eb3ed13d12f123158acfe3c.tar.gz
inkscape-224a99dc216119d34eb3ed13d12f123158acfe3c.zip
1) Cycle to the next-closest-snap-source when pressing tab, if the snap-closest-point-only-option has been activated. Works for the selector tool, but also when scaling/stretching/skewing a selection of nodes in the node tool
2) Cleanup and simplification of the code that finds the closest snapsource (bzr r10720)
Diffstat (limited to '')
-rw-r--r--src/snap.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/snap.h b/src/snap.h
index fffbbdf6a..3eb4c2b7a 100644
--- a/src/snap.h
+++ b/src/snap.h
@@ -476,7 +476,13 @@ public:
*/
Inkscape::SnappedPoint findBestSnap(Inkscape::SnapCandidatePoint const &p, IntermSnapResults const &isr, bool constrained, bool allowOffScreen = false) const;
- void keepClosestPointOnly(std::vector<Inkscape::SnapCandidatePoint> &points, const Geom::Point &reference) const;
+ /**
+ * Mark the location of the snap source (not the snap target!) on the canvas by drawing a symbol.
+ *
+ * @param point_type Category of points to which the source point belongs: node, guide or bounding box.
+ * @param p The transformed position of the source point, paired with an identifier of the type of the snap source.
+ */
+ void displaySnapsource(Inkscape::SnapCandidatePoint const &p) const;
protected:
SPNamedView const *_named_view;
@@ -543,13 +549,6 @@ private:
Geom::Dim2 const dim,
bool const uniform) const;
- /**
- * Mark the location of the snap source (not the snap target!) on the canvas by drawing a symbol.
- *
- * @param point_type Category of points to which the source point belongs: node, guide or bounding box.
- * @param p The transformed position of the source point, paired with an identifier of the type of the snap source.
- */
- void _displaySnapsource(Inkscape::SnapCandidatePoint const &p) const;
};
#endif // !SEEN_SNAP_H