summaryrefslogtreecommitdiffstats
path: root/src/snapper.h (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-equals-default pass.Emmanuel Gil Peyrot1-1/+1
This replaces empty constructors and destructors with the default keyword.
2015-12-07static code analysisKris De Gussem1-1/+1
(bzr r14509)
2015-09-13Refactoring of the code that handles transformations and snapping in the ↵Diederik van Lierop1-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)
2014-09-27Update to experimental r13565Liam P. White1-7/+6
(bzr r13341.5.16)
2014-08-31Header cleanup: stop using Glib types where they aren't truly needed. Eases ↵Liam P. White1-7/+6
GThread deprecation errors. (bzr r13341.1.190)
2014-03-09Remove unused includes to tidy up the code.Martin Owens1-1/+0
(bzr r13132)
2012-06-12cppcheckKris De Gussem1-4/+4
(bzr r11492)
2011-12-11mixed usage of class and struct for same objectKris De Gussem1-1/+1
(bzr r10766.1.1)
2011-10-22cppcheck: variable initialisation / fix possible memory leakKris De Gussem1-1/+1
(bzr r10688)
2011-09-02Rename the struct "SnappedConstraints" to the more meaningfull ↵Diederik van Lierop1-3/+3
"IntermSnapResults" (bzr r10612)
2011-08-28Fix bug related to snapping to path intersectionsDiederik van Lierop1-1/+0
(bzr r10587)
2011-08-27Allow snapping to path intersections without snapping to the paths themselvesDiederik van Lierop1-1/+1
(bzr r10585)
2010-08-10Implement constrained snapping to nodesDiederik van Lierop1-5/+12
(bzr r9696)
2010-07-12- Snap while rotating an object using the selector toolDiederik van Lierop1-17/+46
- Rename the ConstraintLine class to SnapConstraint - Move some duplicated code to 2geom (bzr r9607)
2010-01-23Remove redundancy from snapping API (type of snapsource no longer has to be ↵Diederik van Lierop1-2/+0
specified explicitly) (bzr r9014)
2010-01-10* Implement node snapping.Krzysztof Kosi??ski1-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)
2010-01-09Refactoring the snapping API (making it easier to maintain and understand ↵Diederik van Lierop1-8/+4
for the devs) (bzr r8960)
2009-12-27Warning cleanup.Jon A. Cruz1-2/+2
(bzr r8915)
2009-12-24refactoring the snapping code (laying the groundwork for my next commit ↵Diederik van Lierop1-14/+14
which reduces snap jitter) (bzr r8906)
2009-04-25Optionaly snap to invisible grid lines too (when zoomed out). See the grids ↵Diederik van Lierop1-2/+6
tab in the document properties dialog. This closes bug #172115 (bzr r7773)
2009-03-15Implement constrained snapping when dragging the position and size handles ↵Diederik van Lierop1-0/+6
of a rectangle in the node tool, with the ctrl-key being pressed. (bzr r7497)
2009-03-14Remove obsolete includes of libnr files in the snapping codeDiederik van Lierop1-2/+0
(bzr r7491)
2009-02-20The snap indicator's tooltip now displays "A to B", whereas before it only ↵Diederik van Lierop1-1/+3
displayed "B". (bzr r7335)
2009-02-04Fixed dangerous base-class methods that were missing returns by converting ↵Jon A. Cruz1-2/+2
them to abstract. (bzr r7226)
2009-01-31Store the snapper tolerances in the snap-preferences instead of in each ↵Diederik van Lierop1-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)
2009-01-28Add buttons for snapping to grids and/or guidesDiederik van Lierop1-1/+2
(bzr r7200)
2008-12-141) snap midpoints of line segments (both as source and as target)Diederik van Lierop1-6/+6
2) snap intersections within a single shape (as source; as target was already implemented) (bzr r7008)
2008-11-21Merge from fe-movedTed Gould1-2/+2
(bzr r6891)
2008-10-27From trunkTed Gould1-20/+12
(bzr r6885)
2008-09-07If a snapper needs a reference to a SPNamedView or a SPDesktop, then get ↵Diederik van Lierop1-5/+5
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-16/+16
(bzr r6606)
2008-08-08Snap to intersections of any kind of path (were we previously only could ↵Diederik van Lierop1-0/+2
snap to intersections of line-segments) (bzr r6597)
2008-08-05NR::Maybe => boost::optionalJohan B. C. Engelen1-3/+3
(bzr r6569)
2008-05-20Fix snapping for constrained translation in the selector toolDiederik van Lierop1-0/+5
(bzr r5722)
2008-05-01Warning and whitespace cleanupJon A. Cruz1-24/+24
(bzr r5564)
2008-04-30- Major refactoring of snapping related code...Diederik van Lierop1-57/+7
- Enabling snap indicator for all remaining tools (bzr r5556)
2008-04-11Refactor snapping mechanisms: in seltrans.cpp, a GSList was converted to a ↵Diederik van Lierop1-4/+4
std::list in four different places. Now this is handled in only one place (bzr r5407)
2008-03-25Major overhaul of the selector tool's internals to improve handling of ↵Diederik van Lierop1-1/+2
transformations, origins and snapping, for both visual and geometric bounding boxes (see for example bug #174046 in Launchpad) (bzr r5189)
2008-03-08Node tool: snap to paths and their nodes, incl. to the path currently being ↵Diederik van Lierop1-3/+5
edited (bzr r4989)
2008-01-031) fix snapping while scalingDiederik van Lierop1-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)
2007-12-12Toggle snapping for each grid individuallyDiederik van Lierop1-2/+3
(bzr r4219)
2007-11-09Renaming classes: SnappedLine -> SnappedLineSegment, and SnappedInfiniteLine ↵Diederik van Lierop1-3/+3
-> SnappedLine (bzr r4048)
2007-11-03Oops, don't use tabs! (replace tabs by 4 spaces)Diederik van Lierop1-19/+19
(bzr r4020)
2007-11-03Groundwork to snap to intersections, e.g. intersections of gridlines with ↵Diederik van Lierop1-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)
2007-09-05Improving the performance of the object snapperDiederik van Lierop1-1/+12
(bzr r3689)
2007-08-28Implement snapping of guides while dragging them, and snap TO item centers ↵Diederik van Lierop1-0/+1
(we only had snapping FROM item centers so far) (bzr r3603)
2007-07-281) Changes to snapping preferences dialogDiederik van Lierop1-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)
2007-04-19Improve readability and remove some unused codeDiederik van Lierop1-1/+1
(bzr r2930)
2007-04-17Improve snapper performance (mainly in by editting WillSnapSomething())Diederik van Lierop1-3/+7
(bzr r2917)