1 <?xml version=
"1.0"?> <!-- -*- tab-width: 4; indent-tabs-mode: nil -*- -->
3 # ***** BEGIN LICENSE BLOCK *****
4 # Version: MPL
1.1/GPL
2.0/LGPL
2.1
6 # The contents of this file are subject to the Mozilla Public License Version
7 #
1.1 (the
"License"); you may not use this file except in compliance with
8 # the License. You may obtain a copy of the License at
9 # http://www.mozilla.org/MPL/
11 # Software distributed under the License is distributed on an
"AS IS" basis,
12 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 # for the specific language governing rights and limitations under the
16 # The Original Code is Mozilla Communicator client code, released
19 # The Initial Developer of the Original Code is
20 # Netscape Communications Corporation.
21 # Portions created by the Initial Developer are Copyright (C)
1998-
1999
22 # the Initial Developer. All Rights Reserved.
25 # Joe Hewitt
<hewitt@netscape.com
>
27 # Alternatively, the contents of this file may be used under the terms of
28 # either the GNU General Public License Version
2 or later (the
"GPL"), or
29 # the GNU Lesser General Public License Version
2.1 or later (the
"LGPL"),
30 # in which case the provisions of the GPL or the LGPL are applicable instead
31 # of those above. If you wish to allow use of your version of this file only
32 # under the terms of either the GPL or the LGPL, and not to allow others to
33 # use your version of this file under the terms of the MPL, indicate your
34 # decision by deleting the provisions above and replace them with the notice
35 # and other provisions required by the GPL or the LGPL. If you do not delete
36 # the provisions above, a recipient may use your version of this file under
37 # the terms of any one of the MPL, the GPL or the LGPL.
39 # ***** END LICENSE BLOCK *****
41 <?xml-stylesheet href=
"chrome://global/skin/" type=
"text/css"?>
42 <?xml-stylesheet href=
"chrome://global/skin/console/console.css" type=
"text/css"?>
43 <?xml-stylesheet href=
"chrome://global/content/console.css" type=
"text/css"?>
44 <?xul-overlay href=
"chrome://global/content/editMenuOverlay.xul"?>
47 <!ENTITY % console SYSTEM
"chrome://global/locale/console.dtd"> %console;
48 <!ENTITY % global SYSTEM
"chrome://global/locale/global.dtd"> %global;
51 <window id=
"JSConsoleWindow"
52 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
53 title=
"&errorConsole.title;"
54 windowtype=
"global:console"
55 width=
"640" height=
"480"
56 screenX=
"10" screenY=
"10"
57 persist=
"screenX screenY width height sizemode"
58 onclose=
"return closeWindow(false);">
60 <script type=
"application/javascript" src=
"chrome://global/content/globalOverlay.js"/>
61 <script type=
"application/javascript" src=
"chrome://global/content/console.js"/>
62 <script type=
"application/javascript" src=
"chrome://global/content/viewSourceUtils.js"/>
64 <stringbundle id=
"ConsoleBundle" src=
"chrome://global/locale/console.properties"/>
66 <commandset id=
"editMenuCommands"/>
68 <commandset id=
"consoleCommands">
69 <command id=
"cmd_close" oncommand=
"closeWindow(true)"/>
72 <keyset id=
"consoleKeys">
73 <key id=
"key_close" key=
"&closeCmd.commandkey;" modifiers=
"accel"
75 <key id=
"key_close2" keycode=
"VK_ESCAPE" command=
"cmd_close"/>
76 <key id=
"key_focus1" key=
"&focus1.commandkey;" modifiers=
"accel"
77 oncommand=
"gTextBoxEval.focus()"/>
78 <key id=
"key_focus2" key=
"&focus2.commandkey;" modifiers=
"alt"
79 oncommand=
"gTextBoxEval.focus()"/>
82 <popupset id=
"ContextMenus">
83 <popup id=
"ConsoleContext">
84 <menuitem type=
"radio" id=
"Console:sortAscend"
85 label=
"&sortFirst.label;" accesskey=
"&sortFirst.accesskey;"
86 oncommand=
"changeSortOrder('forward');"/>
87 <menuitem type=
"radio" id=
"Console:sortDescend"
88 label=
"&sortLast.label;" accesskey=
"&sortLast.accesskey;"
89 oncommand=
"changeSortOrder('reverse');"/>
91 <menuitem id=
"menu_copy_cm" command=
"cmd_copy"
92 label=
"©Cmd.label;" accesskey=
"©Cmd.accesskey;"/>
96 <toolbox id=
"console-toolbox" chromedir=
"&locale.dir;">
97 <toolbar class=
"chromeclass-toolbar" id=
"ToolbarMode">
98 <hbox id=
"viewGroup" chromedir=
"&locale.dir;">
99 <toolbarbutton type=
"radio" group=
"mode" id=
"Console:modeAll"
100 label=
"&all.label;" accesskey=
"&all.accesskey;"
101 oncommand=
"changeMode('All');"/>
102 <toolbarbutton type=
"radio" group=
"mode" id=
"Console:modeErrors"
103 label=
"&errors.label;" accesskey=
"&errors.accesskey;"
104 oncommand=
"changeMode('Errors');"/>
105 <toolbarbutton type=
"radio" group=
"mode" id=
"Console:modeWarnings"
106 label=
"&warnings.label;" accesskey=
"&warnings.accesskey;"
107 oncommand=
"changeMode('Warnings');"/>
108 <toolbarbutton type=
"radio" group=
"mode" id=
"Console:modeMessages"
109 label=
"&messages.label;" accesskey=
"&messages.accesskey;"
110 oncommand=
"changeMode('Messages');"/>
113 <toolbarbutton id=
"Console:clear" oncommand=
"clearConsole();"
114 label=
"&clear.label;" accesskey=
"&clear.accesskey;"/>
117 <toolbar class=
"chromeclass-toolbar" id=
"ToolbarEval" align=
"center" nowindowdrag=
"true">
118 <label value=
"&codeEval.label;" accesskey=
"&codeEval.accesskey;" control=
"TextboxEval"/>
119 <textbox id=
"TextboxEval" class=
"toolbar" value=
"" onkeypress=
"onEvalKeyPress(event)" flex=
"1"/>
120 <toolbarbutton id=
"ButtonEval" label=
"&evaluate.label;"
121 accesskey=
"&evaluate.accesskey;" oncommand=
"evaluateTypein()"/>
125 <vbox id=
"ConsoleBox" class=
"console-box" flex=
"1" context=
"ConsoleContext" persist=
"sortOrder"/>
127 <iframe name=
"Evaluator" id=
"Evaluator" collapsed=
"true"/>