Bug 646 - [Chameleon-Autodoc]Missing attribute value dependency section
: [Chameleon-Autodoc]Missing attribute value dependency section
Status: RESOLVED FIXED
: Chameleon
AutoDoc
: 1.99
: PC Linux
: P2 normal
: ---
Assigned To:
: http://dev1.dmsolutions.ca/gommap/doc...
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-08-26 15:25 by
Modified: 2004-10-18 16:51 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-08-26 15:25:59
Missing attribute value dependency section.  I think it could be a good idea to
have this type of section to higlight the need for a specific widget attribute
value.  An example of this is with the "MapSize" widget. 

Instead of writing the requirement in the description section as:

"Note that the MapDHTML widget must have ALLOWRESIZE set to true for this to
have any effect."

it could be written as:

Attribute value dependancy

-MapDHTML widget must have ALLOWRESIZE set to true
------- Comment #1 From 2004-08-26 16:21:45 -------
Another alternative will be to write this dependancy ("ALLOWRESIZE") in the
"Dependencies" section.
------- Comment #2 From 2004-10-18 16:51:46 -------
The current structure of the xsd allows this flexability. What has been added to
the xsd was a new restriction dependancytype value 'attribute'.

<!-- Widget Dependancy Definitions: Widget Dependancies -->
<xs:simpleType name="widgetdependancytype">
  <xs:restriction base="xs:string">
    <xs:enumeration value="none"/>
    <xs:enumeration value="widget"/>
    <xs:enumeration value="sharedresource"/>
    <xs:enumeration value="attribute"/>
    <xs:enumeration value="data"/>
  </xs:restriction>
</xs:simpleType>

Fixed in CVS.

Also I have updated the MapSize en-ca doc with the new dependancy.

<cham:widgetdependancies>
  <cham:widgetdependancy>
    <cham:type>attribute</cham:type>
    <cham:name>MapDHTML's ALLOWRESIZE Attribute</cham:name>
    <cham:description>
      MapDHTML widget must have ALLOWRESIZE attribute set to &quot;true&quot; to
allow the MapSize widget to change the map view area within the application.
    </cham:description>
  </cham:widgetdependancy>
  <cham:description>In order for the widget to function, the following Chameleon
features may be required.</cham:description>
</cham:widgetdependancies>