[Zope-CVS] CVS: Packages/Moztop/moztop/content/Menu - commandset.xul:1.1 MenuOverlay.xul:1.4 ToolBarOverlay.xul:1.12
Paul Everitt
paul@zope.com
Mon, 10 Mar 2003 17:54:20 -0500
Update of /cvs-repository/Packages/Moztop/moztop/content/Menu
In directory cvs.zope.org:/tmp/cvs-serv21883/Menu
Modified Files:
MenuOverlay.xul ToolBarOverlay.xul
Added Files:
commandset.xul
Log Message:
All commands for new content items are now plugged in and popup dialog boxes under Content directories
=== Added File Packages/Moztop/moztop/content/Menu/commandset.xul ===
<?xml version="1.0"?>
<overlay id="CommandSetOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<commandset id="moztop-commands">
<command id="menu-file-new-site:command"
oncommand="window.
openDialog('chrome://moztop/content/Menu/connection-wizard.xul',
! 'Connection Wizard', 'chrome',sitesmanager);"/>
<command id="menu-file-new-folder:command"
oncommand="window
.openDialog('chrome://moztop/content/Content/Folder/newfolder.xul',
'newcontent','chrome',sitesmanager);"/>
<command id="menu-file-new-file:command"
oncommand="window
.openDialog('chrome://moztop/content/Content/File/newfile.xul',
'newcontent','chrome',sitesmanager);"/>
<command id="menu-file-new-image:command"
oncommand="window
.openDialog('chrome://moztop/content/Content/Image/newimage.xul',
'newcontent','chrome',sitesmanager);"/>
<command id="menu-file-new-zptpage:command"
oncommand="window
.openDialog('chrome://moztop/content/Content/ZPTPage/newzptpage.xul',
'newcontent','chrome',sitesmanager);"/>
<command id="menu-file-new-dtmlpage:command"
oncommand="window
.openDialog('chrome://moztop/content/Content/DTMLPage/newdtmlpage.xul',
'newcontent','chrome',sitesmanager);"/>
<command id="menu-file-new-sqlscript:command"
oncommand="window
.openDialog('chrome://moztop/content/Content/SQLScript/newsqlscript.xul',
'newcontent','chrome',sitesmanager);"/>
<command id="menu-file-close:command" oncommand="closeProgram();"/>
<command id="menu-help-zope3:command" oncommand="showZope3();"/>
<command id="menu-help-about:command" oncommand="showAbout();"/>
<command id="menu-view-reload:command" oncommand="BrowserReload()"/>
<command id="menu-debug-dump:command" oncommand="dumpDataSourceManagers();"/>
</commandset>
</overlay>
=== Packages/Moztop/moztop/content/Menu/MenuOverlay.xul 1.3 => 1.4 ===
--- Packages/Moztop/moztop/content/Menu/MenuOverlay.xul:1.3 Sat Feb 15 05:56:45 2003
+++ Packages/Moztop/moztop/content/Menu/MenuOverlay.xul Mon Mar 10 17:54:16 2003
@@ -8,14 +8,14 @@
<menupopup id="file-popup">
<menu id="new-menu" label="New">
<menupopup id="new-popup">
- <menuitem label="Site"/>
+ <menuitem label="Site" command="menu-file-new-site:command"/>
<menuseparator/>
- <menuitem label="Folder"/>
- <menuitem label="File"/>
- <menuitem label="Image"/>
- <menuitem label="ZPTPage"/>
- <menuitem label="DTMLPage"/>
- <menuitem label="SQLScript"/>
+ <menuitem label="Folder" command="menu-file-new-folder:command"/>
+ <menuitem label="File" command="menu-file-new-file:command"/>
+ <menuitem label="Image" command="menu-file-new-image:command"/>
+ <menuitem label="ZPT Page" command="menu-file-new-zptpage:command"/>
+ <menuitem label="DTML Page" command="menu-file-new-dtmlpage:command"/>
+ <menuitem label="SQL Script" command="menu-file-new-sqlscript:command"/>
</menupopup>
</menu>
<menuitem label="Connect" key="close-key"
=== Packages/Moztop/moztop/content/Menu/ToolBarOverlay.xul 1.11 => 1.12 ===
--- Packages/Moztop/moztop/content/Menu/ToolBarOverlay.xul:1.11 Sat Feb 15 05:56:45 2003
+++ Packages/Moztop/moztop/content/Menu/ToolBarOverlay.xul Mon Mar 10 17:54:16 2003
@@ -6,15 +6,17 @@
<script src="chrome://moztop/content/Menu/ToolBar.js"/>
<toolbar id="moztop-toolbar">
- <button label="New Site"
- oncommand="window.openDialog('chrome://moztop/content/Menu/connection-wizard.xul',
- 'Connection Wizard', 'chrome',sitesmanager);" />
+ <button label="New Site" command="menu-file-new-site:command" />
<button oncommand="sitesmanager.deleteResource();"
label="Delete" tooltiptext="Delete selected resource"/>
<button oncommand="sitesmanager.connectSelectedSite();"
label="Connect" tooltiptext="Connect or reload selected site"/>
<button oncommand="removeActiveContentTab();"
- label="Remove Active Content Tab" />
+ label="Remove Tab" />
+ <button oncommand="sitesmanager.PUT();"
+ label="PUT" />
+ <button oncommand="sitesmanager.DELETE('http://localhost:8000/somefolder','foo');"
+ label="Delete Foo" />
<spring flex="100%" />
<image src="chrome://moztop/skin/moztop.png" height="50" />