home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 March / PCWorld_2007-03_cd.bin / komunikace / nvu / nvu-1.0-cs-CZ.win32.installer.exe / chrome / toolkit.jar / content / global / console.xul < prev    next >
Extensible Markup Language  |  2003-12-01  |  4KB  |  102 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/console.css" type="text/css"?> 
  6. <?xml-stylesheet href="chrome://global/content/console.css" type="text/css"?> 
  7.  
  8. <!DOCTYPE window [
  9.   <!ENTITY % console SYSTEM "chrome://global/locale/console.dtd"> %console;
  10. ]>
  11.  
  12. <window id="JSConsoleWindow"
  13.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  14.         title="&console.title;"
  15.         windowtype="global:console"
  16.         width="640" height="480"
  17.         screenX="10" screenY="10"
  18.         persist="screenX screenY width height"
  19.         onclose="return closeWindow(false);"> 
  20.  
  21.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  22.   <script type="application/x-javascript" src="chrome://global/content/console.js"/>
  23.  
  24.   <stringbundle id="ConsoleBundle" src="chrome://global/locale/console.properties"/>
  25.  
  26.   <commandset commandupdater="true"
  27.               events="select"
  28.               oncommandupdate="updateCopyMenu()">
  29.     <command id="cmd_copy" oncommand="copyItemToClipboard()"/>
  30.     <command id="cmd_close" oncommand="closeWindow(true)"/>
  31.   </commandset>
  32.  
  33.   <broadcaster id="Console:clear" label="&clear.label;" 
  34.                accesskey="&clear.accesskey;"
  35.                oncommand="clearConsole();"/>
  36.   <broadcaster id="Console:sortAscend" label="&sortFirst.label;" 
  37.                accesskey="&sortFirst.accesskey;"
  38.                oncommand="changeSortOrder('forward');"/>
  39.   <broadcaster id="Console:sortDescend" label="&sortLast.label;"
  40.                accesskey="&sortLast.accesskey;"
  41.                oncommand="changeSortOrder('reverse');"/>
  42.  
  43.   <broadcasterset id="ModeBroadcasters">
  44.     <broadcaster id="Console:modeAll" 
  45.                  label="&all.label;" accesskey="&all.accesskey;"
  46.                  oncommand="changeMode('All');"/>
  47.     <broadcaster id="Console:modeErrors"
  48.                  label="&errors.label;" accesskey="&errors.accesskey;"
  49.                  oncommand="changeMode('Errors');"/>
  50.     <broadcaster id="Console:modeWarnings"
  51.                  label="&warnings.label;" accesskey="&warnings.accesskey;"
  52.                  oncommand="changeMode('Warnings');"/>
  53.     <broadcaster id="Console:modeMessages"
  54.                  label="&messages.label;" accesskey="&messages.accesskey;"
  55.                  oncommand="changeMode('Messages');"/>
  56.   </broadcasterset>
  57.  
  58.   <keyset>
  59.     <key id="key_copy"  key="©Cmd.commandkey;"  modifiers="accel"
  60.          command="cmd_copy"/>
  61.     <key id="key_close" key="&closeCmd.commandkey;" modifiers="accel"
  62.          command="cmd_close"/>
  63.     <key keycode="VK_ESCAPE" command="cmd_close"/>
  64.     <key id="key_focus1" key="&focus1.commandkey;" modifiers="accel"
  65.          oncommand="gTextBoxEval.focus()"/>
  66.     <key id="key_focus2" key="&focus2.commandkey;" modifiers="alt"
  67.          oncommand="gTextBoxEval.focus()"/>
  68.   </keyset>
  69.  
  70.   <popupset id="ContextMenus">
  71.     <popup id="ConsoleContext">
  72.       <menuitem type="radio" observes="Console:sortAscend"/>
  73.       <menuitem type="radio" observes="Console:sortDescend"/>
  74.       <menuseparator/>
  75.       <menuitem id="menu_copy_cm" observes="cmd_copy" label="©Cmd.label;" key="key_copy" accesskey="©Cmd.accesskey;"/>
  76.     </popup>
  77.   </popupset>
  78.   
  79.   <toolbox>
  80.     <toolbar class="chromeclass-toolbar" id="ToolbarMode">
  81.       <toolbarbutton type="radio" group="mode" observes="Console:modeAll"/>
  82.       <toolbarbutton type="radio" group="mode" observes="Console:modeErrors"/>
  83.       <toolbarbutton type="radio" group="mode" observes="Console:modeWarnings"/>
  84.       <toolbarbutton type="radio" group="mode" observes="Console:modeMessages"/>
  85.       <toolbarseparator/>
  86.       <toolbarbutton observes="Console:clear"/>
  87.     </toolbar>
  88.   
  89.     <toolbar class="chromeclass-toolbar" id="ToolbarEval">
  90.       <textbox id="TextboxEval" class="toolbar" value="" onkeypress="onEvalKeyPress(event)" flex="1"/>
  91.       <toolbarbutton id="ButtonEval" label="&evaluate.label;" oncommand="evaluateTypein()"/>
  92.     </toolbar>
  93.   </toolbox>
  94.   
  95.   <vbox id="ConsoleBox" class="console-box" flex="1" context="ConsoleContext" persist="sortOrder"/>
  96.  
  97.   <iframe name="Evaluator" id="Evaluator" collapsed="true"/>
  98.  
  99. </window>
  100.  
  101.  
  102.