summaryrefslogtreecommitdiffstats
path: root/src/object-snapper.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Adding checks to prevent null pointer dereferencesKris De Gussem2012-05-041-2/+2
| | | (bzr r11325)
* (cppcheck and janitorial tasks:) C-style casting to C++-style castingKris De Gussem2012-02-251-1/+1
| | | (bzr r11011)
* cppcheckKris De Gussem2012-02-151-17/+17
| | | (bzr r10987)
* 1) Add checkboxes for perpendicular and tangential snapping to the document ↵Diederik van Lierop2012-02-141-3/+10
| | | | | | | properties dialog (on the snap tab) 2) Newly created guides (dragged off the ruler) will take on the angle of the curve that's being snapped to (either perpendicularly or tangentialy, depending of the settings in the document properties dialog) (bzr r10975)
* turn SPPath into a class, and add some methods...Johan B. C. Engelen2012-01-171-1/+1
| | | (bzr r10897)
* Enable tangential and perpendicular snapping to paths (in the node-tool, ↵Diederik van Lierop2012-01-141-29/+78
| | | | | pen-tool, pencil-tool, and for guide manipulation; cannot be toggled yet, will always be active when snapping to paths) (bzr r10886)
* Refactor snap-preferences a bit moreDiederik van Lierop2011-12-181-4/+4
| | | (bzr r10780)
* Fixing more broken and split doc comments.Jon A. Cruz2011-10-271-20/+2
| | | (bzr r10697)
* Use desktop coordinates for finding snap candidates (regression introduced ↵Diederik van Lierop2011-10-151-3/+3
| | | | | | | | in rev. #10675) Fixed bugs: - https://launchpad.net/bugs/874213 (bzr r10677)
* Object snapper: only use the visual bounding box when absolutely needed; ↵Diederik van Lierop2011-10-121-3/+9
| | | | | otherwise default to geometric bounding box (bzr r10675)
* 1) make snapping to clip/mask paths optional (see document properties dialog ↵Diederik van Lierop2011-10-081-5/+23
| | | | | | | | -> snap tab) 2) for debugging purposes: code added for showing all snap candidates 3) groundwork for tangential/perpendicular snapping (bzr r10672)
* Another minor pass of Doxygen cleanup.Jon A. Cruz2011-10-031-1/+1
| | | (bzr r10659)
* Make "snap page border" toggle independent of "snap paths" toggleDiederik van Lierop2011-09-171-1/+1
| | | | | | Fixed bugs: - https://launchpad.net/bugs/850982 (bzr r10635)
* Rename the struct "SnappedConstraints" to the more meaningfull ↵Diederik van Lierop2011-09-021-16/+16
| | | | | "IntermSnapResults" (bzr r10612)
* Completely remove libnrKrzysztof Kosi??ski2011-08-281-11/+9
|\ | | | | (bzr r10589)
| * Refactor SPItem bounding box methods: remove NRRect usage and make codeKrzysztof Kosi??ski2011-08-271-11/+9
| | | | | | | | | | using them more obvious. Fix filter region computation. (bzr r10582.1.1)
* | Fix bug related to snapping to path intersectionsDiederik van Lierop2011-08-281-5/+5
| | | | | | (bzr r10587)
* | Allow snapping to path intersections without snapping to the paths themselvesDiederik van Lierop2011-08-271-6/+9
|/ | | (bzr r10585)
* Fix "snap guides" toggleDiederik van Lierop2011-08-251-14/+8
| | | | | | Fixed bugs: - https://launchpad.net/bugs/814457 (bzr r10582)
* 1) Use the "snap guides" button both for guides being snap sources, as well ↵Diederik van Lierop2011-08-231-38/+0
| | | | | | | as for guides being snap targets 2) Remove some redundant guide-snapping code from the object snapper, (bzr r10576)
* Refactoring of the snapping preferences; mainly about storing all toggles in ↵Diederik van Lierop2011-08-221-137/+94
| | | | | a single array, instead of each having its own member variable (bzr r10569)
* 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)