
-----Original Message----- From: inkscape-devel-bounces@lists.sourceforge.net [mailto:inkscape-devel-bounces@lists.sourceforge.net] On Behalf Of Maximilian Albert Sent: zondag 6 april 2008 17:35 To: inkscape Subject: Re: [Inkscape-devel] GSoC Tech Drawing proposal (and a question/further suggestion)
Maximilian Albert wrote:
Namely, since LPEs are intended to be used as the basis for further tools (or for refactoring existing ones), the need for
integrating LPE
parameter controls into toolbars is likely to arise sooner or later. Since I need to add a toolbar for the new Tech Drawing tool
anyway, I
was wondering whether I could set up a general framework
that allows
LPE parameter controls to be automatically added to certain
toolbars
and to be activated/toggled visible when the LPE is used by the respective tools. This would eliminate the need to recode toolbar controls over and over again when tools want to make use of functionality provided by a LPE. It would work similarly to how controls are currently added to the various LPE dialogs
(but with some extended functionality).
Great idea!
It just occurred to me that a similar thing might be useful for knotholders (e.g., I wanted the new perspective path LPE to display handles for perspective resizing).
As a first step, it would be very nice if you could C++-ify the knotholder, subclass special knotholders for the existing tools and perhaps subclass NodePath from it too. I found it hard to subclass from the current SPKnotholder to make a special one for lpe-PointParams, so I solved my problem another way. Having Nodepath subclass from Knotholder might solve (or introduce!) some problems in ShapeEditor with having multiple knotholder/nodepaths on-canvas at the same time.
Regards, Johan