At 03.12.2008 20:35, Meik Wusterhausen wrote:
Hi, I would like to add some more ext_attributes which make it possible
to build xml information dialogues similar to the uml-shape preferences.
If you are talking of something like the UML-Class you'll be out of luck
for three reasons:
- most UML shapes are implemented as C-Objects
- ext_attribute only applies to custom properties (XML-Objects)
- only simple types are supported with ext_attribute
Where can I find the sourcecode lines containing the description of the
by-now implemented ext_attributes. I would like to extend them. Thanks
for your help!
grep ext_attribute shapes/*/*.shape
shapes/Circuit/hresistor.shape: <ext_attributes>
shapes/Circuit/hresistor.shape:
<ext_attribute name="id" description="Circuit ID" type="string"/>
shapes/Circuit/hresistor.shape:
<ext_attribute name="ohms" description=" Resistance (ohms)" type="int"/>
shapes/Circuit/hresistor.shape:
<ext_attribute name="power" description="Power
dissipation (W)" type="real"/>
shapes/Circuit/hresistor.shape:
<ext_attribute name="smd" description="SMD package" type="bool"/>
shapes/Circuit/hresistor.shape: </ext_attributes>
-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it. -- Dilbert
_______________________________________________
dia-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia