[Chameleon-dev] [Bug 750] New: [Chameleon - doc builder] Automating tag code structure.

bugzilla-daemon at www.maptools.org bugzilla-daemon at www.maptools.org
Fri Oct 22 08:56:05 EDT 2004


http://www.maptools.org/bugzilla/show_bug.cgi?id=750

           Summary: [Chameleon - doc builder] Automating tag code structure.
           Product: Chameleon
           Version: 1.99
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: AutoDoc
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: cthorne at dmsolutions.ca


As a result of fixing bug 742, this opened up the possibility to re incorparate
the old automated tag structure code. The reason why it was not added before
what the simple fact that the old tag structure code did not format the widget
tag string.

Currently to add these tag structures to the widget doc is a manual process.
Below is an example of an xml structure:

<cham:widgetdoc>
<cham:tagstructures>
<cham:tagstructure>
<cham:code>
  <cham:codeblock bold="true" >
    <cham:line>&lt;CWC2 TYPE=&quot;MapSize&quot;</cham:line>
  </cham:codeblock>
  <cham:codeblock  bold="false">
    <cham:line>   ENABLED=&quot;[TRUE|FALSE]&quot;</cham:line>
    <cham:line>   FORMINDEX=&quot;[0 &lt; integer]&quot;</cham:line>
    <cham:line>   VISIBLE=&quot;[TRUE|FALSE]&quot;</cham:line>
    <cham:line></cham:line>
    <cham:line>   &lt;!-- MapSize Attributes --&gt;</cham:line>
    <cham:line></cham:line>
    <cham:line>   EMBEDDED=&quot;[TRUE|FALSE]&quot;</cham:line>
    <cham:line></cham:line>
    <cham:line>   &lt;!-- Popup Attribute Group --&gt;</cham:line>
    <cham:line></cham:line>
  </cham:codeblock>                 
  <cham:codeblock bold="true" >      
    <cham:line>&lt;CWC2 TYPE=&quot;Cursorpos&quot;</cham:line> 
  </cham:codeblock>
  <cham:codeblock  bold="false">
    <cham:line>   ENABLED=&quot;[TRUE|FALSE]&quot;</cham:line>
    <cham:line>   FORMINDEX=&quot;[0 &lt; integer]&quot;</cham:line>
    <cham:line>   VISIBLE=&quot;[TRUE|FALSE]&quot;</cham:line>
    <cham:line></cham:line>
    <cham:line>   &lt;!-- CursorPos Attributes--&gt;</cham:line>
  </cham:codeblock>
  <cham:codeblock  bold="true">  
    <cham:line>   AXIS=&quot;[X|Y]&quot;</cham:line>
  </cham:codeblock>    
  <cham:codeblock  bold="false">  
    <cham:line>   TEXTFIELDSIZE=&quot;[0 &lt; integer]&quot;</cham:line>
    <cham:line>   WIDGETCLASS=&quot;[string]&quot;</cham:line>
    <cham:line>   WIDGETSTYLE=&quot;[string]&quot;</cham:line>
    <cham:line></cham:line>
    <cham:line>   &lt;!-- Label Attribute Group--&gt;</cham:line>
    <cham:line></cham:line>
    <cham:line>   LABEL=&quot;[string]&quot;</cham:line>
    <cham:line>   LABELPOSITION=&quot;[0 &lt; integer &lt; 8]&quot;</cham:line>
    <cham:line>   LABELHALIGN=&quot;[LEFT|CENTER|RIGHT]&quot;</cham:line>
    <cham:line>   LABELVALIGN=&quot;[TOP|MIDDLE|BOTTOM]&quot;</cham:line>
    <cham:line>   LABELCLASS=&quot;[string]&quot;</cham:line>
    <cham:line>   LABELSTYLE=&quot;[string]&quot;/&gt;</cham:line>
  </cham:codeblock>      
</cham:code>
</cham:tagstructure>
</cham:tagstructures>
</cham:widgetdoc>

Things to make note of:

* bold="true|false" define what is a require tag feature of the tag structure:
* each<cham:line> represents a <br>.
* It is important that the spaces between <cham:line> </cham:line> are added and
maintained. These spaces allow indentation and proper formatting of the code.
 
The next questions are:
* how much effort would this be, (bill)?
* when should this be implemented, (darren/paul)?



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Chameleon-dev mailing list