summaryrefslogtreecommitdiffstats
path: root/src/guide-snapper.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Clarify licensesMax Gaukler2018-11-081-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
* Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot2018-06-181-2/+2
| | | | | This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
* Move classes derived from SPObject to own directory.Tavmjong Bah2018-01-301-2/+3
| | | | A lot of header clean-up.
* cppification: GSList replaced by vectors (mostly related to guides and grids)Marc Jeanmougin2015-12-051-5/+4
| | | (bzr r14504.1.1)
* Refactor SPGuide to use more C++Liam P. White2014-10-041-1/+1
| | | (bzr r13341.1.241)
* pass class variables by reference for performanceKris De Gussem2014-01-121-4/+4
| | | (bzr r12917)
* Snap to grid/guide lines perpendicularlyDiederik van Lierop2012-02-141-0/+5
| | | (bzr r10976)
* Fixing more broken and split doc comments.Jon A. Cruz2011-10-271-2/+1
| | | (bzr r10697)
* Another minor pass of Doxygen cleanup.Jon A. Cruz2011-10-031-2/+2
| | | (bzr r10659)
* Rename the struct "SnappedConstraints" to the more meaningfull ↵Diederik van Lierop2011-09-021-6/+6
| | | | | "IntermSnapResults" (bzr r10612)
* Refactoring of the snapping preferences; mainly about storing all toggles in ↵Diederik van Lierop2011-08-221-1/+1
| | | | | a single array, instead of each having its own member variable (bzr r10569)
* Simplify code related to snapping while rotatingDiederik van Lierop2010-07-171-2/+1
| | | (bzr r9619)
* - Snap while rotating an object using the selector toolDiederik van Lierop2010-07-121-1/+2
| | | | | | - Rename the ConstraintLine class to SnapConstraint - Move some duplicated code to 2geom (bzr r9607)
* Fix bounding box snapping (LP562205, comment 6, issue II)Diederik van Lierop2010-05-081-4/+4
| | | (bzr r9402)
* refactoring the snapping code (laying the groundwork for my next commit ↵Diederik van Lierop2009-12-241-6/+6
| | | | | which reduces snap jitter) (bzr r8906)
* Snap to a guide's origin too (resulting in a 2D constraint), instead of only ↵Diederik van Lierop2009-08-021-10/+17
| | | | | to the guide itself (only 1D constraint) (bzr r8383)
* Remove obsolete includes of libnr files in the snapping codeDiederik van Lierop2009-03-141-2/+0
| | | (bzr r7491)
* * Implement constrained snapping of knotsDiederik van Lierop2009-03-131-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)
* Snap guides to (intersections of) guides (closes bug #331143)Diederik van Lierop2009-02-251-2/+6
| | | (bzr r7370)
* The snap indicator's tooltip now displays "A to B", whereas before it only ↵Diederik van Lierop2009-02-201-2/+2
| | | | | displayed "B". (bzr r7335)
* Store the snapper tolerances in the snap-preferences instead of in each ↵Diederik van Lierop2009-01-311-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)
* Add buttons for snapping to grids and/or guidesDiederik van Lierop2009-01-281-1/+1
| | | (bzr r7200)
* - Snap to the midpoint of shapes and bboxesDiederik van Lierop2009-01-181-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)
* 1) snap midpoints of line segments (both as source and as target)Diederik van Lierop2008-12-141-2/+2
| | | | | 2) snap intersections within a single shape (as source; as target was already implemented) (bzr r7008)
* From trunkTed Gould2008-10-271-1/+1
| | | (bzr r6885)
* If a snapper needs a reference to a SPNamedView or a SPDesktop, then get ↵Diederik van Lierop2008-09-071-4/+4
| | | | | that reference via the SnapManager (instead of storing references in the snapper and accessing them directly) (bzr r6773)
* Move all of the snapper code to 2geomDiederik van Lierop2008-08-111-3/+3
| | | (bzr r6606)
* 1) fix snapping while scalingDiederik van Lierop2008-01-031-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)
* guides: switch from using one position coordinate to Geom::Point point_on_lineJohan B. C. Engelen2007-12-191-2/+1
| | | (bzr r4258)
* rename guide parameters to match snapping code naming convention.Johan B. C. Engelen2007-12-191-2/+2
| | | | | start conversion to use point_on_line instead of position. (bzr r4257)
* Toggle snapping for each grid individuallyDiederik van Lierop2007-12-121-1/+1
| | | (bzr r4219)
* Snap to axonometric grid linesDiederik van Lierop2007-12-081-7/+2
| | | (bzr r4194)
* Renaming classes: SnappedLine -> SnappedLineSegment, and SnappedInfiniteLine ↵Diederik van Lierop2007-11-091-1/+1
| | | | | -> SnappedLine (bzr r4048)
* Warning cleanupJon A. Cruz2007-11-041-1/+1
| | | (bzr r4025)
* Oops, don't use tabs! (replace tabs by 4 spaces)Diederik van Lierop2007-11-031-2/+2
| | | (bzr r4020)
* Groundwork to snap to intersections, e.g. intersections of gridlines with ↵Diederik van Lierop2007-11-031-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)
* 1) Changes to snapping preferences dialogDiederik van Lierop2007-07-281-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)
* Improve readability and remove some unused codeDiederik van Lierop2007-04-191-2/+2
| | | (bzr r2930)
* Improve snapper performance (mainly in by editting WillSnapSomething())Diederik van Lierop2007-04-171-1/+9
| | | (bzr r2917)
* Temporary fix for broken snap functionality: as named view constructor is ↵Andrius Ramanauskas2006-05-041-0/+4
| | | | | never called, virtual tables of Snapper derived classes are never initialized. Fix - calling constructor/destructor on SPNamedView init/release. (bzr r725)
* bulk trailing spaces removal. consistency through MD5 of binaryRalf Stephan2006-02-151-2/+2
| | | (bzr r149)
* moving trunk for module inkscapeMenTaLguY2006-01-161-0/+52
(bzr r1)