summaryrefslogtreecommitdiffstats
path: root/src/snap.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* Remove some SP_ACTIVE_DESKTOP() callsDiederik van Lierop2009-01-251-6/+4
| | | (bzr r7174)
* Display the snap source indicator only when snapping is enabledDiederik van Lierop2009-01-251-1/+1
| | | (bzr r7173)
* - The snap-delay mechanism should now be more robust. From now on, it must ↵Diederik van Lierop2009-01-251-3/+18
| | | | | | | be turned on and off explicitely within each context. This prevents delayed snapping events from being fired after the context or context's state has changed. - Creating single dots now snaps (bzr r7172)
* - Snap to the midpoint of shapes and bboxesDiederik van Lierop2009-01-181-0/+19
| | | | | | | - 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)
* Remove some obsolete from_2geom() callsDiederik van Lierop2008-12-301-1/+1
| | | (bzr r7043)
* - Fix bug #304405 (snapping to an intersection of lines at infinity is wrong)Diederik van Lierop2008-12-101-176/+176
| | | | | - Replace tabs by spaces (bzr r6985)
* When snapping only the closest node, draw an indicator at that nodeDiederik van Lierop2008-11-261-37/+90
| | | (bzr r6903)
* Add an option to the preferences to _only_ snap the node closest to the ↵Diederik van Lierop2008-11-241-3/+2
| | | | | mouse pointer (bzr r6899)
* 1) Improve the way the distance to the pointer is taken into account when ↵Diederik van Lierop2008-11-231-16/+19
| | | | | | | | finding the best snap 2) Use this distance also when snapping nodes in the path editor 3) Add a slider in the preferences dialog to control the weighing of this distance (bzr r6895)
* Merge from fe-movedTed Gould2008-11-211-10/+10
| | | (bzr r6891)
* Merge from trunkTed Gould2008-10-311-7/+16
| | | (bzr r6887)
* From trunkTed Gould2008-10-271-88/+25
| | | (bzr r6885)
* Merging from trunkTed Gould2008-10-111-8/+26
| | | (bzr r6884)
* - refactor snapping code, removing code duplicationDiederik van Lierop2008-09-211-62/+48
| | | | | - fix snapping to page corners (bzr r6863)
* If a snapper needs a reference to a SPNamedView or a SPDesktop, then get ↵Diederik van Lierop2008-09-071-2/+7
| | | | | that reference via the SnapManager (instead of storing references in the snapper and accessing them directly) (bzr r6773)
* Remove pointer to SPDesktop from ObjectSnapperDiederik van Lierop2008-09-071-3/+1
| | | (bzr r6772)