summaryrefslogtreecommitdiffstats
path: root/src/snap.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 2nd attempt at fixing the crash introduced in rev. #9692. This should nail it!Diederik van Lierop2010-08-151-2/+2
| | | (bzr r9714)
* Fix a crash and add more safety checks to catch NULL pointersDiederik van Lierop2010-08-141-4/+22
| | | (bzr r9713)
* Fix a crash introduced by my previous commitDiederik van Lierop2010-08-111-1/+0
| | | (bzr r9701)
* Implement constrained snapping to nodesDiederik van Lierop2010-08-101-4/+4
| | | (bzr r9696)
* Add a constrained snap method that takes multiple constraints. This reduces ↵Diederik van Lierop2010-08-071-0/+62
| | | | | the code repetitiveness in the node tool (bzr r9692)
* While rotating, don't try snapping points coincident with the rotation centerDiederik van Lierop2010-07-261-5/+15
| | | (bzr r9652)
* 1) Snap to transformation center even if it's outside of the bounding box of ↵Diederik van Lierop2010-07-251-1/+4
| | | | | | | the parent item 2) In some cases the snap source indicator wasn't shown (bzr r9648)
* Avoid self-snapping when dragging a rotation center, and draw the rotation ↵Diederik van Lierop2010-07-241-0/+3
| | | | | center at the snapped position (bzr r9641)
* - Remove some old code which snapped the rotation center to the bbox, and ↵Diederik van Lierop2010-07-201-3/+2
| | | | | | | which discarded all of the snapping settings - Improve the logic behind the snapping buttons, i.e. what snaps to what for each of the buttons (bzr r9634)
* - do not use shift to disable snapping while holding shift to rotate a guideDiederik van Lierop2010-07-181-2/+1
| | | | | | - snap guides to paths too - always show the same snap indicator (bzr r9625)
* Simplify code related to snapping while rotatingDiederik van Lierop2010-07-171-9/+5
| | | (bzr r9619)
* - Snap while rotating an object using the selector toolDiederik van Lierop2010-07-121-34/+85
| | | | | | - 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-6/+3
| | | (bzr r9402)
* Fix bbox snapping as reported in LP bug #562205Diederik van Lierop2010-04-181-2/+15
| | | | | | Fixed bugs: - https://launchpad.net/bugs/562205 (bzr r9351)
* New node tool: implement handle snappingKrzysztof Kosi??ski2010-03-141-14/+7
| | | | | | Fixed bugs: - https://launchpad.net/bugs/538487 (bzr r9192)
* Don't snap to points which are off-screenDiederik van Lierop2010-03-081-8/+12
| | | (bzr r9167)
* 1) Fix moving by an integer multiple of the grid spacing (<alt>-dragging in ↵Diederik van Lierop2010-02-251-5/+13
| | | | | | | | | | the selector tool) 2) Allow constrained translation for 1) (with <ctrl>) 3) Fix snapping to the grid when pasting 4) Show snap indicators for all of the above 5) Implement snap delay mechanism for 1) and 2) (bzr r9113)
* 1) Making snapping behaviour for paraxial lines (in the pen tool) similar to ↵Diederik van Lierop2010-02-221-3/+18
| | | | | | | | other tools 2) Always apply the constraint when asking for a constrained snap 3) Show snap indicator when applying a constraint (bzr r9105)
* Make sure that guides always snap correctly when dropping them, and improve ↵Diederik van Lierop2010-02-211-1/+1
| | | | | perseverance of snap-indicator (bzr r9103)
* Fix compilation error introduced by my previous commitDiederik van Lierop2010-02-121-1/+1
| | | (bzr r9083)
* Constrained snapping: always enforce constraint, even when we didn't snapDiederik van Lierop2010-02-121-3/+5
| | | (bzr r9082)
* Finally introducing the pre-snap indicatorDiederik van Lierop2010-01-301-0/+16
| | | (bzr r9034)
* Remove redundancy from snapping API (type of snapsource no longer has to be ↵Diederik van Lierop2010-01-231-54/+40
| | | | | specified explicitly) (bzr r9014)
* Make snapping while scaling behave similar to other transformations, which ↵Diederik van Lierop2010-01-211-31/+14
| | | | | makes it more intuitive. (bzr r9011)
* * Merge from trunkKrzysztof Kosi??ski2010-01-141-106/+109
|\ | | | | | | | | | | * 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-93/+94
| | | | | | | | | | for the devs) (bzr r8960)
| * Refactor snapping of gradient handles; now behaves like all other snapping, ↵Diederik van Lierop2010-01-011-3/+3
| | | | | | | | | | | | | | | | i.e. no more snapping to imaginary infinite lines along the bounding box Fixed bugs: - https://launchpad.net/bugs/371001 (bzr r8932)
| * refactoring the snapping code (laying the groundwork for my next commit ↵Diederik van Lierop2009-12-241-39/+41
| | | | | | | | | | which reduces snap jitter) (bzr r8906)
* | * Implement node snapping.Krzysztof Kosi??ski2010-01-101-53/+28
|/ | | | | | | | | | | | | * 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)
* - fix bug #414142 (Moving path nodes twice is hard when snap is enabled)Diederik van Lierop2009-08-231-1/+1
| | | | | - constrained snap: use projected point to calculate the snap distance (bzr r8526)
* When dragging a knot along a constraint line, then allow snapping the ↵Diederik van Lierop2009-08-231-0/+3
| | | | | position of the mouse pointer instead of its projection onto the constraint line (for this a check box has been added to the preferences dialog) (bzr r8523)
* Revert recent refactoring changes by johnce because they break the build, ↵Maximilian Albert2009-08-061-1/+1
| | | | | which cannot be fixed easily. (bzr r8422)
* SPDocument->Documentjohnce2009-08-051-1/+1
| | | (bzr r8404)
* Snap guides to grids (fixes bug #170741)Diederik van Lierop2009-08-021-17/+24
| | | (bzr r8381)
* Snap guides to intersections of curves too (see bug #405419)Diederik van Lierop2009-07-291-5/+11
| | | (bzr r8361)
* Make the snap delay mechanism easier to implement for the devs, and get rid ↵Diederik van Lierop2009-07-181-24/+2
| | | | | of the related warning messages (bzr r8302)
* Remove an unused parameter from the snapping APIDiederik van Lierop2009-06-201-9/+3
| | | (bzr r8119)
* Documenting of the snapping APIDiederik van Lierop2009-06-181-108/+279
| | | (bzr r8111)
* When dragging the origin of a guide along that guide, we should use ↵Diederik van Lierop2009-06-021-2/+38
| | | | | constrained snapping instead of free snapping. Also make sure that we snap to paths too, not just to guides (bzr r7973)
* Fix two "snap window not opened" warningsDiederik van Lierop2009-04-121-3/+3
| | | (bzr r7693)
* Fix crash: desktop does not always have an event_context attached to it!Diederik van Lierop2009-04-071-3/+3
| | | (bzr r7660)
* - Move snap delay mechanism to the event context (used to be in SPCanvas)Diederik van Lierop2009-03-291-14/+17
| | | | | | - Rename lots of variables and methods to make them easier to understand - Add snapping to the connector tool (bzr r7589)
* Warning cleanupJon A. Cruz2009-03-161-1/+1
| | | (bzr r7502)
* Whitespace cleanupJon A. Cruz2009-03-161-48/+48
| | | (bzr r7501)
* Implement constrained snapping when dragging the position and size handles ↵Diederik van Lierop2009-03-151-4/+8
| | | | | 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-4/+0
| | | (bzr r7491)
* * Implement constrained snapping of knotsDiederik van Lierop2009-03-131-2/+0
| | | | | | * 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-5/+29
| | | (bzr r7370)
* The snap indicator's tooltip now displays "A to B", whereas before it only ↵Diederik van Lierop2009-02-201-60/+70
| | | | | displayed "B". (bzr r7335)
* Add buttons for snapping to grids and/or guidesDiederik van Lierop2009-01-281-1/+1
| | | (bzr r7200)