~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/toolkit/components/console/content/console.xul

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?> <!-- -*- tab-width: 4; indent-tabs-mode: nil -*- -->
 
2
 
 
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/
 
7
 
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.
 
12
 
13
# The Original Code is Mozilla Communicator client code, released
 
14
# March 31, 1998.
 
15
 
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
 
19
# Rights Reserved.
 
20
 
21
# Contributor(s): Joe Hewitt <hewitt@netscape.com>
 
22
 
 
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"?> 
 
26
 
 
27
<!DOCTYPE window [
 
28
  <!ENTITY % console SYSTEM "chrome://global/locale/console.dtd"> %console;
 
29
]>
 
30
 
 
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);"> 
 
39
 
 
40
  <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
 
41
  <script type="application/x-javascript" src="chrome://global/content/console.js"/>
 
42
 
 
43
  <stringbundle id="ConsoleBundle" src="chrome://global/locale/console.properties"/>
 
44
 
 
45
  <commandset commandupdater="true"
 
46
              events="select"
 
47
              oncommandupdate="updateCopyMenu()">
 
48
    <command id="cmd_copy" oncommand="copyItemToClipboard()"/>
 
49
    <command id="cmd_close" oncommand="closeWindow(true)"/>
 
50
  </commandset>
 
51
 
 
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');"/>
 
61
 
 
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');"/>
 
75
  </broadcasterset>
 
76
 
 
77
  <keyset>
 
78
    <key id="key_copy"  key="&copyCmd.commandkey;"  modifiers="accel"
 
79
         command="cmd_copy"/>
 
80
    <key id="key_close" key="&closeCmd.commandkey;" modifiers="accel"
 
81
         command="cmd_close"/>
 
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()"/>
 
87
  </keyset>
 
88
 
 
89
  <popupset id="ContextMenus">
 
90
    <popup id="ConsoleContext">
 
91
      <menuitem type="radio" observes="Console:sortAscend"/>
 
92
      <menuitem type="radio" observes="Console:sortDescend"/>
 
93
      <menuseparator/>
 
94
      <menuitem id="menu_copy_cm" observes="cmd_copy" label="&copyCmd.label;" key="key_copy" accesskey="&copyCmd.accesskey;"/>
 
95
    </popup>
 
96
  </popupset>
 
97
  
 
98
  <toolbox>
 
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"/>
 
104
      <toolbarseparator/>
 
105
      <toolbarbutton observes="Console:clear"/>
 
106
    </toolbar>
 
107
  
 
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()"/>
 
111
    </toolbar>
 
112
  </toolbox>
 
113
  
 
114
  <vbox id="ConsoleBox" class="console-box" flex="1" context="ConsoleContext" persist="sortOrder"/>
 
115
 
 
116
  <iframe name="Evaluator" id="Evaluator" collapsed="true"/>
 
117
 
 
118
</window>
 
119
 
 
120