File: stembuilder.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 (100 lines) | stat: -rwxr-xr-x 3,809 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/usr/bin/env entity

<object name="StemBuilder" default-lang="javascript">
 
  <!-- selected XML tree chunk for cut/copy/paste etc. -->
  <data name="cutpaste"/>
 
  <!-- Context Menu -->
  <popupmenu name="context">
    <menuitem onselect="menu_view_xml_tree" label="View XML Tree"/>
    <menuitem sensitive="false" />
    <menuitem onselect="cut_tree" label="Cut Tree"/>
    <menuitem onselect="cut_children_tree" label="Cut Children"/>
    <menuitem onselect="copy_tree" label="Copy Tree"/>
    <menuitem onselect="copy_children_tree" label="Copy Children"/>
    <menuitem name="paste" onselect="paste_tree" label="Paste as Child" sensitive="false"/>
    <menuitem sensitive="false"/>
    <menuitem onselect="menu_edit_data" label="Edit Data"/>
    <!-- <menuitem onselect="menu_edit_xml_tree" label="Edit XML Tree (NYI)" sensitive="false"/> -->
    <menuitem sensitive="false" />
    <menuitem onselect="menu_save_xml_tree" label="Save XML Tree"/>
    <menuitem sensitive="false" />
    <menuitem sensitive="false" />
    <menuitem onselect="menu_delete_tree" label="Delete Tree"/>
  </popupmenu>
  
  <filesel name="dialog" visible="false"/>
  
  <!-- Main window -->
  <window name="StemBuilder" position="center" 
   height="500" width="350" ondelete="entity:quit" 
   title="StemBuilder Tree" border="1">
    <menubar>
      <menu label="File">
        <menuitem onselect="menu_save_xml_tree" label="Save XML Tree"/>
        <menuitem onselect="menu_load_file" label="Load Entity Application"/>
        <menuitem onselect="entity:quit" label="Quit"/>
      </menu>
       <menu label="Edit">
    	<menuitem onselect="cut_tree" label="Cut Tree"/>
    	<menuitem onselect="cut_children_tree" label="Cut Children"/>
    	<menuitem onselect="copy_tree" label="Copy Tree"/>
    	<menuitem onselect="copy_children_tree" label="Copy Children"/>
    	<menuitem name="editpaste" onselect="paste_tree" label="Paste as Child" sensitive="false"/>
    	<menuitem onselect="show_search_dialog" label="Find Node"/>
      </menu>
      <menu label="View">
        <menuitem onselect="menu_view_xml_tree" label="View XML Tree"/>
      </menu>
    </menubar>
    <halign>
      <button expand="true" onclick="cut_tree">
        <label text="Cut" expand="true"/>
      </button>
      <button expand="true" onclick="cut_children_tree">
        <label text="Cut"/>
	<label text="Children"/>
      </button>	
      <button expand="true" onclick="copy_tree">
        <label text="Copy" expand="true"/>
      </button>
      <button expand="true" onclick="copy_children_tree">
        <label text="Copy"/>
	<label text="Children"/>
      </button>
      <button expand="true" name="toolbarpaste" sensitive="false" onclick="paste_tree">
        <label text="Paste" expand="true"/>
      </button>
      <button expand="true" onclick="show_search_dialog">
        <label text="Find"/>
	<label text="Node"/>
      </button>
    </halign>
    <valign expand="true">
      <scrollwindow expand="true">
	    <ctree name="top"
		  expand="true"
	          selection-type="single"
		  onbuttonpress="popup_context"
                  onselect="properties"
                  onexpand="expand_tree">
	      <ctree-column title="Entity XML Tree"/>
	      <ctree-row name="root" dest-node="/">
                <ctree-cell text="/ (root node)"/>
	        <ctree-row>
                  <ctree-cell text="dummy"/>
                </ctree-row>
              </ctree-row>
	    </ctree>
      </scrollwindow>
    </valign>
  </window>
  <include name="properties-window" file="properties-window.e"/>
  <include name="element-toolbox" file="element-toolbox.e"/>
  <include name="xml-viewer" file="xml-viewer.e"/>
  <include name="search-dialog.e" file="search-dialog.e"/>
  <include name="stembuilder.js" file="stembuilder.js"/>
</object>