[Zope-CVS] CVS: Packages/Moztop/moztop/content/workspace - folderbindings.xbl:1.1 getstarted.html:1.1 workspaceoverlay.xul:1.1
Stephan Richter
srichter@cbu.edu
Thu, 20 Mar 2003 09:33:40 -0500
Update of /cvs-repository/Packages/Moztop/moztop/content/workspace
In directory cvs.zope.org:/tmp/cvs-serv21822/content/workspace
Added Files:
folderbindings.xbl getstarted.html workspaceoverlay.xul
Log Message:
Renaming continues:
Rename Content --> workspace
Rename ContentBindings.xml --> folderbindings.xbl
Removed screens for almost all content types; they will be added back soon
in form of xbl.
=== Added File Packages/Moztop/moztop/content/workspace/folderbindings.xbl ===
<?xml version="1.0" encoding="iso-latin-1"?>
<bindings
xmlns="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="folderviewerbinding" extends="xul:tabpanel">
<content>
<xul:tabbox flex="1">
<xul:tabs>
<xul:tab label="Contents"/>
<xul:tab oncommand="alert('clicked preview');" label="Preview"/>
</xul:tabs>
<xul:tabpanels>
<xul:foldercontentspanel ref="urn:moztop:sites" flex="1"/>
<xul:foldercontentspanel/>
</xul:tabpanels>
</xul:tabbox>
</content>
<implementation>
<field name="urn"/>
<field name="resourcetitle"/>
<constructor>
/* Grab the tabbox and add a tab */
var folderviewer = document.getAnonymousNodes(this)[0].parentNode;
var parent = folderviewer.parentNode.parentNode;
var tabs = parent.getElementsByTagName("tabs")[0];
var rt = this.getAttribute("resourcetitle");
var thistab = document.createElement("tab");
thistab.setAttribute("label",rt);
thistab.setAttribute("id", rt + "-tab");
tabs.appendChild(thistab);
</constructor>
</implementation>
</binding>
<binding id="foldercontentspanelbinding" extends="xul:tabpanel">
<content>
<xul:vbox flex="10">
<xul:tree flex="10"
style="width: 20em; height: 10em"
id="foldercontentstree" ref="urn:moztop:sites"
datasources="rdf:null"
ondblclick="sitesmanager.openSelectedResource();"
containment="http://home.netscape.com/NC-rdf#subitems">
<xul:treecols>
<xul:treecol id="ResourceNameColumn" label="Name" primary="true" flex="1"/>
<xul:splitter class="tree-splitter"/>
<xul:treecol id="TypeColumn" label="Type" flex="1"/>
</xul:treecols>
<xul:template>
<xul:rule>
<xul:conditions>
<xul:content uri="?uri" />
<xul:triple subject="?uri"
predicate="http://home.netscape.com/NC-rdf#subitems"
object="?subitems" />
<xul:member container="?subitems" child="?subitem" />
</xul:conditions>
<xul:bindings>
<xul:binding subject="?subitem"
predicate="http://www.zope.org/rdf#resourcetype"
object="?resourcetype" />
<xul:binding subject="?subitem"
predicate="http://www.purl.org/dc/1.1#title"
object="?name" />
<xul:binding subject="?resourcetype"
predicate="http://www.purl.org/dc/1.1#title"
object="?resourcetypetitle"/>
<xul:binding subject="?resourcetype"
predicate="http://www.zope.org/rdf#styleid"
object="?styleid"/>
</xul:bindings>
<xul:action>
<xul:treechildren flex="1">
<xul:treeitem uri="?subitem">
<xul:treerow>
<xul:treecell properties="zope-?styleid" label="?name"/>
<xul:treecell label="?resourcetypetitle"/>
</xul:treerow>
</xul:treeitem>
</xul:treechildren>
</xul:action>
</xul:rule>
</xul:template>
</xul:tree>
</xul:vbox>
</content>
<implementation>
<constructor>
var tree = document.getAnonymousNodes(this)[0].childNodes[0];
dump("\n tree name is " + tree.tagName);
tree.database.AddDataSource(sitesmanager.ds.getRawDataSource());
tree.database.AddDataSource(sitesmanager.commontypesds.getRawDataSource());
tree.builder.rebuild();
</constructor>
</implementation>
</binding>
</bindings>
=== Added File Packages/Moztop/moztop/content/workspace/getstarted.html ===
<html>
<head>
<title>Welcome to Moztop</title>
<style>
body {
font-family: sans-serif;
font-size: 0.9em;
}
</style>
<body>
<h2>Welcome to Moztop</h2>
<p>Zope 3 is a big step forward in building web applications through
components. The purpose of Moztop is to put this potential in the
hands of site developers by giving them an easy site building environment.</p>
<h2>Start here!!</h2>
<ul>
<li>You should see a tree on the left. If not, read the section on
debugging in <code>doc/README.txt</code>.</li>
<li>Double-click on an item to open it in a new tab.</li>
<li>Use the buttons at the bottom of the Explorer to make changes
to your Zope 3 site.</li>
</ul>
<h2>Philosophy</h2>
<p>Explain the approach...</p>
</body>
</html>
=== Added File Packages/Moztop/moztop/content/workspace/workspaceoverlay.xul ===
<?xml version="1.0"?>
<overlay id="MainOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<box id="main-content" flex="6">
<tabbox id="active-contents" orient="vertical" flex="1">
<tabs id="active-contents-tabs" orient="horizontal">
<tab label="Welcome" />
</tabs>
<tabpanels id="active-contents-tabpanels" flex="100%">
<tabpanel id="Welcome-Panel" orient="vertical"
style="background-color: white">
<iframe src="chrome://moztop/content/workspace/getstarted.html"
flex="1"/>
</tabpanel>
</tabpanels>
</tabbox>
</box>
</overlay>