home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / phoenx05.zip / phoenix / chrome / browser.jar / content / browser / console / console.xul < prev    next >
Extensible Markup Language  |  2002-10-12  |  4KB  |  97 lines

  1. <?xml version="1.0"?> <!-- -*- tab-width: 4; indent-tabs-mode: nil -*- -->
  2.  
  3.  
  4. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  5. <?xml-stylesheet href="chrome://global/skin/console.css" type="text/css"?> 
  6. <?xml-stylesheet href="chrome://browser/content/console/console.css" type="text/css"?> 
  7.  
  8. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  9. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  10.  
  11. <!DOCTYPE window [
  12.   <!ENTITY % console SYSTEM "chrome://global/locale/console.dtd"> %console;
  13.   <!ENTITY % util SYSTEM "chrome://communicator/locale/utilityOverlay.dtd"> %util;
  14.   <!ENTITY % globalRegionDTD SYSTEM "chrome://global-region/locale/region.dtd"> %globalRegionDTD;
  15.   <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" > %brandDTD;
  16. ]>
  17.  
  18. <window id="JSConsoleWindow"
  19.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  20.         title="&console.title;"
  21.         windowtype="global:console"
  22.         width="640" height="480"
  23.         screenX="10" screenY="10"
  24.         persist="screenX screenY width height"> 
  25.  
  26. <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  27. <script type="application/x-javascript" src="chrome://browser/content/console/console.js"/>
  28.  
  29. <stringbundle id="ConsoleBundle" src="chrome://global/locale/console.properties"/>
  30. <command id="cmd_copy" oncommand="copyItemToClipboard()"/>
  31. <command id="cmd_close" oncommand="window.close()"/>
  32.  
  33.   <broadcaster id="Console:clear" label="&clear.label;" oncommand="clearConsole();"/>
  34.   
  35.   <broadcaster id="Console:sortAscend" label="&sortFirst.label;" 
  36.                accesskey="&sortFirst.accesskey;"
  37.                oncommand="changeSortOrder('forward');"/>
  38.   <broadcaster id="Console:sortDescend" label="&sortLast.label;"
  39.                accesskey="&sortLast.accesskey;"
  40.                oncommand="changeSortOrder('reverse');"/>
  41.  
  42.   <broadcaster id="Console:toggleToolbarMode" label="&toolbarMode.label;" 
  43.                oncommand="toggleToolbar(this);" checked="true" 
  44.                _toolbar="ToolbarMode"/>
  45.   <broadcaster id="Console:toggleToolbarEval" label="&toolbarEval.label;"
  46.                oncommand="toggleToolbar(this);" checked="true" 
  47.                _toolbar="ToolbarEval"/>
  48.  
  49. <broadcasterset id="ModeBroadcasters">
  50.   <broadcaster id="Console:modeAll" label="&all.label;" 
  51.                oncommand="changeMode('All');"/>
  52.   <broadcaster id="Console:modeErrors" label="&errors.label;"
  53.                oncommand="changeMode('Errors');"/>
  54.   <broadcaster id="Console:modeWarnings" label="&warnings.label;"
  55.                oncommand="changeMode('Warnings');"/>
  56.   <broadcaster id="Console:modeMessages" label="&messages.label;"
  57.                oncommand="changeMode('Messages');"/>
  58. </broadcasterset>
  59.  
  60. <keyset>
  61.   <key id="key_copy"/>
  62.   <key id="key_close"/>
  63. </keyset>
  64.  
  65. <popupset id="ContextMenus">
  66.   <popup id="ConsoleContext" onpopupshowing="UpdateCopyMenu()">
  67.     <menuitem type="radio" observes="Console:sortAscend"/>
  68.     <menuitem type="radio" observes="Console:sortDescend"/>
  69.     <menuseparator/>
  70.     <menuitem id="menu_copy_cm" observes="cmd_copy" label="©Cmd.label;" accesskey="©Cmd.accesskey;"/>
  71.   </popup>
  72. </popupset>
  73.   
  74. <toolbox>
  75.   <toolbar class="chromeclass-toolbar" id="ToolbarMode" grippytooltiptext="&modeToolbar.tooltip;">
  76.     <toolbarbutton type="radio" group="mode" observes="Console:modeAll"/>
  77.     <toolbarbutton type="radio" group="mode" observes="Console:modeErrors"/>
  78.     <toolbarbutton type="radio" group="mode" observes="Console:modeWarnings"/>
  79.     <toolbarbutton type="radio" group="mode" observes="Console:modeMessages"/>
  80.     <toolbarseparator/>
  81.     <toolbarbutton observes="Console:clear"/>
  82.   </toolbar>
  83.   
  84.   <toolbar class="chromeclass-toolbar" id="ToolbarEval" grippytooltiptext="&entryToolbar.tooltip;">
  85.     <textbox id="TextboxEval" class="toolbar" value="" onkeypress="onEvalKeyPress(event)" flex="1"/>
  86.     <toolbarbutton id="ButtonEval" label="&evaluate.label;" oncommand="evaluateTypein()"/>
  87.   </toolbar>
  88. </toolbox>
  89.   
  90. <vbox id="ConsoleBox" class="console-box" flex="1" context="ConsoleContext" persist="sortOrder"/>
  91.  
  92. <iframe name="Evaluator" id="Evaluator" collapsed="true"/>
  93.  
  94. </window>
  95.  
  96.  
  97.