home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 May / PCWorld_2003-05_cd.bin / Komunik / phoenix / chrome / toolkit.jar / content / global / console.xul < prev    next >
Extensible Markup Language  |  2002-12-03  |  6KB  |  163 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): Joe Hewitt <hewitt@netscape.com>
  22.  
  23. -->
  24.  
  25. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?> 
  26. <?xml-stylesheet href="chrome://global/skin/console.css" type="text/css"?> 
  27. <?xml-stylesheet href="chrome://global/content/console.css" type="text/css"?> 
  28.  
  29. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  30. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  31. <?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
  32.  
  33. <!DOCTYPE window [
  34.   <!ENTITY % console SYSTEM "chrome://global/locale/console.dtd"> %console;
  35.   <!ENTITY % util SYSTEM "chrome://communicator/locale/utilityOverlay.dtd"> %util;
  36. ]>
  37.  
  38. <window id="JSConsoleWindow"
  39.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  40.         title="&console.title;"
  41.         windowtype="global:console"
  42.         width="640" height="480"
  43.         screenX="10" screenY="10"
  44.         persist="screenX screenY width height"> 
  45.  
  46. <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  47. <script type="application/x-javascript" src="chrome://global/content/console.js"/>
  48.  
  49. <stringbundle id="ConsoleBundle" src="chrome://global/locale/console.properties"/>
  50. <commandset id="tasksCommands"/>
  51. <command id="cmd_copy" oncommand="copyItemToClipboard()"/>
  52. <command id="cmd_close" oncommand="window.close()"/>
  53. <command id="cmd_quit"/>
  54.  
  55.   <broadcaster id="Console:clear" label="&clear.label;" 
  56.                accesskey="&clear.accesskey;" 
  57.                oncommand="clearConsole();"/>
  58.   
  59.   <broadcaster id="Console:sortAscend" label="&sortFirst.label;" 
  60.                accesskey="&sortFirst.accesskey;"
  61.                oncommand="changeSortOrder('forward');"/>
  62.   <broadcaster id="Console:sortDescend" label="&sortLast.label;"
  63.                accesskey="&sortLast.accesskey;"
  64.                oncommand="changeSortOrder('reverse');"/>
  65.  
  66.   <broadcaster id="Console:toggleToolbarMode" label="&toolbarMode.label;" 
  67.                oncommand="toggleToolbar(this);" checked="true" 
  68.                _toolbar="ToolbarMode"/>
  69.   <broadcaster id="Console:toggleToolbarEval" label="&toolbarEval.label;"
  70.                oncommand="toggleToolbar(this);" checked="true" 
  71.                _toolbar="ToolbarEval"/>
  72.  
  73. <broadcasterset id="ModeBroadcasters">
  74.   <broadcaster id="Console:modeAll" label="&all.label;" 
  75.                accesskey="&all.accesskey;" 
  76.                oncommand="changeMode('All');"/>
  77.   <broadcaster id="Console:modeErrors" label="&errors.label;"
  78.                accesskey="&errors.accesskey;"
  79.                oncommand="changeMode('Errors');"/>
  80.   <broadcaster id="Console:modeWarnings" label="&warnings.label;"
  81.                accesskey="&warnings.accesskey;"
  82.                oncommand="changeMode('Warnings');"/>
  83.   <broadcaster id="Console:modeMessages" label="&messages.label;"
  84.                accesskey="&messages.accesskey;"
  85.                oncommand="changeMode('Messages');"/>
  86. </broadcasterset>
  87.  
  88. <keyset id="tasksKeys">
  89.   <key id="key_copy"/>
  90.   <key id="key_close"/>
  91.   <key id="key_quit"/>
  92. </keyset>
  93.  
  94. <popupset id="ContextMenus">
  95.   <popup id="ConsoleContext" onpopupshowing="UpdateCopyMenu()">
  96.     <menuitem type="radio" observes="Console:sortAscend"/>
  97.     <menuitem type="radio" observes="Console:sortDescend"/>
  98.     <menuseparator/>
  99.     <menuitem id="menu_copy_cm" observes="cmd_copy" label="©Cmd.label;" accesskey="©Cmd.accesskey;"/>
  100.   </popup>
  101. </popupset>
  102.   
  103. <toolbox>
  104.   <menubar id="main-menubar" class="chromeclass-menubar" grippytooltiptext="&menuBar.tooltip;">
  105.     <menu id="menu_File">
  106.       <menupopup id="menu_FilePopup">
  107.         <menuitem id="menu_close"/>
  108.       </menupopup>
  109.     </menu>
  110.  
  111.     <menu id="menu_Edit">
  112.       <menupopup onpopupshowing="UpdateCopyMenu()">
  113.         <menuitem id="menu_copy"/>
  114.       </menupopup>
  115.     </menu>
  116.   
  117.     <menu id="menu_View">
  118.       <menupopup>
  119.        <menu label="&toolbarsCmd.label;" accesskey="&toolbarsCmd.accesskey;">
  120.           <menupopup> 
  121.             <menuitem type="checkbox" observes="Console:toggleToolbarMode"/>
  122.             <menuitem type="checkbox" observes="Console:toggleToolbarEval"/>
  123.           </menupopup>
  124.         </menu>
  125.         <menuseparator/>
  126.         <menuitem type="radio" observes="Console:sortAscend"/>
  127.         <menuitem type="radio" observes="Console:sortDescend"/>
  128.       </menupopup>
  129.     </menu>
  130.   
  131.     <!-- tasks menu filled from tasksOverlay -->
  132.     <menu id="tasksMenu"/>
  133.  
  134.     <!-- window menu filled from tasksOverlay -->
  135.     <menu id="windowMenu"/>
  136.  
  137.     <!-- help menu filled from globalOverlay -->
  138.     <menu id="menu_Help"/>
  139.   </menubar>
  140.  
  141.   <toolbar class="chromeclass-toolbar" id="ToolbarMode" grippytooltiptext="&modeToolbar.tooltip;">
  142.     <toolbarbutton type="radio" group="mode" observes="Console:modeAll"/>
  143.     <toolbarbutton type="radio" group="mode" observes="Console:modeErrors"/>
  144.     <toolbarbutton type="radio" group="mode" observes="Console:modeWarnings"/>
  145.     <toolbarbutton type="radio" group="mode" observes="Console:modeMessages"/>
  146.     <toolbarseparator/>
  147.     <toolbarbutton observes="Console:clear"/>
  148.   </toolbar>
  149.   
  150.   <toolbar class="chromeclass-toolbar" id="ToolbarEval" grippytooltiptext="&entryToolbar.tooltip;">
  151.     <textbox id="TextboxEval" class="toolbar" value="" onkeypress="onEvalKeyPress(event)" flex="1"/>
  152.     <toolbarbutton id="ButtonEval" label="&evaluate.label;" oncommand="evaluateTypein()"/>
  153.   </toolbar>
  154. </toolbox>
  155.   
  156. <vbox id="ConsoleBox" class="console-box" flex="1" context="ConsoleContext" persist="sortOrder"/>
  157.  
  158. <iframe name="Evaluator" id="Evaluator" collapsed="true"/>
  159.  
  160. </window>
  161.  
  162.  
  163.