summaryrefslogtreecommitdiffstats
path: root/src/snapper.h (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-equals-default pass.Emmanuel Gil Peyrot2018-06-181-1/+1
| | | | | This replaces empty constructors and destructors with the default keyword.
* static code analysisKris De Gussem2015-12-071-1/+1
| | | (bzr r14509)
* Refactoring of the code that handles transformations and snapping in the ↵Diederik van Lierop2015-09-131-0/+2
| | | | | selector tool and the node tool. Splitting large chunks of code into some small classes, and eliminating some wrapper methods which were all just too similar (bzr r14363)
* Header cleanup: stop using Glib types where they aren't truly needed. Eases ↵Liam P. White2014-08-311-7/+6
| | | | | GThread deprecation errors. (bzr r13341.1.190)
* Remove unused includes to tidy up the code.Martin Owens2014-03-091-1/+0
| | | (bzr r13132)
* cppcheckKris De Gussem2012-06-121-4/+4
| | | (bzr r11492)
* mixed usage of class and struct for same objectKris De Gussem2011-12-111-1/+1
| | | (bzr r10766.1.1)
* cppcheck: variable initialisation / fix possible memory leakKris De Gussem2011-10-221-1/+1
| | | (bzr r10688)
* Rename the struct "SnappedConstraints" to the more meaningfull ↵Diederik van Lierop2011-09-021-3/+3
| | | | | "IntermSnapResults" (bzr r10612)
* Fix bug related to snapping to path intersectionsDiederik van Lierop2011-08-281-1/+0
| | | (bzr r10587)
* Allow snapping to path intersections without snapping to the paths themselvesDiederik van Lierop2011-08-271-1/+1
| | | (bzr r10585)
* Implement constrained snapping to nodesDiederik van Lierop2010-08-101-5/+12
| | | (bzr r9696)
* - Snap while rotating an object using the selector toolDiederik van Lierop2010-07-121-17/+46
| | | | | | - Rename the ConstraintLine class to SnapConstraint - Move some duplicated code to 2geom (bzr r9607)
* Remove redundancy from snapping API (type of snapsource no longer has to be ↵Diederik van Lierop2010-01-231-2/+0
| | | | | specified explicitly) (bzr r9014)
* * Merge from trunkKrzysztof Kosi??ski2010-01-141-20/+16
|\ | | | | | | | | | | * Update to new snapping API * Modify the join action slightly (bzr r8846.2.11)
| * Refactoring the snapping API (making it easier to maintain and understand ↵Diederik van Lierop2010-01-091-8/+4
| | | | | | | | | | for the devs) (bzr r8960)
| * Warning cleanup.Jon A. Cruz2009-12-271-2/+2
| | | | | | (bzr r8915)
| * refactoring the snapping code (laying the groundwork for my next commit ↵Diederik van Lierop2009-12-241-14/+14
| | | | | | | | | | which reduces snap jitter) (bzr r8906)
* | * Implement node snapping.Krzysztof Kosi??ski2010-01-101-0/+1
|/ | | | | | | | | | | | | * Fix minor bug in linear grow. * Add --fixes. * Move some node selection-related functions to ControlPointSelection. Fixed bugs: - https://launchpad.net/bugs/170561 - https://launchpad.net/bugs/171893 - https://launchpad.net/bugs/182585 - https://launchpad.net/bugs/446773 (bzr r8846.2.9)
* Optionaly snap to invisible grid lines too (when zoomed out). See the grids ↵Diederik van Lierop2009-04-251-2/+6
| | | | | tab in the document properties dialog. This closes bug #172115 (bzr r7773)
* Implement constrained snapping when dragging the position and size handles ↵Diederik van Lierop2009-03-151-0/+6
| | | | | of a rectangle in the node tool, with the ctrl-key being pressed. (bzr r7497)
* Remove obsolete includes of libnr files in the snapping codeDiederik van Lierop2009-03-141-2/+0
| | | (bzr r7491)
* The snap indicator's tooltip now displays "A to B", whereas before it only ↵Diederik van Lierop2009-02-201-1/+3
| | | | | displayed "B". (bzr r7335)
* Fixed dangerous base-class methods that were missing returns by converting ↵Jon A. Cruz2009-02-041-2/+2
| | | | | them to abstract. (bzr r7226)
* Store the snapper tolerances in the snap-preferences instead of in each ↵Diederik van Lierop2009-01-311-9/+2
| | | | | 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/+2
| | | (bzr r7200)
* 1) snap midpoints of line segments (both as source and as target)Diederik van Lierop2008-12-141-6/+6
| | | | | 2) snap intersections within a single shape (as source; as target was already implemented) (bzr r7008)
* Merge from fe-movedTed Gould2008-11-211-2/+2
| | | (bzr r6891)
* From trunkTed Gould2008-10-271-20/+12
| | | (bzr r6885)
* If a snapper needs a reference to a SPNamedView or a SPDesktop, then get ↵Diederik van Lierop2008-09-071-5/+5
| | | | | 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-16/+16
| | | (bzr r6606)
* Snap to intersections of any kind of path (were we previously only could ↵Diederik van Lierop2008-08-081-0/+2
| | | | | snap to intersections of line-segments) (bzr r6597)
* NR::Maybe => boost::optionalJohan B. C. Engelen2008-08-051-3/+3
| | | (bzr r6569)
* Fix snapping for constrained translation in the selector toolDiederik van Lierop2008-05-201-0/+5
| | | (bzr r5722)
* Warning and whitespace cleanupJon A. Cruz2008-05-011-24/+24
| | | (bzr r5564)
* - Major refactoring of snapping related code...Diederik van Lierop2008-04-301-57/+7
| | | | | - Enabling snap indicator for all remaining tools (bzr r5556)
* Refactor snapping mechanisms: in seltrans.cpp, a GSList was converted to a ↵Diederik van Lierop2008-04-111-4/+4
| | | | | std::list in four different places. Now this is handled in only one place (bzr r5407)
* Major overhaul of the selector tool's internals to improve handling of ↵Diederik van Lierop2008-03-251-1/+2
| | | | | transformations, origins and snapping, for both visual and geometric bounding boxes (see for example bug #174046 in Launchpad) (bzr r5189)
* Node tool: snap to paths and their nodes, incl. to the path currently being ↵Diederik van Lierop2008-03-081-3/+5
| | | | | edited (bzr r4989)
* 1) fix snapping while scalingDiederik van Lierop2008-01-031-6/+10
| | | | | | | 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)
* Toggle snapping for each grid individuallyDiederik van Lierop2007-12-121-2/+3
| | | (bzr r4219)
* Renaming classes: SnappedLine -> SnappedLineSegment, and SnappedInfiniteLine ↵Diederik van Lierop2007-11-091-3/+3
| | | | | -> SnappedLine (bzr r4048)
* Oops, don't use tabs! (replace tabs by 4 spaces)Diederik van Lierop2007-11-031-19/+19
| | | (bzr r4020)
* Groundwork to snap to intersections, e.g. intersections of gridlines with ↵Diederik van Lierop2007-11-031-7/+23
| | | | | 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)
* Improving the performance of the object snapperDiederik van Lierop2007-09-051-1/+12
| | | (bzr r3689)
* Implement snapping of guides while dragging them, and snap TO item centers ↵Diederik van Lierop2007-08-281-0/+1
| | | | | (we only had snapping FROM item centers so far) (bzr r3603)
* 1) Changes to snapping preferences dialogDiederik van Lierop2007-07-281-14/+14
| | | | | | 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-1/+1
| | | (bzr r2930)
* Improve snapper performance (mainly in by editting WillSnapSomething())Diederik van Lierop2007-04-171-3/+7
| | | (bzr r2917)