[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Selection in curve-object... again
From: |
Bernhard Herzog |
Subject: |
Re: Selection in curve-object... again |
Date: |
13 Jan 2003 21:14:17 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 |
Ralf Engels <address@hidden> writes:
> Hi,
> I am again trying to figure out the selection in curve object.
> It seems to be broken.
>
> curveobject.c has, in principle, all functions to manage the selection. Every
> path stores for every node the status and there are functions to set and
> query the status.
Correct.
It is limited to keeping track of which nodes are selected, though. One
case that isn't handled for instance is selecting a point on the curve
that's not a node. That's the case you came across in SelectPoint:
> On the other side there is editbezier.py which does this when a single point
> is selected:
>
> def SelectPoint(self, p, rect, device, mode):
[...]
SelectPoint is only called when the user click on the curve outside of a
node handle. A click on a handle leads to a call to SelectHandle.
> Should curveobject.c handle the selection (I think not) or should
> editbezier.py do this?
That the selection is stored in the curve object and not the editor is a
bit of a kludge. It was simply the easiest way to handle it. Now that
it's possible to have several editors for the same document this has
become a bug. The selection should be indeed handled completely in
editbezier.
> By the way,
> is there a irc channel so we can chat a little bit about problems?
So far, no.
Bernhard
--
Intevation GmbH http://intevation.de/
Sketch http://sketch.sourceforge.net/
MapIt! http://www.mapit.de/