1
<?xml version="1.0"?> <!-- -*- tab-width: 4; indent-tabs-mode: nil -*- -->
3
# The contents of this file are subject to the Netscape Public
4
# License Version 1.1 (the "License"); you may not use this file
5
# except in compliance with the License. You may obtain a copy of
6
# the License at http://www.mozilla.org/NPL/
8
# Software distributed under the License is distributed on an "AS
9
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
10
# implied. See the License for the specific language governing
11
# rights and limitations under the License.
13
# The Original Code is Mozilla Communicator client code, released
16
# The Initial Developer of the Original Code is Netscape
17
# Communications Corporation. Portions created by Netscape are
18
# Copyright (C) 1998-1999 Netscape Communications Corporation. All
21
# Contributor(s): Joe Hewitt <hewitt@netscape.com>
23
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
24
<?xml-stylesheet href="chrome://global/skin/console/console.css" type="text/css"?>
25
<?xml-stylesheet href="chrome://global/content/console.css" type="text/css"?>
28
<!ENTITY % console SYSTEM "chrome://global/locale/console.dtd"> %console;
31
<window id="JSConsoleWindow"
32
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
33
title="&console.title;"
34
windowtype="global:console"
35
width="640" height="480"
36
screenX="10" screenY="10"
37
persist="screenX screenY width height"
38
onclose="return closeWindow(false);">
40
<script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
41
<script type="application/x-javascript" src="chrome://global/content/console.js"/>
43
<stringbundle id="ConsoleBundle" src="chrome://global/locale/console.properties"/>
45
<commandset commandupdater="true"
47
oncommandupdate="updateCopyMenu()">
48
<command id="cmd_copy" oncommand="copyItemToClipboard()"/>
49
<command id="cmd_close" oncommand="closeWindow(true)"/>
52
<broadcaster id="Console:clear" label="&clear.label;"
53
accesskey="&clear.accesskey;"
54
oncommand="clearConsole();"/>
55
<broadcaster id="Console:sortAscend" label="&sortFirst.label;"
56
accesskey="&sortFirst.accesskey;"
57
oncommand="changeSortOrder('forward');"/>
58
<broadcaster id="Console:sortDescend" label="&sortLast.label;"
59
accesskey="&sortLast.accesskey;"
60
oncommand="changeSortOrder('reverse');"/>
62
<broadcasterset id="ModeBroadcasters">
63
<broadcaster id="Console:modeAll"
64
label="&all.label;" accesskey="&all.accesskey;"
65
oncommand="changeMode('All');"/>
66
<broadcaster id="Console:modeErrors"
67
label="&errors.label;" accesskey="&errors.accesskey;"
68
oncommand="changeMode('Errors');"/>
69
<broadcaster id="Console:modeWarnings"
70
label="&warnings.label;" accesskey="&warnings.accesskey;"
71
oncommand="changeMode('Warnings');"/>
72
<broadcaster id="Console:modeMessages"
73
label="&messages.label;" accesskey="&messages.accesskey;"
74
oncommand="changeMode('Messages');"/>
78
<key id="key_copy" key="©Cmd.commandkey;" modifiers="accel"
80
<key id="key_close" key="&closeCmd.commandkey;" modifiers="accel"
82
<key keycode="VK_ESCAPE" command="cmd_close"/>
83
<key id="key_focus1" key="&focus1.commandkey;" modifiers="accel"
84
oncommand="gTextBoxEval.focus()"/>
85
<key id="key_focus2" key="&focus2.commandkey;" modifiers="alt"
86
oncommand="gTextBoxEval.focus()"/>
89
<popupset id="ContextMenus">
90
<popup id="ConsoleContext">
91
<menuitem type="radio" observes="Console:sortAscend"/>
92
<menuitem type="radio" observes="Console:sortDescend"/>
94
<menuitem id="menu_copy_cm" observes="cmd_copy" label="©Cmd.label;" key="key_copy" accesskey="©Cmd.accesskey;"/>
99
<toolbar class="chromeclass-toolbar" id="ToolbarMode">
100
<toolbarbutton type="radio" group="mode" observes="Console:modeAll"/>
101
<toolbarbutton type="radio" group="mode" observes="Console:modeErrors"/>
102
<toolbarbutton type="radio" group="mode" observes="Console:modeWarnings"/>
103
<toolbarbutton type="radio" group="mode" observes="Console:modeMessages"/>
105
<toolbarbutton observes="Console:clear"/>
108
<toolbar class="chromeclass-toolbar" id="ToolbarEval">
109
<textbox id="TextboxEval" class="toolbar" value="" onkeypress="onEvalKeyPress(event)" flex="1"/>
110
<toolbarbutton id="ButtonEval" label="&evaluate.label;" oncommand="evaluateTypein()"/>
114
<vbox id="ConsoleBox" class="console-box" flex="1" context="ConsoleContext" persist="sortOrder"/>
116
<iframe name="Evaluator" id="Evaluator" collapsed="true"/>