On Apr 5, 2008, at 5:49 PM, 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).


I haven't thought this through yet but at first sight it doesn't seem 

_too_ difficult to do (since much of Johan's code could probably be 

reused), yet very convenient and highly desirable, at least from my 

biased point of view :). Or is it complete nonsense? What do you think?


If you're going to be looking in that direction, be sure to look at GtkAction, the custom subclasses we have, and the XML used to create most of the toolbars now.

The general plan is to get some publicly visible XML format that will be changed to the internal format needed as it's fed into UIManager functions.

For what you mention, some 'context' might be needed as the intermediate hookup.