[Zope-CVS] CVS: Packages/Moztop/moztop/content/Content - ContentBindings.xml:1.1 ContentOverlay.xul:1.1 getstarted.html:1.1
Paul Everitt
paul@zope.com
Sat, 15 Feb 2003 05:41:53 -0500
Update of /cvs-repository/Packages/Moztop/moztop/content/Content
In directory cvs.zope.org:/tmp/cvs-serv15085
Added Files:
ContentBindings.xml ContentOverlay.xul getstarted.html
Log Message:
Rearranging directories, landing first cut at XBL
=== Added File Packages/Moztop/moztop/content/Content/ContentBindings.xml ===
<?xml version="1.0" encoding="iso-latin-1"?>
<bindings xmlns="http://www.mozilla.org/xbl"
xmlns:xbl="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="sitetabpanel"
extends="xul:tabpanel">
<content>
<xul:tabbox flex="1">
<xul:tabpanels>
<xul:tabpanel flex="1">
<iframe src="chrome://moztop/content/Content/getstarted.html"
flex="1"/>
</xul:tabpanel>
<xul:tabpanel />
<xul:tabpanel />
<xul:tabpanel />
</xul:tabpanels>
<xul:tabs>
<xul:tab label="Contents" />
<xul:tab label="Preview" />
<xul:tab label="Properties" />
<xul:tab label="Manage" />
</xul:tabs>
</xul:tabbox>
</content>
<implementation>
<field name="urn">"No URN"</field>
<field name="resourcetitle">"Blank"</field>
<property name="tabtitle">
<setter>
// We need to create a tab element first
var thistab = document.createElement("tab");
thistab.setAttribute("label",val);
thistab.setAttribute("id",val + "-tab");
var outter = document.getElementById("active-contents-tabs");
outter.appendChild(thistab);
return this.setAttribute("resourcetitle",val);
</setter>
<getter>
dump("in getter");
return this.resourcetitle;
</getter>
</property>
<constructor>
/* Quite a trick here. resourcetitle must be set first. */
this.tabtitle = this.getAttribute("resourcetitle");
</constructor>
</implementation>
</binding>
</bindings>
=== Added File Packages/Moztop/moztop/content/Content/ContentOverlay.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/Content/getstarted.html"
flex="1"/>
</tabpanel>
</tabpanels>
</tabbox>
</box>
</overlay>
=== Added File Packages/Moztop/moztop/content/Content/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>