diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /comm/suite/components/console/content/console.xul | |
parent | Initial commit. (diff) | |
download | thunderbird-upstream.tar.xz thunderbird-upstream.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'comm/suite/components/console/content/console.xul')
-rw-r--r-- | comm/suite/components/console/content/console.xul | 208 |
1 files changed, 208 insertions, 0 deletions
diff --git a/comm/suite/components/console/content/console.xul b/comm/suite/components/console/content/console.xul new file mode 100644 index 0000000000..d5dd7ae0cb --- /dev/null +++ b/comm/suite/components/console/content/console.xul @@ -0,0 +1,208 @@ +<?xml version="1.0"?> <!-- -*- tab-width: 4; indent-tabs-mode: nil -*- --> + +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?> +<?xml-stylesheet href="chrome://communicator/skin/console/console.css" type="text/css"?> +<?xml-stylesheet href="chrome://communicator/content/console/console.css" type="text/css"?> + +<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?> +<?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?> + +<!DOCTYPE window SYSTEM "chrome://communicator/locale/console/console.dtd" > + +<window id="JSConsoleWindow" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + title="&errorConsole.title;" + windowtype="suite:console" + width="640" + height="480" + screenX="10" + screenY="10" + persist="screenX screenY width height sizemode" + onclose="return closeWindow(false);"> + + <script src="chrome://global/content/globalOverlay.js"/> + <script src="chrome://communicator/content/console/console.js"/> + <script src="chrome://global/content/viewSourceUtils.js"/> + <script src="chrome://global/content/editMenuOverlay.js"/> + + <stringbundle id="ConsoleBundle" src="chrome://communicator/locale/console/console.properties"/> + + <commandset id="consoleCommands"> + <commandset id="tasksCommands"/> + <command id="cmd_close" oncommand="closeWindow(true);"/> + </commandset> + + <keyset id="consoleKeys"> + <keyset id="tasksKeys"/> + <key id="key_close" + key="&closeCmd.commandkey;" + modifiers="accel" + command="cmd_close"/> + <key id="key_close2" + disabled="true" + keycode="VK_ESCAPE" + command="cmd_close"/> + <key id="key_focus1" + key="&focus1.commandkey;" + modifiers="accel" + oncommand="gTextBoxEval.focus();"/> + <key id="key_focus2" + key="&focus2.commandkey;" + modifiers="alt" + oncommand="gTextBoxEval.focus();"/> + <key id="key_copy"/> + </keyset> + + <popupset id="ContextMenus"> + <menupopup id="ConsoleContext"> + <menuitem type="radio" + id="Console:sortAscend" + label="&sortFirst.label;" + accesskey="&sortFirst.accesskey;" + oncommand="changeSortOrder('forward');"/> + <menuitem type="radio" + id="Console:sortDescend" + label="&sortLast.label;" + accesskey="&sortLast.accesskey;" + oncommand="changeSortOrder('reverse');"/> + <menuseparator/> + <menuitem id="menu_copy_cm" + label="©Cmd.label;" + accesskey="©Cmd.accesskey;" + command="cmd_copy"/> + </menupopup> + </popupset> + + <toolbox id="console-toolbox"> + <menubar id="main-menubar" + class="chromeclass-menubar" + grippytooltiptext="&menuBar.tooltip;"> + <menu id="menu_File"> + <menupopup id="menu_FilePopup"> + <menuitem id="menu_close"/> + </menupopup> + </menu> + + <menu id="menu_Edit"> + <menupopup> + <menuitem id="menu_copy"/> + </menupopup> + </menu> + + <menu id="menu_View"> + <menupopup> + <menu label="&toolbarsCmd.label;" + accesskey="&toolbarsCmd.accesskey;"> + <menupopup> + <menuitem id="toggleToolbarMode" + type="checkbox" + checked="true" + label="&toolbarMode.label;" + accesskey="&toolbarMode.accesskey;" + oncommand="goToggleToolbar('ToolbarMode','toggleToolbarMode');"/> + <menuitem id="toggleToolbarEval" + type="checkbox" + checked="true" + label="&toolbarEval.label;" + accesskey="&toolbarEval.accesskey;" + oncommand="goToggleToolbar('ToolbarEval','toggleToolbarEval');"/> + </menupopup> + </menu> + <menuseparator/> + <menuitem type="radio" observes="Console:sortAscend"/> + <menuitem type="radio" observes="Console:sortDescend"/> + </menupopup> + </menu> + + <!-- tasks menu filled from tasksOverlay --> + <menu id="tasksMenu"/> + + <!-- window menu filled from tasksOverlay --> + <menu id="windowMenu"/> + + <!-- help menu filled from globalOverlay --> + <menu id="menu_Help"/> + </menubar> + + <toolbar class="chromeclass-toolbar" + id="ToolbarMode" + grippytooltiptext="&modeToolbar.tooltip;"> + <hbox id="viewGroup"> + <toolbarbutton type="radio" + group="mode" + id="Console:modeAll" + label="&all.label;" + accesskey="&all.accesskey;" + oncommand="changeMode('All');"/> + <toolbarbutton type="radio" + group="mode" + id="Console:modeErrors" + label="&errors.label;" + accesskey="&errors.accesskey;" + oncommand="changeMode('Errors');"/> + <toolbarbutton type="radio" + group="mode" + id="Console:modeWarnings" + label="&warnings.label;" + accesskey="&warnings.accesskey;" + oncommand="changeMode('Warnings');"/> + <toolbarbutton type="radio" + group="mode" + id="Console:modeMessages" + label="&messages.label;" + accesskey="&messages.accesskey;" + oncommand="changeMode('Messages');"/> + </hbox> + <toolbarseparator/> + <toolbarbutton id="Console:clear" + label="&clear.label;" + accesskey="&clear.accesskey;" + oncommand="clearConsole();"/> + </toolbar> + + <toolbar class="chromeclass-toolbar" + id="ToolbarEval" + align="center" + nowindowdrag="true" + grippytooltiptext="&entryToolbar.tooltip;"> + <label value="&codeEval.label;" + accesskey="&codeEval.accesskey;" + control="TextboxEval"/> + <textbox id="TextboxEval" + class="toolbar" + flex="1" + value="" + onkeypress="onEvalKeyPress(event);"/> + <toolbarbutton id="ButtonEval" + label="&evaluate.label;" + accesskey="&evaluate.accesskey;" + oncommand="evaluateTypein();"/> + </toolbar> + + </toolbox> + + <vbox id="ConsoleBox" + class="console-box" + flex="1" + context="ConsoleContext" + persist="sortOrder"/> + + <iframe name="Evaluator" + id="Evaluator" + collapsed="true"/> + + <statusbar> + <statusbarpanel flex="1" pack="start"> + <label value="&filter2.label;" control="Filter"/> + <textbox type="search" + id="Filter" + accesskey="&filter2.accesskey;" + oncommand="changeFilter();"/> + </statusbarpanel> + </statusbar> + +</window> |