Hi all,

I have written some code to define graphical layouts in a resource file. My 
main problem is that some dialogs were taller than my laptop screen so I made a 
solution that allows for a more flexible approach in defining dialog boxes.

Because the patch is quite large I have posted it on the link below:

http://www.xs4all.nl/~vzzbx/files/hid-gui-patch-20071019.tar.gz

A screenshot showing the postscript export dialog is here:

http://www.xs4all.nl/~vzzbx/files/ps-layout.jpg

The configuration file for this dialog is:
http://www.xs4all.nl/~vzzbx/files/ps-layout.res

Right now the code is still a bit rough and only the GTK hid supports GUI from 
resource files.

To enable a resource file for a particular export dialog follow these step:
- Add a HID_GUI item to the HID_Attribute struct inside the hid. This item 
holds the filename to load the interface from.
- Create a resource file describing the layout. See ps-layout.res for an 
example.
- Copy the resource to either <prefix>/share/pcb, ~/.pcb or even . to have 
project specific layout.

LAyouts can be made using vertical boxes, horizontal boxes, tables and frames. 
It shouldn't be too difficult to implement notebooks, but I saw no use for 
those right now.

Ok, let me know what you think of it...

Hans




_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to