home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 March / PCWorld_2005-03_cd.bin / komunikace / kmeleon / kmeleon09.exe / toolkit.jar / content / global / console.xul < prev    next >
Extensible Markup Language  |  2005-01-08  |  5KB  |  122 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. <!DOCTYPE window [
  30.   <!ENTITY % console SYSTEM "chrome://global/locale/console.dtd"> %console;
  31.   <!ENTITY % util SYSTEM "chrome://communicator/locale/utilityOverlay.dtd"> %util;
  32. ]>
  33.  
  34. <window id="JSConsoleWindow"
  35.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  36.         title="&console.title;"
  37.         windowtype="global:console"
  38.         width="640" height="480"
  39.         screenX="10" screenY="10"
  40.         persist="screenX screenY width height"> 
  41.  
  42. <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  43. <script type="application/x-javascript" src="chrome://global/content/console.js"/>
  44.  
  45. <stringbundle id="ConsoleBundle" src="chrome://global/locale/console.properties"/>
  46. <commandset id="tasksCommands"/>
  47. <command id="cmd_copy" oncommand="copyItemToClipboard()"/>
  48. <command id="cmd_close" oncommand="window.close()"/>
  49. <command id="cmd_quit"/>
  50.  
  51.   <broadcaster id="Console:clear" label="&clear.label;" 
  52.                accesskey="&clear.accesskey;" 
  53.                oncommand="clearConsole();"/>
  54.   
  55.   <broadcaster id="Console:sortAscend" label="&sortFirst.label;" 
  56.                accesskey="&sortFirst.accesskey;"
  57.                oncommand="changeSortOrder('forward');"/>
  58.   <broadcaster id="Console:sortDescend" label="&sortLast.label;"
  59.                accesskey="&sortLast.accesskey;"
  60.                oncommand="changeSortOrder('reverse');"/>
  61.  
  62.   <broadcaster id="Console:toggleToolbarMode" label="&toolbarMode.label;" 
  63.                oncommand="toggleToolbar(this);" checked="true" 
  64.                _toolbar="ToolbarMode"/>
  65.   <broadcaster id="Console:toggleToolbarEval" label="&toolbarEval.label;"
  66.                oncommand="toggleToolbar(this);" checked="true" 
  67.                _toolbar="ToolbarEval"/>
  68.  
  69. <broadcasterset id="ModeBroadcasters">
  70.   <broadcaster id="Console:modeAll" label="&all.label;" 
  71.                accesskey="&all.accesskey;" 
  72.                oncommand="changeMode('All');"/>
  73.   <broadcaster id="Console:modeErrors" label="&errors.label;"
  74.                accesskey="&errors.accesskey;"
  75.                oncommand="changeMode('Errors');"/>
  76.   <broadcaster id="Console:modeWarnings" label="&warnings.label;"
  77.                accesskey="&warnings.accesskey;"
  78.                oncommand="changeMode('Warnings');"/>
  79.   <broadcaster id="Console:modeMessages" label="&messages.label;"
  80.                accesskey="&messages.accesskey;"
  81.                oncommand="changeMode('Messages');"/>
  82. </broadcasterset>
  83.  
  84. <keyset id="tasksKeys">
  85.   <key id="key_copy"/>
  86.   <key id="key_close"/>
  87.   <key id="key_quit"/>
  88. </keyset>
  89.  
  90. <popupset id="ContextMenus">
  91.   <popup id="ConsoleContext" onpopupshowing="UpdateCopyMenu()">
  92.     <menuitem type="radio" observes="Console:sortAscend"/>
  93.     <menuitem type="radio" observes="Console:sortDescend"/>
  94.     <menuseparator/>
  95.     <menuitem id="menu_copy_cm" observes="cmd_copy" label="©Cmd.label;" accesskey="©Cmd.accesskey;"/>
  96.   </popup>
  97. </popupset>
  98.   
  99. <toolbox>
  100.   <toolbar class="chromeclass-toolbar" id="ToolbarMode" grippytooltiptext="&modeToolbar.tooltip;">
  101.     <toolbarbutton type="radio" group="mode" observes="Console:modeAll"/>
  102.     <toolbarbutton type="radio" group="mode" observes="Console:modeErrors"/>
  103.     <toolbarbutton type="radio" group="mode" observes="Console:modeWarnings"/>
  104.     <toolbarbutton type="radio" group="mode" observes="Console:modeMessages"/>
  105.     <toolbarseparator/>
  106.     <toolbarbutton observes="Console:clear"/>
  107.   </toolbar>
  108.   
  109.   <toolbar class="chromeclass-toolbar" id="ToolbarEval" grippytooltiptext="&entryToolbar.tooltip;">
  110.     <textbox id="TextboxEval" class="toolbar" value="" onkeypress="onEvalKeyPress(event)" flex="1"/>
  111.     <toolbarbutton id="ButtonEval" label="&evaluate.label;" oncommand="evaluateTypein()"/>
  112.   </toolbar>
  113. </toolbox>
  114.   
  115. <vbox id="ConsoleBox" class="console-box" flex="1" context="ConsoleContext" persist="sortOrder"/>
  116.  
  117. <iframe name="Evaluator" id="Evaluator" collapsed="true"/>
  118.  
  119. </window>
  120.  
  121.  
  122.