summaryrefslogtreecommitdiffstats
path: root/src/object-snapper.h
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2008-03-08 11:32:18 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2008-03-08 11:32:18 +0000
commit0a78ad638f3bbcd46631cb2c741fca031356b725 (patch)
treee7e0378939debb249a67c9e658bcef959b3b1a57 /src/object-snapper.h
parentmake the infobox narrower and place add button above it (diff)
downloadinkscape-0a78ad638f3bbcd46631cb2c741fca031356b725.tar.gz
inkscape-0a78ad638f3bbcd46631cb2c741fca031356b725.zip
Node tool: snap to paths and their nodes, incl. to the path currently being edited
(bzr r4989)
Diffstat (limited to 'src/object-snapper.h')
-rw-r--r--src/object-snapper.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/object-snapper.h b/src/object-snapper.h
index 73c622517..ef43af0e9 100644
--- a/src/object-snapper.h
+++ b/src/object-snapper.h
@@ -9,7 +9,7 @@
* Carl Hetherington <inkscape@carlh.net>
* Diederik van Lierop <mail@diedenrezi.nl>
*
- * Copyright (C) 2005 - 2007 Authors
+ * Copyright (C) 2005 - 2008 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
@@ -101,7 +101,8 @@ private:
NR::Point const &p,
bool const &first_point,
std::vector<NR::Point> &points_to_snap,
- std::list<SPItem const *> const &it) const;
+ std::list<SPItem const *> const &it,
+ std::vector<NR::Point> *unselected_nodes) const;
void _doConstrainedSnap(SnappedConstraints &sc,
Inkscape::Snapper::PointType const &t,
@@ -120,7 +121,8 @@ private:
void _snapNodes(SnappedConstraints &sc,
Inkscape::Snapper::PointType const &t,
NR::Point const &p,
- bool const &first_point) const;
+ bool const &first_point,
+ std::vector<NR::Point> *unselected_nodes) const;
void _snapTranslatingGuideToNodes(SnappedConstraints &sc,
Inkscape::Snapper::PointType const &t,
@@ -133,16 +135,20 @@ private:
void _snapPaths(SnappedConstraints &sc,
Inkscape::Snapper::PointType const &t,
NR::Point const &p,
- bool const &first_point) const;
+ bool const &first_point,
+ std::vector<NR::Point> *unselected_nodes,
+ SPPath const *selected_path) const;
void _snapPathsConstrained(SnappedConstraints &sc,
Inkscape::Snapper::PointType const &t,
NR::Point const &p,
bool const &first_point,
ConstraintLine const &c) const;
+ bool isUnselectedNode(NR::Point const &point, std::vector<NR::Point> const *unselected_nodes) const;
void _collectPaths(Inkscape::Snapper::PointType const &t,
- bool const &first_point) const;
+ bool const &first_point,
+ SPPath const *selected_path = NULL) const;
void _clear_paths() const;
bool _snap_to_itemnode;