summaryrefslogtreecommitdiffstats
path: root/src/object-snapper.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Replace NR_HUGE by Geom:infinity() in some snapping codeDiederik van Lierop2011-07-181-1/+1
| | | (bzr r10469)
* - rename SPItem::i2d_affine to i2dt_affine, to clarify that it is ↵Johan B. C. Engelen2011-07-171-3/+3
| | | | | | | item-to-desktop, not item-to-document. This should make it easier to spot bugs. - tag some instances where the document-to-desktop transform has been hardcoded (bzr r10466)
* Cleanup of oudated/redundant SP_ITEM() macro use.Jon A. Cruz2011-07-161-2/+8
| | | (bzr r10461)
* Implement decent snapping to text (baseline & anchor), and provide a toggle ↵Diederik van Lierop2011-06-301-99/+131
| | | | | button for this (as requested in LP bug #727281 ) (bzr r10392)
* - Add a third group of snap sources/targets, called ¨others¨ (before we ↵Diederik van Lierop2011-06-261-19/+18
| | | | | | | | had only ¨bounding box¨ and nodes (see bug #788178) - Fix the display of the snap source - Fix snapping of guides to other guides & grids (bzr r10372)
* Removed outdated/unsafe SP_DOCUMENT_DEFS macro and reduced usage of ↵Jon A. Cruz2011-06-041-0/+1
| | | | | SP_ROOT() gtk type function/macro. (bzr r10254)
* Fix a snap bug in which the snapped to the help path instead of the real pathDiederik van Lierop2011-02-041-2/+7
| | | (bzr r10032)
* update to latest 2geom !Johan B. C. Engelen2011-02-021-3/+3
| | | (bzr r10025)
* Merge and cleanup of GSoC C++-ification project.Jon A. Cruz2010-12-121-21/+23
|\ | | | | (bzr r9945.1.1)
| * another c++ification for sp-object.h/cpp and still in progress...Abhishek Sharma Public2010-07-031-1/+1
| | | | | | (bzr r9546.1.4)
| * C++fied SPDocument addedAbhishek Sharma Public2010-07-011-3/+3
| | | | | | (bzr r9546.1.2)
| * This is the first c++ification commit from me. It handles sp-line, ↵Abhishek Sharma Public2010-06-291-11/+10
| | | | | | | | | | sp-polyline, sp-item and marks the onset of document c++ification as well. Users can check performace increase with [/usr/bin/time -v inkscape_binary_with_commandline_options]. (bzr r9546.1.1)
* | - Constrained snap: proper implementation of the preference to snap the ↵Diederik van Lierop2010-10-291-11/+12
| | | | | | | | | | | | | | mouse pointer or handle itself (instead of projecting it first onto the constraint) - Fix a crash in SnapManager::multipleConstrainedSnaps (bzr r9866)
* | Use a better snap metric for constrained snapping (i.e. calculate the ↵Diederik van Lierop2010-10-191-1/+1
| | | | | | | | | | distance to the original point, not the projected point). This should more accurately predict what the user wants to snap to (bzr r9837)
* | Fix self-snapping when dragging the transformation center of a selection ↵Diederik van Lierop2010-10-071-3/+10
| | | | | | | | | | containing multiple items (as reported by LucaDC in LP #607107, comment #30) (bzr r9817)
* | Fix constrained snapping to closing segmentsDiederik van Lierop2010-09-251-10/+37
| | | | | | (bzr r9788)
* | When doing a constrained snap, then don't try snapping the mouse pointer ↵Diederik van Lierop2010-08-201-17/+26
| | | | | | | | | | itself but try snapping its projection (onto the constraint) instead (bzr r9719)
* | Fix a crash and add more safety checks to catch NULL pointersDiederik van Lierop2010-08-141-1/+2
| | | | | | (bzr r9713)
* | Implement constrained snapping to nodesDiederik van Lierop2010-08-101-13/+40
| | | | | | (bzr r9696)
* | 1) Snap to transformation center even if it's outside of the bounding box of ↵Diederik van Lierop2010-07-251-5/+6
| | | | | | | | | | | | | | 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-3/+9
| | | | | | | | | | center at the snapped position (bzr r9641)
* | 1) Fix snapping of guides to nodes/paths; 2) replace a g_assert with a ↵Diederik van Lierop2010-07-211-60/+41
| | | | | | | | | | return statement (bzr r9638)
* | - Remove some old code which snapped the rotation center to the bbox, and ↵Diederik van Lierop2010-07-201-37/+40
| | | | | | | | | | | | | | 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)
* | Fix snapping to midpoints of closing segmentsDiederik van Lierop2010-07-191-3/+9
| | | | | | (bzr r9627)
* | - do not use shift to disable snapping while holding shift to rotate a guideDiederik van Lierop2010-07-181-5/+3
| | | | | | | | | | | | - snap guides to paths too - always show the same snap indicator (bzr r9625)
* | Simplify code related to snapping while rotatingDiederik van Lierop2010-07-171-6/+0
| | | | | | (bzr r9619)
* | - Snap while rotating an object using the selector toolDiederik van Lierop2010-07-121-23/+42
| | | | | | | | | | | | - Rename the ConstraintLine class to SnapConstraint - Move some duplicated code to 2geom (bzr r9607)
* | fix Launchpad bug 593023: crash in constrained snap due to not calling ↵Diederik van Lierop2010-07-011-1/+6
|/ | | | | | | | setup() before snapping Fixed bugs: - https://launchpad.net/bugs/593023 (bzr r9550)
* Snapping: get rid of the false positives when calculating intersectionsDiederik van Lierop2010-05-221-1/+6
| | | (bzr r9442)
* - "Snap nodes or handles" button now also includes smooth nodesDiederik van Lierop2010-05-211-2/+2
| | | | | - Improved snap tooltips (bzr r9440)
* Fix bounding box snapping (LP562205, comment 6, issue II)Diederik van Lierop2010-05-081-2/+2
| | | (bzr r9402)
* Fix snapping regression introduced by rev. #9118Diederik van Lierop2010-04-221-1/+1
| | | | | | Fixed bugs: - https://launchpad.net/bugs/562205 (bzr r9364)
* Fix bbox snapping as reported in LP bug #562205Diederik van Lierop2010-04-181-2/+2
| | | | | | Fixed bugs: - https://launchpad.net/bugs/562205 (bzr r9351)
* Fix a memory leak in the object-snapperDiederik van Lierop2010-02-201-1/+1
| | | (bzr r9102)
* Remove redundancy from snapping API (type of snapsource no longer has to be ↵Diederik van Lierop2010-01-231-27/+21
| | | | | specified explicitly) (bzr r9014)
* When snapping to a bounding box, flash that bounding box together with the ↵Diederik van Lierop2010-01-191-8/+9
| | | | | snap indicator (bzr r8999)
* Warning cleanup.Jon A. Cruz2010-01-151-1/+6
| | | (bzr r8981)
* Refactoring the snapping API (making it easier to maintain and understand ↵Diederik van Lierop2010-01-091-90/+66
| | | | | for the devs) (bzr r8960)
* Refactor snapping of gradient handles; now behaves like all other snapping, ↵Diederik van Lierop2010-01-011-9/+9
| | | | | | | | 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-102/+101
| | | | | which reduces snap jitter) (bzr r8906)
* Fixed warningJon A. Cruz2009-09-261-1/+1
| | | (bzr r8653)
* When dragging a knot along a constraint line, then allow snapping the ↵Diederik van Lierop2009-08-231-3/+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)
* Snap guides to intersections of curves too (see bug #405419)Diederik van Lierop2009-07-291-3/+11
| | | (bzr r8361)
* When dragging the origin of a guide along that guide, we should use ↵Diederik van Lierop2009-06-021-11/+26
| | | | | constrained snapping instead of free snapping. Also make sure that we snap to paths too, not just to guides (bzr r7973)
* Two minor snapping fixesDiederik van Lierop2009-04-241-2/+8
| | | (bzr r7770)
* Fix bug #356743Diederik van Lierop2009-04-071-3/+4
| | | (bzr r7662)
* Remove some left-over debugging output that got accidentally committedDiederik van Lierop2009-04-011-1/+0
| | | (bzr r7602)
* More sensitive selection of snap target when snapping guides to objects with ↵Diederik van Lierop2009-03-311-7/+3
| | | | | multiple snap candidates (fixes bug 352247) (bzr r7598)
* Implement constrained snapping when dragging the position and size handles ↵Diederik van Lierop2009-03-151-4/+1
| | | | | 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)