Re: Additional ext_attributes
- From: Hans Breuer <hans breuer org>
- To: discussions about usage and development of dia <dia-list gnome org>
- Subject: Re: Additional ext_attributes
- Date: Thu, 04 Dec 2008 23:00:07 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]