[Zope-CVS] CVS: Packages/Moztop/moztop/content/toolbar - toolbaroverlay.xul:1.9

Paul Everitt paul@zope.com
Wed, 26 Mar 2003 06:04:59 -0500


Update of /cvs-repository/Packages/Moztop/moztop/content/toolbar
In directory cvs.zope.org:/tmp/cvs-serv23170/toolbar

Modified Files:
	toolbaroverlay.xul 
Log Message:
Widgets are now constructing themselves based on stuff in 
genericviewerbinding.xml.  Turned New into a menu button with 
Folder, ZPT Page, and Site in it.  Beginning of PROPFIND support 
for sniffing the DAV source property when opening a resource.



=== Packages/Moztop/moztop/content/toolbar/toolbaroverlay.xul 1.8 => 1.9 ===
--- Packages/Moztop/moztop/content/toolbar/toolbaroverlay.xul:1.8	Sun Mar 23 16:09:16 2003
+++ Packages/Moztop/moztop/content/toolbar/toolbaroverlay.xul	Wed Mar 26 06:04:28 2003
@@ -5,10 +5,38 @@
 
   <script src="chrome://moztop/content/toolbar/toolbar.js"/>
 
+<script>
+
+  function testPropFind (url) {
+      /* A temp function to help debug PROPFIND */
+
+      function callback (result) {
+        var src = result.getElementsByTagNameNS("DAV:", "src");
+	var srcval = src.tagName;
+        alert("srcval is " + srcval);
+      }
+
+      var url = "http://localhost:8080/zptpage";
+      var jsdav = new DavClient();
+      var pf = new PropFind();
+      var p = new Prop("DAV:");
+      p.addProperty("source");
+      pf.addProp(p);
+      // pf.allprop = true;
+      sitesds.callback = callback;
+      jsdav.PROPFIND(url, pf, 1, sitesds);
+}
+
+
+
+</script>
+
+
   <toolbar id="moztop-toolbar">
 
     <button type="menu-button" class="moztop-toolbarbutton-1" label="New">
       <menupopup id="moztop-menu-file-popup">
+         <menuitem label="ZPT Page" command="menu-file-new-zptpage:command"/>
          <menuitem label="Folder" command="menu-file-new-folder:command"/>
          <menuseparator/>
          <menuitem label="Site" command="menu-file-new-site:command"/>
@@ -20,10 +48,9 @@
 	    label="Remove" tooltiptext="Remove selected item in navigation"/>
     <button oncommand="sitesmanager.reloadSelectedSite();" 
 	    label="Reload" tooltiptext="Reload selected site"/>
-    <button oncommand="removeActiveContentTab();" 
-            label="Remove Tab" />
-    <button oncommand="testDAV();"
-	    label="Test DAV"/>
+    <button oncommand="testPropFind('http://localhost:8380/somezptpage');"
+	    label="Test PROPFIND"/>
+    <button command="menu-file-save:command" label="Save"/>
     <spring flex="100%" />
     <image src="chrome://moztop/skin/moztop.png" />