On Fri, 2007-11-23 at 15:30 -0500, Paul Tan wrote: > Hi Al Davis, > > I forgot to mention, if we only need the filename > as a parameter, the current menu already can > accomodate it, since there is already a scheme > function for it. It is the multiple parameters > which I am thinking about to accomocate. > Thanks again.
PCB has a feature similar to this in its exporters. The exporter defines a number of parameters and validation checks for them, which are prompted for in a UI. Auto generation of dialogs doesn't always lend its-self to well designed / structured GUI, but for many purposes, the utility outweighs the need for a specifically designed dialog. (Like printer settings in .ppd file, for example). We could provide a function to do similar, and a guile binding for it to be used from menu items as needed. It should in theory be possible for scheme code "plugins" to make GUIs using guile-gtk if more complexity is needed, although I have never tried it. Dont re-invent more config file formats for now, use the existing scheme code for adding menus, calling a scheme procedure to do your bidding. With appropriate helper functions, this won't necessitate lots of code duplication for each menu item. Best wishes, -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)7729 980173 - (No signal in the lab!) _______________________________________________ geda-dev mailing list [email protected] http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev
