gEDA-dev: HID_attribute dependencies
Dan McMahill
dan at mcmahill.net
Sun Apr 6 17:38:35 EDT 2008
Anyone have any thoughts on the right way to specify any dependencies
between attributes in an export HID attribute list? In particular, what
I'd like to capture is stuff like you have some HID_Boolean and
depending on if it is true or false, some other attributes are used or
not used. In the GUI it would correspond to those others being
sensitive or not.
My immediate application is I pretty much took the gtk HID attiribute
editor code from pcb wholesale and added it to gerbv for editing file
parsing options. The idea is that each file parser (drill, pick and
place, rs274-x, etc) can define an HID_Attribute list that controls
things like inches/metric, zero supression, etc. The catch is I have an
"auto" HID_Boolean which if checked basically means "ignore all the rest
of the user provided values".
So do I add a "sensitive when" field that is a variable? I could also
think about providing some functions that let you record dependencies
although I haven't fully thought out how either of these work without
having global storage for attribute lists.
Any ideas?
Thanks
-Dan
More information about the geda-dev
mailing list