125
|
1 <?xml version="1.0"?>
|
|
2
|
|
3 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
|
4
|
|
5 <window id="example-window" title="Example 5.1.1"
|
|
6 xmlns:html="http://www.w3.org/1999/xhtml"
|
|
7 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
8 onload="setTreeDirectory()">
|
|
9 <toolbox flex="1">
|
|
10 <script type="application/x-javascript" src="chrome://jslib/content/jslib.js" />
|
|
11 <script language="JavaScript" src="annota.js"/>
|
|
12 <script language="JavaScript" src="rdfds.js"/>
|
|
13 <menubar id="sample-menubar">
|
|
14 <menu id="file-menu" label="File">
|
|
15 <menupopup id="file-popup">
|
|
16 <menuitem label="Save" onclick="file_save()" />
|
|
17 </menupopup>
|
|
18 </menu>
|
|
19 <menu id="edit-menu" label="Options">
|
|
20 <menupopup id="edit-popup">
|
|
21 <menuitem id="local" label="Local" type="radio" name="location" checked="true" onclick="file_local()" />
|
|
22 <menuitem id="annotaDB" label="Annota DB" type="radio" name="location" onclick="file_annotaDB()" />
|
|
23 <menuseparator/>
|
|
24 <menuitem id="tool_path" label="Tool URL" onclick="show_dialog('tool path')" />
|
|
25 <menuitem id="annotations_path" label="Path to annotations" onclick="file_open()" />
|
|
26 <menuseparator/>
|
|
27 <menuitem id="save_options" label="Save Options" onclick="setProfile()" />
|
|
28 </menupopup>
|
|
29 </menu>
|
|
30 </menubar>
|
|
31 </toolbox>
|
|
32 <vbox flex="100">
|
|
33 <tree id="file_tree" flex="1" datasources="rdf:files" ref="file:///" ondblclick="tree_click()">
|
|
34
|
|
35 <treecols id="cols">
|
|
36 <treecol id="name" label="Name" primary="true" flex="1"/>
|
|
37 <treecol id="url" label="URL" hidden="true" flex="1"/>
|
|
38 </treecols>
|
|
39
|
|
40 <template>
|
|
41
|
|
42 <rule>
|
|
43 <treechildren flex="1" >
|
|
44 <treeitem uri="rdf:*" persist="open">
|
|
45 <treerow>
|
|
46 <treecell label="rdf:http://home.netscape.com/NC-rdf#Name"/>
|
|
47 <treecell label="rdf:http://home.netscape.com/NC-rdf#URL"/>
|
|
48 </treerow>
|
|
49 </treeitem>
|
|
50 </treechildren>
|
|
51 </rule>
|
|
52
|
|
53 </template>
|
|
54 </tree>
|
|
55
|
|
56 </vbox>
|
|
57 </window>
|