diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2008-04-11 08:03:13 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2008-04-11 08:03:13 +0000 |
| commit | b95db4b4d6c41793e804a235a869cb5107d35b22 (patch) | |
| tree | 82028b14024cfbb8a33353017ef6fcd90793ff47 /src/snap.h | |
| parent | Cmake: Correct INKSCAPE_LIBDIR value in config.h.cmake, to correct compiling ... (diff) | |
| download | inkscape-b95db4b4d6c41793e804a235a869cb5107d35b22.tar.gz inkscape-b95db4b4d6c41793e804a235a869cb5107d35b22.zip | |
Refactor snapping mechanisms: in seltrans.cpp, a GSList was converted to a std::list in four different places. Now this is handled in only one place
(bzr r5407)
Diffstat (limited to 'src/snap.h')
| -rw-r--r-- | src/snap.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/snap.h b/src/snap.h index 8bab5b0cf..0de8902f4 100644 --- a/src/snap.h +++ b/src/snap.h @@ -61,7 +61,7 @@ public: NR::Point const &p, bool const &first_point, std::vector<NR::Point> &points_to_snap, - std::list<SPItem const *> const &it, + std::vector<SPItem const *> const &it, std::vector<NR::Point> *unselected_nodes) const; Inkscape::SnappedPoint constrainedSnap(Inkscape::Snapper::PointType t, @@ -74,37 +74,37 @@ public: bool const &first_point, std::vector<NR::Point> &points_to_snap, Inkscape::Snapper::ConstraintLine const &c, - std::list<SPItem const *> const &it) const; + std::vector<SPItem const *> const &it) const; Inkscape::SnappedPoint guideSnap(NR::Point const &p, NR::Point const &guide_normal) const; Inkscape::SnappedPoint freeSnapTranslation(Inkscape::Snapper::PointType t, std::vector<NR::Point> const &p, - std::list<SPItem const *> const &it, + std::vector<SPItem const *> const &it, NR::Point const &tr) const; Inkscape::SnappedPoint constrainedSnapTranslation(Inkscape::Snapper::PointType t, std::vector<NR::Point> const &p, - std::list<SPItem const *> const &it, + std::vector<SPItem const *> const &it, Inkscape::Snapper::ConstraintLine const &c, NR::Point const &tr) const; Inkscape::SnappedPoint freeSnapScale(Inkscape::Snapper::PointType t, std::vector<NR::Point> const &p, - std::list<SPItem const *> const &it, + std::vector<SPItem const *> const &it, NR::scale const &s, NR::Point const &o) const; Inkscape::SnappedPoint constrainedSnapScale(Inkscape::Snapper::PointType t, std::vector<NR::Point> const &p, - std::list<SPItem const *> const &it, + std::vector<SPItem const *> const &it, NR::scale const &s, NR::Point const &o) const; Inkscape::SnappedPoint constrainedSnapStretch(Inkscape::Snapper::PointType t, std::vector<NR::Point> const &p, - std::list<SPItem const *> const &it, + std::vector<SPItem const *> const &it, NR::Coord const &s, NR::Point const &o, NR::Dim2 d, @@ -112,7 +112,7 @@ public: Inkscape::SnappedPoint freeSnapSkew(Inkscape::Snapper::PointType t, std::vector<NR::Point> const &p, - std::list<SPItem const *> const &it, + std::vector<SPItem const *> const &it, NR::Coord const &s, NR::Point const &o, NR::Dim2 d) const; @@ -180,7 +180,7 @@ private: Inkscape::SnappedPoint _snapTransformed(Inkscape::Snapper::PointType type, std::vector<NR::Point> const &points, - std::list<SPItem const *> const &ignore, + std::vector<SPItem const *> const &ignore, bool constrained, Inkscape::Snapper::ConstraintLine const &constraint, Transformation transformation_type, |
