
-----Original Message----- From: Diederik van Lierop [mailto:mail@...1689...] Sent: vrijdag 16 januari 2009 17:06 To: Engelen, J.B.C. (Johan); ajc200@...1930... Cc: inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Snapping toolbar
-----Original Message----- From: J.B.C.Engelen@...1578... [mailto:J.B.C.Engelen@...1578...] Sent: 2009 jan 16 15:16
A first step to make this possible is to attach the kind of snap to the snapped point/line (don't have code here, but a snaptype member must be added to the 'SnappedPoint' class or whatever it is called).
Has already been taken care of ages ago ;-)
Bad memory, sorry :(
is working, we can have the snapindicator draw different
icons on the
canvas. As a starting point to see whether it works, one could draw other 'stock' icons like a circle, a square or a diamond
(the shapes
that are used for path nodes) to indicate the different snaptypes.
Should also work already, although I don't recall testing it.
I just added code to separate the several cases, but all cases are treated the same for now.
Maybe there is a better way of visualizing the snap. Instead of putting the snaptype indicator at the location of snapping, why not put it close to the mouse pointer?