toolkit/components/console/content/console.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/components/console/content/console.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,101 @@
     1.4 +<?xml version="1.0"?> <!-- -*- tab-width: 4; indent-tabs-mode: nil -*- -->
     1.5 +
     1.6 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +   - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.9 +
    1.10 +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
    1.11 +<?xml-stylesheet href="chrome://global/skin/console/console.css" type="text/css"?> 
    1.12 +<?xml-stylesheet href="chrome://global/content/console.css" type="text/css"?> 
    1.13 +<?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
    1.14 +
    1.15 +<!DOCTYPE window [
    1.16 +  <!ENTITY % console SYSTEM "chrome://global/locale/console.dtd"> %console;
    1.17 +]>
    1.18 +
    1.19 +<window id="JSConsoleWindow"
    1.20 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.21 +        title="&errorConsole.title;"
    1.22 +        windowtype="global:console"
    1.23 +        width="640" height="480"
    1.24 +        screenX="10" screenY="10"
    1.25 +        persist="screenX screenY width height sizemode"
    1.26 +        onclose="return closeWindow(false);"> 
    1.27 +
    1.28 +  <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
    1.29 +  <script type="application/javascript" src="chrome://global/content/console.js"/>
    1.30 +  <script type="application/javascript" src="chrome://global/content/viewSourceUtils.js"/>
    1.31 +
    1.32 +  <stringbundle id="ConsoleBundle" src="chrome://global/locale/console.properties"/>
    1.33 +
    1.34 +  <commandset id="editMenuCommands"/>
    1.35 +
    1.36 +  <commandset id="consoleCommands">
    1.37 +    <command id="cmd_close" oncommand="closeWindow(true)"/>
    1.38 +  </commandset>
    1.39 +
    1.40 +  <keyset id="consoleKeys">
    1.41 +    <key id="key_close" key="&closeCmd.commandkey;" modifiers="accel"
    1.42 +         command="cmd_close"/>
    1.43 +    <key id="key_close2" keycode="VK_ESCAPE" command="cmd_close"/>
    1.44 +    <key id="key_focus1" key="&focus1.commandkey;" modifiers="accel"
    1.45 +         oncommand="gTextBoxEval.focus()"/>
    1.46 +    <key id="key_focus2" key="&focus2.commandkey;" modifiers="alt"
    1.47 +         oncommand="gTextBoxEval.focus()"/>
    1.48 +  </keyset>
    1.49 +
    1.50 +  <popupset id="ContextMenus">
    1.51 +    <menupopup id="ConsoleContext">
    1.52 +      <menuitem type="radio" id="Console:sortAscend"
    1.53 +                label="&sortFirst.label;" accesskey="&sortFirst.accesskey;"
    1.54 +                oncommand="changeSortOrder('forward');"/>
    1.55 +      <menuitem type="radio" id="Console:sortDescend"
    1.56 +                label="&sortLast.label;" accesskey="&sortLast.accesskey;"
    1.57 +                oncommand="changeSortOrder('reverse');"/>
    1.58 +      <menuseparator/>
    1.59 +      <menuitem id="menu_copy_cm" command="cmd_copy"
    1.60 +                label="&copyCmd.label;" accesskey="&copyCmd.accesskey;"/>
    1.61 +    </menupopup>
    1.62 +  </popupset>
    1.63 +
    1.64 +  <toolbox id="console-toolbox">
    1.65 +    <toolbar class="chromeclass-toolbar" id="ToolbarMode">
    1.66 +      <hbox id="viewGroup">
    1.67 +        <toolbarbutton type="radio" group="mode" id="Console:modeAll" 
    1.68 +                       label="&all.label;" accesskey="&all.accesskey;"
    1.69 +                       oncommand="changeMode('All');"/>
    1.70 +        <toolbarbutton type="radio" group="mode" id="Console:modeErrors"
    1.71 +                       label="&errors.label;" accesskey="&errors.accesskey;"
    1.72 +                       oncommand="changeMode('Errors');"/>
    1.73 +        <toolbarbutton type="radio" group="mode" id="Console:modeWarnings"
    1.74 +                       label="&warnings.label;" accesskey="&warnings.accesskey;"
    1.75 +                       oncommand="changeMode('Warnings');"/>
    1.76 +        <toolbarbutton type="radio" group="mode" id="Console:modeMessages"
    1.77 +                     label="&messages.label;" accesskey="&messages.accesskey;"
    1.78 +                     oncommand="changeMode('Messages');"/>
    1.79 +      </hbox>
    1.80 +      <toolbarseparator/>
    1.81 +      <toolbarbutton id="Console:clear" oncommand="clearConsole();"
    1.82 +                     label="&clear.label;" accesskey="&clear.accesskey;"/>
    1.83 +    </toolbar>
    1.84 +
    1.85 +    <toolbar class="chromeclass-toolbar" id="ToolbarEval" align="center" nowindowdrag="true">
    1.86 +      <label value="&codeEval.label;" accesskey="&codeEval.accesskey;" control="TextboxEval"/>
    1.87 +      <textbox id="TextboxEval" class="toolbar" value="" onkeypress="onEvalKeyPress(event)" flex="1"/>
    1.88 +      <toolbarbutton id="ButtonEval" label="&evaluate.label;"
    1.89 +                     accesskey="&evaluate.accesskey;" oncommand="evaluateTypein()"/>
    1.90 +    </toolbar>
    1.91 +  </toolbox>
    1.92 +
    1.93 +  <vbox id="ConsoleBox" class="console-box" flex="1" context="ConsoleContext" persist="sortOrder"/>
    1.94 +
    1.95 +  <iframe name="Evaluator" id="Evaluator" collapsed="true"/>
    1.96 +
    1.97 +  <statusbar>
    1.98 +    <statusbarpanel flex="1" pack="start">
    1.99 +      <label value="&filter2.label;" control="Filter"/>
   1.100 +      <textbox accesskey="&filter2.accesskey;" type="search"
   1.101 +               id="Filter" oncommand="changeFilter();"/>
   1.102 +    </statusbarpanel>
   1.103 +  </statusbar>
   1.104 +</window>

mercurial