[Zope-CVS] CVS: Packages/Moztop/moztop/content/Inspector - ExplorerOverlay.xul:1.4
Paul Everitt
paul@zope.com
Mon, 13 Jan 2003 17:55:15 -0500
Update of /cvs-repository/Packages/Moztop/moztop/content/Inspector
In directory cvs.zope.org:/tmp/cvs-serv17924/Inspector
Modified Files:
ExplorerOverlay.xul
Log Message:
restructured rdf
=== Packages/Moztop/moztop/content/Inspector/ExplorerOverlay.xul 1.3 => 1.4 ===
--- Packages/Moztop/moztop/content/Inspector/ExplorerOverlay.xul:1.3 Mon Jan 13 16:32:39 2003
+++ Packages/Moztop/moztop/content/Inspector/ExplorerOverlay.xul Mon Jan 13 17:54:42 2003
@@ -1,31 +1,58 @@
-<?xml version="1.0"?>
-
-<overlay id="ExplorerOverlay"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-<tabpanel id="explorer-panel">
-
-<tree id="explorer" flex="1" datasources="rdf:null">
- <treecols>
- <treecol id="name" label="Name" primary="true" flex="3"/>
- <splitter/>
- <treecol id="size" label="Size" flex="1"/>
- </treecols>
-
- <template>
- <rule>
- <treechildren flex="1">
- <treeitem uri="rdf:*">
- <treerow>
- <treecell label="rdf:http://www.zope.org/rdf/content#name"/>
- <treecell label="rdf:http://www.zope.org/rdf/content#size"/>
- </treerow>
- </treeitem>
- </treechildren>
- </rule>
- </template>
-</tree>
-
-</tabpanel>
-
-</overlay>
+<?xml version="1.0"?>
+
+<overlay id="ExplorerOverlay"
+ xmlns:z="http://www.zope.org/rdf/content#"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+<tabpanel id="explorer-panel">
+<tree flex="1" datasources="chrome://moztop/content/Data/foldercontents.rdf"
+ ref="urn:explorer:data" style="width:20em;" id="navigationtree"
+ containment="http://home.netscape.com/NC-rdf#subitems"
+ onselect="showtitle(event); return false;">
+ <treecols>
+ <treecol id="ResourceNameColumn" label="Name" primary="true" flex="1"/>
+ <splitter class="tree-splitter"/>
+ <treecol id="TypeColumn" label="Type" flex="1"/>
+ </treecols>
+
+ <template>
+ <rule>
+ <conditions>
+ <content uri="?uri" />
+ <triple subject="?uri"
+ predicate="http://home.netscape.com/NC-rdf#subitems"
+ object="?subitems" />
+ <member container="?subitems" child="?subitem" />
+ <triple subject="?subitem"
+ predicate="http://home.netscape.com/NC-rdf#resourcetype"
+ object="?resourcetype" />
+ </conditions>
+
+ <bindings>
+ <binding subject="?subitem"
+ predicate="http://www.purl.org/dc/1.1#title"
+ object="?name" />
+ <binding subject="?resourcetype"
+ predicate="http://www.purl.org/dc/1.1#title"
+ object="?resourcetypetitle"/>
+ </bindings>
+
+ <action>
+ <treechildren flex="1">
+ <treeitem uri="?subitem">
+ <treerow>
+ <treecell label="?name"/>
+ <treecell label="?resourcetypetitle"/>
+ </treerow>
+ </treeitem>
+ </treechildren>
+ </action>
+ </rule>
+ </template>
+
+
+</tree>
+
+</tabpanel>
+
+</overlay>