home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / mozil06.zip / bin / chrome / toolkit.jar / content / global / console.xul < prev    next >
Extensible Markup Language  |  2001-02-14  |  4KB  |  107 lines

  1. <?xml version="1.0"?> <!-- -*- tab-width: 4; indent-tabs-mode: nil -*- -->
  2.  
  3. <!-- The contents of this file are subject to the Netscape Public
  4. License Version 1.1 (the "License"); you may not use this file
  5. except in compliance with the License. You may obtain a copy of
  6. the License at http://www.mozilla.org/NPL/
  7.  
  8. Software distributed under the License is distributed on an "AS
  9. IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  10. implied. See the License for the specific language governing
  11. rights and limitations under the License.
  12.  
  13. The Original Code is Mozilla Communicator client code, released
  14. March 31, 1998.
  15.  
  16. The Initial Developer of the Original Code is Netscape
  17. Communications Corporation. Portions created by Netscape are
  18. Copyright (C) 1998-1999 Netscape Communications Corporation. All
  19. Rights Reserved.
  20.  
  21. Contributor(s): ______________________________________. -->
  22.  
  23. <?xml-stylesheet href="chrome://global/skin/console.css" type="text/css"?> 
  24. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?> 
  25. <?xml-stylesheet href="chrome://global/content/console.css" type="text/css"?> 
  26.  
  27. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  28. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  29. <?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
  30.  
  31. <!DOCTYPE window SYSTEM "chrome://global/locale/console.dtd" >
  32.  
  33. <window id="main-window" xmlns:html="http://www.w3.org/1999/xhtml"
  34.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  35.         title="&console.title;"
  36.         onload="onLoadJSConsole()"
  37.         onunload="onUnloadJSConsole()"
  38.         windowtype="global:console"
  39.         align="vertical"
  40.         width="640" height="480"
  41.         screenX="10" screenY="10"
  42.         persist="screenX screenY width height"
  43.  
  44. <script language="javascript" src="chrome://global/content/strres.js"/>
  45. <script language="javascript" src="chrome://global/content/globalOverlay.js"/>
  46. <script language="javascript" src="chrome://global/content/console.js"/>
  47.  
  48. <broadcasterset>
  49.   <broadcaster id="cmd_quit"/>
  50. </broadcasterset>
  51.  
  52. <toolbox>
  53.   <menubar id="main-menubar" class="chromeclass-menubar">
  54.     <menu id="menu_File">
  55.       <menupopup id="menu_FilePopup">
  56.         <menuitem id="menu_close" oncommand="window.close()"/>
  57.       </menupopup>
  58.     </menu>
  59.  
  60.     <menu id="menu_Edit">
  61.       <menupopup id="dummyid">
  62.         <menuitem id="menu_cut" disabled="true"/>
  63.         <menuitem id="menu_copy" disabled="true"/>
  64.         <menuitem id="menu_paste" disabled="true"/>
  65.       </menupopup>
  66.     </menu>
  67.   
  68.     <!-- tasks menu filled from tasksOverlay -->
  69.     <menu id="tasksMenu"/>
  70.  
  71.     <!-- help menu filled from globalOverlay -->
  72.     <menu id="menu_Help"/>
  73.   </menubar>
  74.  
  75.   <toolbar id="toolbar">
  76.     <button class="button-toolbar" observes="Console:ShowAll" oncommand="changeMode('all', this);" value="&all.label;"/>
  77.     <button class="button-toolbar" observes="Console:ShowErrors" oncommand="changeMode('errors', this);" value="&errors.label;"/>
  78.     <button class="button-toolbar" observes="Console:ShowWarnings" oncommand="changeMode('warnings', this);" value="&warnings.label;"/>
  79.     <button class="button-toolbar" observes="Console:Clear" oncommand="changeMode('clear', this);" value="&clear.label;"/>
  80.   </toolbar>
  81. </toolbox>
  82.   
  83.   <tree flex="1" id="console" context="context">
  84.     <treecolgroup>
  85.       <treecol flex="1"/>
  86.     </treecolgroup>
  87.     <treechildren id="consoleTreeChildren" flex="1"/>
  88.   </tree>
  89.  
  90.   <popupset>
  91.     <popup id="context">
  92.       <menuitem type="radio" observes="Console:ShowAll" value="&all.label;" oncommand="changeMode('all', this);"/>
  93.       <menuitem type="radio" observes="Console:ShowErrors" value="&errors.label;" oncommand="changeMode('errors', this);"/>
  94.       <menuitem type="radio" observes="Console:ShowWarnings" value="&warnings.label;" oncommand="changeMode('warnings', this);"/>
  95.       <menuitem type="radio" observes="Console:Clear" value="&clear.label;" oncommand="changeMode('clear', this);"/>
  96.     </popup>
  97.   </popupset>  
  98.   
  99.   <broadcasterset id="broadcasterset">
  100.     <broadcaster id="Console:ShowAll" toggled="true" checked="true"/>
  101.     <broadcaster id="Console:ShowErrors"/>
  102.     <broadcaster id="Console:ShowWarnings"/>
  103.     <broadcaster id="Console:Clear"/>
  104.   </broadcasterset>
  105.   
  106. </window>