File: element-list.e

package info (click to toggle)
entity 0.7.2-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,352 kB
  • ctags: 5,272
  • sloc: ansic: 61,707; sh: 7,921; makefile: 732; perl: 399
file content (36 lines) | stat: -rwxr-xr-x 823 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  
<object name="element_list" default-lang="javascript">

<!-- The main window -->
  <window name="main" width="400" height="600" ondelete="entity:exit"
   title="Supported Element List" border="5">
    <valign spacing="5" expand="true">
      <scrollwindow expand="true">
	  <ctree name="top"> 
	    <ctree-column title="Elements" width="220"/>
	  </ctree> 
      </scrollwindow>
    </valign>
  </window>

  <system-elements/>

<?javascript
 
supported = enode ("system-elements").list_set_attribs ();
supported.sort ();

ctree = enode ("ctree.top");
for (element in supported) {
    
    // The only erroneously set attribute will be the nodes name.
    if (element == "name")
	continue;
    row = ctree.new_child ("ctree-row");
    cell = row.new_child ("ctree-cell");
    cell.attrib.text = element;
}

?>

</object>