[Zope-CVS] CVS: Packages/Moztop/moztop/content/Inspector - Explorer.js:1.2 ExplorerOverlay.xul:1.12

Sidnei da Silva sidnei@x3ng.com.br
Thu, 16 Jan 2003 12:19:04 -0500


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

Modified Files:
	Explorer.js ExplorerOverlay.xul 
Log Message:
first try on adding context menus

=== Packages/Moztop/moztop/content/Inspector/Explorer.js 1.1 => 1.2 ===
--- Packages/Moztop/moztop/content/Inspector/Explorer.js:1.1	Thu Jan 16 00:03:07 2003
+++ Packages/Moztop/moztop/content/Inspector/Explorer.js	Thu Jan 16 12:19:01 2003
@@ -112,3 +112,14 @@
     xmlRpc.asyncCall(Listener, null, 'renameObject', [old_name, new_name], 2);
 }
 
+function cutContentObject() {
+    alert('Called cutContentObject.');
+}
+
+function copyContentObject() {
+    alert('Called copyContentObject.');
+}
+
+function pasteContentObject() {
+    alert('Called pasteContentObject.');
+}


=== Packages/Moztop/moztop/content/Inspector/ExplorerOverlay.xul 1.11 => 1.12 ===
--- Packages/Moztop/moztop/content/Inspector/ExplorerOverlay.xul:1.11	Thu Jan 16 00:03:07 2003
+++ Packages/Moztop/moztop/content/Inspector/ExplorerOverlay.xul	Thu Jan 16 12:19:01 2003
@@ -6,10 +6,19 @@
 
   <script type="application/x-javascript" src="Explorer.js"/>
 
+
+  <commandset id="explorercommands"> 
+    <command id="explorer-add:command" oncommand="addContentObject();"/> 
+    <command id="explorer-delete:command" oncommand="deleteContentObject();"/> 
+    <command id="explorer-rename:command" oncommand="renameContentObject();"/> 
+    <command id="explorer-cut:command" oncommand="cutContentObject();"/> 
+  </commandset> 
+
 <tabpanel id="explorer-panel">
 <tree flex="1" style="width:20em;" 
     id="navigationtree"
     datasources="rdf:null" 
+    context="explorermenu"
     containment="http://home.netscape.com/NC-rdf#subitems">
   <treecols>
     <treecol id="ResourceNameColumn" label="Name" primary="true" flex="1"/>
@@ -72,6 +81,18 @@
     <button onclick="renameContentObject();" label="Rename" />
   </box>
 </box>
+
+<popupset>
+  <popup id="explorermenu">
+    <menuitem label="Add" command="explorer-add:command" />
+    <menuitem label="Delete" command="explorer-delete:command" />
+    <menuitem label="Rename" command="explorer-rename:command" />
+    <menuseparator/>
+    <menuitem label="Cut" command="explorer-cut:command" />
+    <menuitem label="Copy" command="explorer-copy:command" />
+    <menuitem label="Paste" command="explorer-paste:command" />
+  </popup>
+</popupset>
 
 </tabpanel>