[Zope-CVS] CVS: Packages/MoZTop/moztop/content/zopetop - moztop.css:1.1 moztop.js:1.1 moztop.xul:1.1 moztopOverlay.xul:1.1 contents.rdf:1.2 test-tree.xul:1.2 zopetop.css:NONE zopetop.js:NONE zopetop.xul:NONE zopetopOverlay.xul:NONE
Stephan Richter
srichter@cbu.edu
Wed, 8 Jan 2003 16:43:38 -0500
Update of /cvs-repository/Packages/MoZTop/moztop/content/zopetop
In directory cvs.zope.org:/tmp/cvs-serv19866/moztop/content
Modified Files:
contents.rdf test-tree.xul
Added Files:
moztop.css moztop.js moztop.xul moztopOverlay.xul
Removed Files:
zopetop.css zopetop.js zopetop.xul zopetopOverlay.xul
Log Message:
Okay, I think I am done now with reshuffeling...
=== Added File Packages/MoZTop/moztop/content/zopetop/moztop.css ===
@import url(chrome://global/skin/);
#document
{
font-size: 10pt;
}
=== Added File Packages/MoZTop/moztop/content/zopetop/moztop.js ===
// Constants
var RDF = null;
var myDatasource = null;
//var myDatasourceURL = "file:///usr/local/mozilla/chrome/zopetop/content/zopetop/Data/foldercontents.rdf"
//var myDatasourceURL = "chrome://zopetop/content/zopetop/Data/foldercontents.rdf"
var myDatasourceURL = "http://pegasus/~ctheune/foldercontents.rdf"
function startProgram() {
setupExplorerDS();
initTaskList();
}
function closeProgram() {
}
/* Setting Up Explorer Data Source */
var ExplorerObserver = {
onBeginLoad: function(aSink)
{},
onInterrupt: function(aSink)
{},
onResume: function(aSink)
{},
onEndLoad: function(aSink)
{ //alert("Loading Explorer items done!");
},
onError: function(aSink, aStatus, aErrorMsg)
{ alert("error! " + aErrorMsg); }
};
function setupExplorerDS() {
var ExplorerRDF = Components.classes["@mozilla.org/rdf/rdf-service;1"]
.getService(Components.interfaces.nsIRDFService);
var ds = ExplorerRDF.GetDataSource(myDatasourceURL);
//var remote =
//ds.QueryInterface(Components.interfaces.nsIRDDataSource);
//var sink =
// ds.QueryInterface(Components.interfaces.nsIRDFXMLSink);
// sink.addXMLSinkObserver(ExplorerObserver);
outliner = document.getElementById('explorer');
ds.AddObserver(outliner.builder);
outliner.database.AddDataSource(ds);
}
/* Managing the active object panel */
function activateSelectedObject(event) {
/* Activate a selected object */
var index = event.target.parentNode.currentIndex + 1;
var label = event.target.parentNode.getElementsByTagName('outlinerrow')[index]
.firstChild.getAttribute('label');
addActiveObject(label)
}
function addActiveObject(label) {
/* Add an Active Object Button to the Panel */
var panel = document.getElementById("ActiveObjectsPanel");
var button = document.createElement("button");
button.setAttribute("id", label);
button.setAttribute("label", label);
button.setAttribute("onclick", "wakeupObject(this);");
panel.appendChild(button);
}
function wakeupObject(obj) {
var tabbox = document.getElementById('ContentObjectViews');
// create tab
var tab = document.createElement("tab");
tab.setAttribute("id", "test");
tab.setAttribute("label", "Test");
tabbox.firstChild.appendChild(tab);
var ol = document.getElementById('FolderContentOverlay');
alert(ol);
}
function reloadContentData(){
var RDF = Components.classes["@mozilla.org/rdf/rdf-service;1"]
.getService(Components.interfaces.nsIRDFService);
// Get the datasource.
var ds = RDF.GetDataSource(myDatasourceURL);
ds.Refresh(0);
}
=== Added File Packages/MoZTop/moztop/content/zopetop/moztop.xul ===
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://zopetop/content/zopetop.css" type="text/css"?>
<?xul-overlay href="chrome://zopetop/content/Menu/KeySetOverlay.xul"?>
<?xul-overlay href="chrome://zopetop/content/Menu/MenuOverlay.xul"?>
<?xul-overlay href="chrome://zopetop/content/Menu/ToolBarOverlay.xul"?>
<?xul-overlay href="chrome://zopetop/content/Inspector/ExplorerOverlay.xul"?>
<?xul-overlay href="chrome://zopetop/content/Main/MainOverlay.xul"?>
<?xul-overlay href="chrome://zopetop/content/StatusBar/StatusBarOverlay.xul"?>
<!DOCTYPE window [
<!ENTITY % zopetopDTD SYSTEM "chrome://zopetop/locale/zopetop.dtd">
%zopetopDTD;
]>
<window
title = "ZopeTop for Zope 3"
id = "zopetop-main-window"
xmlns = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html = "http://www.w3.org/1999/xhtml"
width = "800"
height = "600"
orient = "vertical"
persist = "screenX screenY width height sizemode"
onload = "startProgram();"
onclose = "return closeProgram();">
<script type="application/x-javascript" src="zopetop.js"/>
<script type="application/x-javascript" src="StatusBar/TaskManager.js"/>
<keyset id="menu-keyset"/>
<toolbox>
<menubar id="zopetop-menubar"/>
<toolbar id="zopetop-toolbar"/>
</toolbox>
<box orient="horizontal" flex="10">
<tree id="explorer"/>
<splitter collapse="before" />
<!-- <spacer flex="1"/><grippy/><spacer flex="1"/>
</splitter> -->
<box id="main" />
</box>
<splitter collapse="after">
<spacer flex="1"/><grippy/><spacer flex="1"/>
</splitter>
<tabbox id="statusbar"/>
</window>
=== Added File Packages/MoZTop/moztop/content/zopetop/moztopOverlay.xul ===
<?xml version="1.0"?>
<!DOCTYPE window SYSTEM "chrome://moztop/locale/moztopOverlay.dtd">
<overlay id="moztopOverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript">
function runMoztop()
{
window.openDialog('chrome://moztop/content/', '_blank', 'chrome,dialog=no');
}
</script>
<menupopup id="taskPopup">
<menuitem label="&menu-tasks-moztop:label;" oncommand="runMoztop();"/>
<menuseparator/>
</menupopup>
</overlay>
=== Packages/MoZTop/moztop/content/zopetop/contents.rdf 1.1 => 1.2 ===
--- Packages/MoZTop/moztop/content/zopetop/contents.rdf:1.1 Wed Jan 8 14:01:36 2003
+++ Packages/MoZTop/moztop/content/zopetop/contents.rdf Wed Jan 8 16:43:01 2003
@@ -4,13 +4,13 @@
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
<RDF:Seq about="urn:mozilla:package:root">
- <RDF:li resource="urn:mozilla:package:zopetop"/>
+ <RDF:li resource="urn:mozilla:package:moztop"/>
</RDF:Seq>
- <RDF:Description about="urn:mozilla:package:zopetop"
- chrome:displayName="Zopetop for Zope 3"
+ <RDF:Description about="urn:mozilla:package:moztop"
+ chrome:displayName="Moztop for Zope 3"
chrome:author="Zope Corp. and Contributors"
- chrome:name="zopetop">
+ chrome:name="moztop">
</RDF:Description>
<RDF:Seq about="urn:mozilla:overlays">
@@ -18,7 +18,7 @@
</RDF:Seq>
<RDF:Seq about="chrome://communicator/content/tasksOverlay.xul">
- <RDF:li>chrome://zopetop/content/zopetopOverlay.xul</RDF:li>
+ <RDF:li>chrome://moztop/content/moztopOverlay.xul</RDF:li>
</RDF:Seq>
</RDF:RDF>
=== Packages/MoZTop/moztop/content/zopetop/test-tree.xul 1.1 => 1.2 ===
--- Packages/MoZTop/moztop/content/zopetop/test-tree.xul:1.1 Wed Jan 8 14:01:36 2003
+++ Packages/MoZTop/moztop/content/zopetop/test-tree.xul Wed Jan 8 16:43:01 2003
@@ -6,7 +6,7 @@
- <tree datasources="file://Program Files/mozilla.org/Mozilla/chrome/zopetop/content/zopetop/test-tree.rdf"
+ <tree datasources="file://Program Files/mozilla.org/Mozilla/chrome/moztop/content/moztop/test-tree.rdf"
flex="1"
ref="test-tree.rdf#root">
<template>
=== Removed File Packages/MoZTop/moztop/content/zopetop/zopetop.css ===
=== Removed File Packages/MoZTop/moztop/content/zopetop/zopetop.js ===
=== Removed File Packages/MoZTop/moztop/content/zopetop/zopetop.xul ===
=== Removed File Packages/MoZTop/moztop/content/zopetop/zopetopOverlay.xul ===