summaryrefslogtreecommitdiffstats
path: root/src/guide-snapper.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-11-08Clarify licensesMax Gaukler1-1/+2
- add license headers to everything - convert a few files from public domain or LGPL2.1+ to GPL2+ - some archaeology to clarify which files are from which library
2018-06-18Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot1-2/+2
This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
2018-01-30Move classes derived from SPObject to own directory.Tavmjong Bah1-2/+3
A lot of header clean-up.
2015-12-05cppification: GSList replaced by vectors (mostly related to guides and grids)Marc Jeanmougin1-5/+4
(bzr r14504.1.1)
2014-10-04Refactor SPGuide to use more C++Liam P. White1-1/+1
(bzr r13341.1.241)
2014-01-12pass class variables by reference for performanceKris De Gussem1-4/+4
(bzr r12917)
2012-02-14Snap to grid/guide lines perpendicularlyDiederik van Lierop1-0/+5
(bzr r10976)
2011-10-27Fixing more broken and split doc comments.Jon A. Cruz1-2/+1
(bzr r10697)
2011-10-03Another minor pass of Doxygen cleanup.Jon A. Cruz1-2/+2
(bzr r10659)
2011-09-02Rename the struct "SnappedConstraints" to the more meaningfull ↵Diederik van Lierop1-6/+6
"IntermSnapResults" (bzr r10612)
2011-08-22Refactoring of the snapping preferences; mainly about storing all toggles in ↵Diederik van Lierop1-1/+1
a single array, instead of each having its own member variable (bzr r10569)
2010-07-17Simplify code related to snapping while rotatingDiederik van Lierop1-2/+1
(bzr r9619)
2010-07-12- Snap while rotating an object using the selector toolDiederik van Lierop1-1/+2
- Rename the ConstraintLine class to SnapConstraint - Move some duplicated code to 2geom (bzr r9607)
2010-05-08Fix bounding box snapping (LP562205, comment 6, issue II)Diederik van Lierop1-4/+4
(bzr r9402)
2009-12-24refactoring the snapping code (laying the groundwork for my next commit ↵Diederik van Lierop1-6/+6
which reduces snap jitter) (bzr r8906)
2009-08-02Snap to a guide's origin too (resulting in a 2D constraint), instead of only ↵Diederik van Lierop1-10/+17
to the guide itself (only 1D constraint) (bzr r8383)
2009-03-14Remove obsolete includes of libnr files in the snapping codeDiederik van Lierop1-2/+0
(bzr r7491)
2009-03-13* Implement constrained snapping of knotsDiederik van Lierop1-2/+8
* Implement snapping of the rectangle's radius handles * Line snappers: set the snap target in the derived class instead of in findBestSnap() (bzr r7479)
2009-02-25Snap guides to (intersections of) guides (closes bug #331143)Diederik van Lierop1-2/+6
(bzr r7370)
2009-02-20The snap indicator's tooltip now displays "A to B", whereas before it only ↵Diederik van Lierop1-2/+2
displayed "B". (bzr r7335)
2009-01-31Store the snapper tolerances in the snap-preferences instead of in each ↵Diederik van Lierop1-0/+16
snapper individualy. This way we don't have to update all snappers when the namedview has been updated (and we can get rid of the _update_snap_distances() call) (bzr r7208)
2009-01-28Add buttons for snapping to grids and/or guidesDiederik van Lierop1-1/+1
(bzr r7200)
2009-01-18- Snap to the midpoint of shapes and bboxesDiederik van Lierop1-1/+5
- Snap to the midpoint of paths and bbox edges - Refactor the snapping toggle, i.e. what snaps to what when toggling a specific option in the snapping toolbar PS: icons.svg has been modified, so use "make install" if needed (bzr r7144)
2008-12-141) snap midpoints of line segments (both as source and as target)Diederik van Lierop1-2/+2
2) snap intersections within a single shape (as source; as target was already implemented) (bzr r7008)
2008-10-27From trunkTed Gould1-1/+1
(bzr r6885)
2008-09-07If a snapper needs a reference to a SPNamedView or a SPDesktop, then get ↵Diederik van Lierop1-4/+4
that reference via the SnapManager (instead of storing references in the snapper and accessing them directly) (bzr r6773)
2008-08-11Move all of the snapper code to 2geomDiederik van Lierop1-3/+3
(bzr r6606)
2008-01-031) fix snapping while scalingDiederik van Lierop1-1/+1
2) fix constrained snapping 3) improve snapping logic (again), or more specifically: better obey "always snap" 4) refactoring to reduce risk of bugs: renaming variables and methods for better readability, adding class members instead of using std::pairs, etc. (bzr r4379)
2007-12-19guides: switch from using one position coordinate to Geom::Point point_on_lineJohan B. C. Engelen1-2/+1
(bzr r4258)
2007-12-19rename guide parameters to match snapping code naming convention.Johan B. C. Engelen1-2/+2
start conversion to use point_on_line instead of position. (bzr r4257)
2007-12-12Toggle snapping for each grid individuallyDiederik van Lierop1-1/+1
(bzr r4219)
2007-12-08Snap to axonometric grid linesDiederik van Lierop1-7/+2
(bzr r4194)
2007-11-09Renaming classes: SnappedLine -> SnappedLineSegment, and SnappedInfiniteLine ↵Diederik van Lierop1-1/+1
-> SnappedLine (bzr r4048)
2007-11-04Warning cleanupJon A. Cruz1-1/+1
(bzr r4025)
2007-11-03Oops, don't use tabs! (replace tabs by 4 spaces)Diederik van Lierop1-2/+2
(bzr r4020)
2007-11-03Groundwork to snap to intersections, e.g. intersections of gridlines with ↵Diederik van Lierop1-0/+6
guidelines, and of objects with other objects. The snappers used to return only SnappedPoints, but now also SnappedLines and SnappedInfiniteLines can be returned. SnappedPaths will be implemented later. (bzr r4016)
2007-07-281) Changes to snapping preferences dialogDiederik van Lierop1-1/+1
2) Strict snapping implemented, i.e. bbox only to bbox and nodes only to paths/nodes 3) Renaming of some constants to improve readability (bzr r3331)
2007-04-19Improve readability and remove some unused codeDiederik van Lierop1-2/+2
(bzr r2930)
2007-04-17Improve snapper performance (mainly in by editting WillSnapSomething())Diederik van Lierop1-1/+9
(bzr r2917)
2006-05-04Temporary fix for broken snap functionality: as named view constructor is ↵Andrius Ramanauskas1-0/+4
never called, virtual tables of Snapper derived classes are never initialized. Fix - calling constructor/destructor on SPNamedView init/release. (bzr r725)
2006-02-15bulk trailing spaces removal. consistency through MD5 of binaryRalf Stephan1-2/+2
(bzr r149)