toolkit/components/console/content/console.xul

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

michael@0 1 <?xml version="1.0"?> <!-- -*- tab-width: 4; indent-tabs-mode: nil -*- -->
michael@0 2
michael@0 3 <!-- This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 - License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
michael@0 6
michael@0 7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
michael@0 8 <?xml-stylesheet href="chrome://global/skin/console/console.css" type="text/css"?>
michael@0 9 <?xml-stylesheet href="chrome://global/content/console.css" type="text/css"?>
michael@0 10 <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
michael@0 11
michael@0 12 <!DOCTYPE window [
michael@0 13 <!ENTITY % console SYSTEM "chrome://global/locale/console.dtd"> %console;
michael@0 14 ]>
michael@0 15
michael@0 16 <window id="JSConsoleWindow"
michael@0 17 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
michael@0 18 title="&errorConsole.title;"
michael@0 19 windowtype="global:console"
michael@0 20 width="640" height="480"
michael@0 21 screenX="10" screenY="10"
michael@0 22 persist="screenX screenY width height sizemode"
michael@0 23 onclose="return closeWindow(false);">
michael@0 24
michael@0 25 <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
michael@0 26 <script type="application/javascript" src="chrome://global/content/console.js"/>
michael@0 27 <script type="application/javascript" src="chrome://global/content/viewSourceUtils.js"/>
michael@0 28
michael@0 29 <stringbundle id="ConsoleBundle" src="chrome://global/locale/console.properties"/>
michael@0 30
michael@0 31 <commandset id="editMenuCommands"/>
michael@0 32
michael@0 33 <commandset id="consoleCommands">
michael@0 34 <command id="cmd_close" oncommand="closeWindow(true)"/>
michael@0 35 </commandset>
michael@0 36
michael@0 37 <keyset id="consoleKeys">
michael@0 38 <key id="key_close" key="&closeCmd.commandkey;" modifiers="accel"
michael@0 39 command="cmd_close"/>
michael@0 40 <key id="key_close2" keycode="VK_ESCAPE" command="cmd_close"/>
michael@0 41 <key id="key_focus1" key="&focus1.commandkey;" modifiers="accel"
michael@0 42 oncommand="gTextBoxEval.focus()"/>
michael@0 43 <key id="key_focus2" key="&focus2.commandkey;" modifiers="alt"
michael@0 44 oncommand="gTextBoxEval.focus()"/>
michael@0 45 </keyset>
michael@0 46
michael@0 47 <popupset id="ContextMenus">
michael@0 48 <menupopup id="ConsoleContext">
michael@0 49 <menuitem type="radio" id="Console:sortAscend"
michael@0 50 label="&sortFirst.label;" accesskey="&sortFirst.accesskey;"
michael@0 51 oncommand="changeSortOrder('forward');"/>
michael@0 52 <menuitem type="radio" id="Console:sortDescend"
michael@0 53 label="&sortLast.label;" accesskey="&sortLast.accesskey;"
michael@0 54 oncommand="changeSortOrder('reverse');"/>
michael@0 55 <menuseparator/>
michael@0 56 <menuitem id="menu_copy_cm" command="cmd_copy"
michael@0 57 label="&copyCmd.label;" accesskey="&copyCmd.accesskey;"/>
michael@0 58 </menupopup>
michael@0 59 </popupset>
michael@0 60
michael@0 61 <toolbox id="console-toolbox">
michael@0 62 <toolbar class="chromeclass-toolbar" id="ToolbarMode">
michael@0 63 <hbox id="viewGroup">
michael@0 64 <toolbarbutton type="radio" group="mode" id="Console:modeAll"
michael@0 65 label="&all.label;" accesskey="&all.accesskey;"
michael@0 66 oncommand="changeMode('All');"/>
michael@0 67 <toolbarbutton type="radio" group="mode" id="Console:modeErrors"
michael@0 68 label="&errors.label;" accesskey="&errors.accesskey;"
michael@0 69 oncommand="changeMode('Errors');"/>
michael@0 70 <toolbarbutton type="radio" group="mode" id="Console:modeWarnings"
michael@0 71 label="&warnings.label;" accesskey="&warnings.accesskey;"
michael@0 72 oncommand="changeMode('Warnings');"/>
michael@0 73 <toolbarbutton type="radio" group="mode" id="Console:modeMessages"
michael@0 74 label="&messages.label;" accesskey="&messages.accesskey;"
michael@0 75 oncommand="changeMode('Messages');"/>
michael@0 76 </hbox>
michael@0 77 <toolbarseparator/>
michael@0 78 <toolbarbutton id="Console:clear" oncommand="clearConsole();"
michael@0 79 label="&clear.label;" accesskey="&clear.accesskey;"/>
michael@0 80 </toolbar>
michael@0 81
michael@0 82 <toolbar class="chromeclass-toolbar" id="ToolbarEval" align="center" nowindowdrag="true">
michael@0 83 <label value="&codeEval.label;" accesskey="&codeEval.accesskey;" control="TextboxEval"/>
michael@0 84 <textbox id="TextboxEval" class="toolbar" value="" onkeypress="onEvalKeyPress(event)" flex="1"/>
michael@0 85 <toolbarbutton id="ButtonEval" label="&evaluate.label;"
michael@0 86 accesskey="&evaluate.accesskey;" oncommand="evaluateTypein()"/>
michael@0 87 </toolbar>
michael@0 88 </toolbox>
michael@0 89
michael@0 90 <vbox id="ConsoleBox" class="console-box" flex="1" context="ConsoleContext" persist="sortOrder"/>
michael@0 91
michael@0 92 <iframe name="Evaluator" id="Evaluator" collapsed="true"/>
michael@0 93
michael@0 94 <statusbar>
michael@0 95 <statusbarpanel flex="1" pack="start">
michael@0 96 <label value="&filter2.label;" control="Filter"/>
michael@0 97 <textbox accesskey="&filter2.accesskey;" type="search"
michael@0 98 id="Filter" oncommand="changeFilter();"/>
michael@0 99 </statusbarpanel>
michael@0 100 </statusbar>
michael@0 101 </window>

mercurial