summaryrefslogtreecommitdiffstats
path: root/src/display/snap-indicator.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-20Change the data type of size/width/height of the controls to unsigned intDiederik van Lierop1-3/+3
2019-05-20More pixel-level alignment fixes for various controls, by making all ↵Diederik van Lierop1-3/+3
controls have an odd-integer size (measured in pixels)
2018-11-08Clarify licensesMax Gaukler1-1/+2
- add license headers to everything - convert a few files from public domain or LGPL2.1+ to GPL2+ - some archaeology to clarify which files are from which library
2018-06-18Run clang-tidy’s modernize-use-bool-literals pass.Emmanuel Gil Peyrot1-1/+1
This makes it clearer whether an integer or a boolean has to be passed in this specific call.
2018-06-18Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot1-14/+14
This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
2018-05-04Revert "Fix include order with clang-tidy check llvm-include-order"Marc Jeanmougin1-3/+3
This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
2018-04-29Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin1-3/+3
2017-01-11Fix snapping tooltips and highlighting of snapped bounding boxes (both of ↵Diederik van Lierop1-2/+2
which were not shown) (bzr r15410)
2015-07-24Make persistence of snap indicator configurable, and clean up the snapping ↵Diederik van Lierop1-3/+8
tab in the preferences dialog Fixed bugs: - https://launchpad.net/bugs/1420301 (bzr r14253)
2015-06-12Make the behavior of the snap indicator fully transparent, such that all ↵Diederik van Lierop1-0/+15
events are sent to the items or canvas as intended Fixed bugs: - https://launchpad.net/bugs/1420301 (bzr r14201)
2015-02-15Adjust timeout for snap tool tips to 4 secondsDiederik van Lierop1-1/+1
Fixed bugs: - https://launchpad.net/bugs/1420301 (bzr r13923)
2014-12-21Remove sp_desktop_document and finish cleanup of desktop-handles.hLiam P. White1-1/+1
(bzr r13820)
2014-12-21Purge sp_desktop_sketch and sp_desktop_tempgroupLiam P. White1-5/+5
(bzr r13816)
2014-10-05Move more UI code into ui/Liam P. White1-1/+1
(bzr r13341.1.253)
2014-05-12Fix snapping issue in selector toolDiederik van Lierop1-2/+4
Fixed bugs: - https://launchpad.net/bugs/1255764 (bzr r13361)
2014-01-08fix bug (and add parens so we don't rely on operator precedence)Johan B. C. Engelen1-1/+1
(bzr r12888)
2014-01-06Only display snapping tooltip if source / target are defined (LP #1255764)Bryce Harrington1-23/+25
(bzr r12883)
2012-04-10Adopt obsolete GtkAnchorType enum as SPAnchorTypeAlex Valavanis1-3/+4
(bzr r11207)
2012-02-14Snap to grid/guide lines perpendicularlyDiederik van Lierop1-0/+6
(bzr r10976)
2012-01-14Enable tangential and perpendicular snapping to paths (in the node-tool, ↵Diederik van Lierop1-0/+6
pen-tool, pencil-tool, and for guide manipulation; cannot be toggled yet, will always be active when snapping to paths) (bzr r10886)
2012-01-011) Fix CanvasText alignment bugs caused by static variables, uninitialized ↵Diederik van Lierop1-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)
2011-11-041) Cycle to the next-closest-snap-source when pressing tab, if the ↵Diederik van Lierop1-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)
2011-10-27Fixing more broken and split doc comments.Jon A. Cruz1-1/+1
(bzr r10697)
2011-10-15cppcheckKris De Gussem1-1/+1
(bzr r10678)
2011-10-081) make snapping to clip/mask paths optional (see document properties dialog ↵Diederik van Lierop1-0/+35
-> snap tab) 2) for debugging purposes: code added for showing all snap candidates 3) groundwork for tangential/perpendicular snapping (bzr r10672)
2011-09-18Snap to guide-path intersections, and don't snap to paths when only path ↵Diederik van Lierop1-0/+3
intersections are asked for Fixed bugs: - https://launchpad.net/bugs/847457 - https://launchpad.net/bugs/850982 (bzr r10639)
2011-08-22Refactoring of the snapping preferences; mainly about storing all toggles in ↵Diederik van Lierop1-8/+4
a single array, instead of each having its own member variable (bzr r10569)
2011-06-30Implement decent snapping to text (baseline & anchor), and provide a toggle ↵Diederik van Lierop1-2/+5
button for this (as requested in LP bug #727281 ) (bzr r10392)
2011-06-26- Add a third group of snap sources/targets, called ¨others¨ (before we ↵Diederik van Lierop1-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)
2010-07-251) Snap to transformation center even if it's outside of the bounding box of ↵Diederik van Lierop1-8/+8
the parent item 2) In some cases the snap source indicator wasn't shown (bzr r9648)
2010-07-19- do not use shift to disable snapping while holding shift to rotate a guideDiederik van Lierop1-21/+9
- snap guides to paths too - always show the same snap indicator (bzr r9606.1.15)
2010-07-18- do not use shift to disable snapping while holding shift to rotate a guideDiederik van Lierop1-21/+9
- snap guides to paths too - always show the same snap indicator (bzr r9625)
2010-07-12- Snap while rotating an object using the selector toolDiederik van Lierop1-1/+0
- Rename the ConstraintLine class to SnapConstraint - Move some duplicated code to 2geom (bzr r9607)
2010-04-18Fix bbox snapping as reported in LP bug #562205Diederik van Lierop1-0/+8
Fixed bugs: - https://launchpad.net/bugs/562205 (bzr r9351)
2010-02-251) Fix moving by an integer multiple of the grid spacing (<alt>-dragging in ↵Diederik van Lierop1-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)
2010-02-221) Making snapping behaviour for paraxial lines (in the pen tool) similar to ↵Diederik van Lierop1-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)
2010-02-21Make sure that guides always snap correctly when dropping them, and improve ↵Diederik van Lierop1-2/+9
perseverance of snap-indicator (bzr r9103)
2010-01-30Finally introducing the pre-snap indicatorDiederik van Lierop1-4/+9
(bzr r9034)
2010-01-23Remove redundancy from snapping API (type of snapsource no longer has to be ↵Diederik van Lierop1-1/+2
specified explicitly) (bzr r9014)
2010-01-19When snapping to a bounding box, flash that bounding box together with the ↵Diederik van Lierop1-3/+24
snap indicator (bzr r8999)
2010-01-09Refactoring the snapping API (making it easier to maintain and understand ↵Diederik van Lierop1-3/+3
for the devs) (bzr r8960)
2010-01-01Refactor snapping of gradient handles; now behaves like all other snapping, ↵Diederik van Lierop1-3/+3
i.e. no more snapping to imaginary infinite lines along the bounding box Fixed bugs: - https://launchpad.net/bugs/371001 (bzr r8932)
2009-12-30Small snap bug has been eliminated, flowed text snapping now uses baseline, ↵Diederik van Lierop1-3/+2
replacing tabs by spaces, removing some commented lines (bzr r8925)
2009-08-02Snap to a guide's origin too (resulting in a 2D constraint), instead of only ↵Diederik van Lierop1-157/+160
to the guide itself (only 1D constraint) (bzr r8383)
2009-06-02When dragging the origin of a guide along that guide, we should use ↵Diederik van Lierop1-1/+4
constrained snapping instead of free snapping. Also make sure that we snap to paths too, not just to guides (bzr r7973)
2009-04-23translator comments and minor string fixesIvan Mas??r1-0/+1
(bzr r7763)
2009-04-12Improved wording for the snap indicator: gradients snap to their parent's ↵Diederik van Lierop1-2/+2
bounding box, so the snap indicator now displays "bla bla to bounding box" (bzr r7689)
2009-04-12Fix snapping during constrained translation, when only snapping the node ↵Diederik van Lierop1-1/+1
closest to the mouse pointer (bzr r7687)
2009-04-02- Don't display the snap-source-indicator when we're about to rotate using ↵Diederik van Lierop1-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)
2009-03-11move canvastext to its own file (no linking error for me anymore), add ↵bulia byak1-1/+1
outline to fix 334758 (bzr r7470)