summaryrefslogtreecommitdiffstats
path: root/src/display/snap-indicator.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Run clang-tidy’s modernize-use-bool-literals pass.Emmanuel Gil Peyrot2018-06-181-1/+1
| | | | | This makes it clearer whether an integer or a boolean has to be passed in this specific call.
* Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot2018-06-181-14/+14
| | | | | This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
* Revert "Fix include order with clang-tidy check llvm-include-order"Marc Jeanmougin2018-05-041-3/+3
| | | | This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
* Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin2018-04-291-3/+3
|
* Fix snapping tooltips and highlighting of snapped bounding boxes (both of ↵Diederik van Lierop2017-01-111-2/+2
| | | | | which were not shown) (bzr r15410)
* Make persistence of snap indicator configurable, and clean up the snapping ↵Diederik van Lierop2015-07-241-3/+8
| | | | | | | | tab in the preferences dialog Fixed bugs: - https://launchpad.net/bugs/1420301 (bzr r14253)
* Make the behavior of the snap indicator fully transparent, such that all ↵Diederik van Lierop2015-06-121-0/+15
| | | | | | | | events are sent to the items or canvas as intended Fixed bugs: - https://launchpad.net/bugs/1420301 (bzr r14201)
* Adjust timeout for snap tool tips to 4 secondsDiederik van Lierop2015-02-151-1/+1
| | | | | | Fixed bugs: - https://launchpad.net/bugs/1420301 (bzr r13923)
* Remove sp_desktop_document and finish cleanup of desktop-handles.hLiam P. White2014-12-211-1/+1
| | | (bzr r13820)
* Purge sp_desktop_sketch and sp_desktop_tempgroupLiam P. White2014-12-211-5/+5
| | | (bzr r13816)
* Move more UI code into ui/Liam P. White2014-10-051-1/+1
| | | (bzr r13341.1.253)
* Fix snapping issue in selector toolDiederik van Lierop2014-05-121-2/+4
| | | | | | Fixed bugs: - https://launchpad.net/bugs/1255764 (bzr r13361)
* fix bug (and add parens so we don't rely on operator precedence)Johan B. C. Engelen2014-01-081-1/+1
| | | (bzr r12888)
* Only display snapping tooltip if source / target are defined (LP #1255764)Bryce Harrington2014-01-061-23/+25
| | | (bzr r12883)
* Adopt obsolete GtkAnchorType enum as SPAnchorTypeAlex Valavanis2012-04-101-3/+4
| | | (bzr r11207)
* Snap to grid/guide lines perpendicularlyDiederik van Lierop2012-02-141-0/+6
| | | (bzr r10976)
* Enable tangential and perpendicular snapping to paths (in the node-tool, ↵Diederik van Lierop2012-01-141-0/+6
| | | | | pen-tool, pencil-tool, and for guide manipulation; cannot be toggled yet, will always be active when snapping to paths) (bzr r10886)
* 1) Fix CanvasText alignment bugs caused by static variables, uninitialized ↵Diederik van Lierop2012-01-011-4/+19
| | | | | | | variables, and variable border width 2) Snap tooltips no longer overlap with measure tool tooltips, and now have a background color (similar to the measure tool) (bzr r10816)
* 1) Cycle to the next-closest-snap-source when pressing tab, if the ↵Diederik van Lierop2011-11-041-1/+1
| | | | | | | snap-closest-point-only-option has been activated. Works for the selector tool, but also when scaling/stretching/skewing a selection of nodes in the node tool 2) Cleanup and simplification of the code that finds the closest snapsource (bzr r10720)
* Fixing more broken and split doc comments.Jon A. Cruz2011-10-271-1/+1
| | | (bzr r10697)
* cppcheckKris De Gussem2011-10-151-1/+1
| | | (bzr r10678)
* 1) make snapping to clip/mask paths optional (see document properties dialog ↵Diederik van Lierop2011-10-081-0/+35
| | | | | | | | -> snap tab) 2) for debugging purposes: code added for showing all snap candidates 3) groundwork for tangential/perpendicular snapping (bzr r10672)
* Snap to guide-path intersections, and don't snap to paths when only path ↵Diederik van Lierop2011-09-181-0/+3
| | | | | | | | | intersections are asked for Fixed bugs: - https://launchpad.net/bugs/847457 - https://launchpad.net/bugs/850982 (bzr r10639)
* Refactoring of the snapping preferences; mainly about storing all toggles in ↵Diederik van Lierop2011-08-221-8/+4
| | | | | a single array, instead of each having its own member variable (bzr r10569)
* Implement decent snapping to text (baseline & anchor), and provide a toggle ↵Diederik van Lierop2011-06-301-2/+5
| | | | | 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-6/+0
| | | | | | | | 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)
* 1) Snap to transformation center even if it's outside of the bounding box of ↵Diederik van Lierop2010-07-251-8/+8
| | | | | | | the parent item 2) In some cases the snap source indicator wasn't shown (bzr r9648)
* - do not use shift to disable snapping while holding shift to rotate a guideDiederik van Lierop2010-07-181-21/+9
| | | | | | - snap guides to paths too - always show the same snap indicator (bzr r9625)
* - Snap while rotating an object using the selector toolDiederik van Lierop2010-07-121-1/+0
| | | | | | - Rename the ConstraintLine class to SnapConstraint - Move some duplicated code to 2geom (bzr r9607)
* Fix bbox snapping as reported in LP bug #562205Diederik van Lierop2010-04-181-0/+8
| | | | | | Fixed bugs: - https://launchpad.net/bugs/562205 (bzr r9351)
* 1) Fix moving by an integer multiple of the grid spacing (<alt>-dragging in ↵Diederik van Lierop2010-02-251-1/+9
| | | | | | | | | | 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-0/+3
| | | | | | | | 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-2/+9
| | | | | perseverance of snap-indicator (bzr r9103)
* Finally introducing the pre-snap indicatorDiederik van Lierop2010-01-301-4/+9
| | | (bzr r9034)
* Remove redundancy from snapping API (type of snapsource no longer has to be ↵Diederik van Lierop2010-01-231-1/+2
| | | | | specified explicitly) (bzr r9014)
* When snapping to a bounding box, flash that bounding box together with the ↵Diederik van Lierop2010-01-191-3/+24
| | | | | snap indicator (bzr r8999)
* Refactoring the snapping API (making it easier to maintain and understand ↵Diederik van Lierop2010-01-091-3/+3
| | | | | 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)
* Small snap bug has been eliminated, flowed text snapping now uses baseline, ↵Diederik van Lierop2009-12-301-3/+2
| | | | | replacing tabs by spaces, removing some commented lines (bzr r8925)
* Snap to a guide's origin too (resulting in a 2D constraint), instead of only ↵Diederik van Lierop2009-08-021-157/+160
| | | | | to the guide itself (only 1D constraint) (bzr r8383)
* When dragging the origin of a guide along that guide, we should use ↵Diederik van Lierop2009-06-021-1/+4
| | | | | constrained snapping instead of free snapping. Also make sure that we snap to paths too, not just to guides (bzr r7973)
* translator comments and minor string fixesIvan Mas??r2009-04-231-0/+1
| | | (bzr r7763)
* Improved wording for the snap indicator: gradients snap to their parent's ↵Diederik van Lierop2009-04-121-2/+2
| | | | | bounding box, so the snap indicator now displays "bla bla to bounding box" (bzr r7689)
* Fix snapping during constrained translation, when only snapping the node ↵Diederik van Lierop2009-04-121-1/+1
| | | | | closest to the mouse pointer (bzr r7687)
* - Don't display the snap-source-indicator when we're about to rotate using ↵Diederik van Lierop2009-04-021-1/+1
| | | | | | | the selector tool (because it won't snap when rotating!) - Use a smaller snap-source-indicator, which is visually more appealing (bzr r7608)
* move canvastext to its own file (no linking error for me anymore), add ↵bulia byak2009-03-111-1/+1
| | | | | outline to fix 334758 (bzr r7470)
* More accurate wording in snap tooltipsDiederik van Lierop2009-02-271-0/+18
| | | (bzr r7388)
* make snap tooltip position sensitive to canvas zoomingThomas Holder2009-02-251-2/+3
| | | (bzr r7368)
* Snapping of guides now turned on by default, and fixed initialization of the ↵Diederik van Lierop2009-02-221-1/+1
| | | | | that checkbox (bzr r7352)
* Use on-cavas text instead of a tooltip for the snapindicator (fixes some ↵Diederik van Lierop2009-02-221-52/+18
| | | | | tooltip annoyances and fixes bug #330252) (bzr r7346)