bug 334997 - add menu bar to toolkit-based JS console in suiterunner, r+sr=Neil

This commit is contained in:
kairo%kairo.at 2006-04-25 14:34:02 +00:00
Родитель 4f14b9bf85
Коммит 17a97f2b8b
4 изменённых файлов: 160 добавлений и 1 удалений

Просмотреть файл

@ -0,0 +1,112 @@
<?xml version="1.0"?>
<!-- ***** BEGIN LICENSE BLOCK *****
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
The Original Code is SeaMonkey internet suite code.
The Initial Developer of the Original Code is
Netscape Communications Corporation.
Portions created by the Initial Developer are Copyright (C) 2006
the Initial Developer. All Rights Reserved.
Contributor(s):
Robert Kaiser <kairo@kairo.at>
Alternatively, the contents of this file may be used under the terms of
either of the GNU General Public License Version 2 or later (the "GPL"),
or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
in which case the provisions of the GPL or the LGPL are applicable instead
of those above. If you wish to allow use of your version of this file only
under the terms of either the GPL or the LGPL, and not to allow others to
use your version of this file under the terms of the MPL, indicate your
decision by deleting the provisions above and replace them with the notice
and other provisions required by the GPL or the LGPL. If you do not delete
the provisions above, a recipient may use your version of this file under
the terms of any one of the MPL, the GPL or the LGPL.
***** END LICENSE BLOCK ***** -->
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
<!DOCTYPE overlay [
<!ENTITY % consoleOverlayDTD SYSTEM "chrome://communicator/locale/consoleOverlay.dtd">
%consoleOverlayDTD;
]>
<overlay id="consoleOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<commandset id="consoleCommands">
<commandset id="tasksCommands"/>
<command id="cmd_quit"/>
</commandset>
<keyset id="consoleKeys">
<keyset id="tasksKeys"/>
<key id="key_copy"/>
<key id="key_close"/>
<key id="key_quit"/>
</keyset>
<toolbox id="console-toolbox">
<menubar id="main-menubar" class="chromeclass-menubar"
grippytooltiptext="&menuBar.tooltip;" position="1">
<menu id="menu_File">
<menupopup id="menu_FilePopup">
<menuitem id="menu_close"/>
</menupopup>
</menu>
<menu id="menu_Edit">
<menupopup onpopupshowing="updateCopyMenu()">
<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"
oncommand="goToggleToolbar('ToolbarMode','toggleToolbarMode');"
label="&toolbarMode.label;"
accesskey="&toolbarMode.accesskey;"/>
<menuitem id="toggleToolbarEval" type="checkbox" checked="true"
oncommand="goToggleToolbar('ToolbarEval','toggleToolbarEval');"
label="&toolbarEval.label;"
accesskey="&toolbarEval.accesskey;"/>
</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>
</toolbox>
</overlay>

Просмотреть файл

@ -1,9 +1,11 @@
comm.jar:
#ifdef MOZ_XUL_APP
#% content communicator %content/communicator/ xpcnativewrappers=yes
% overlay chrome://global/content/console.xul chrome://communicator/content/consoleOverlay.xul
% overlay chrome://communicator/content/tasksOverlay.xul chrome://communicator/content/emOverlay.xul
#else
#* content/communicator/contents.rdf (contents.rdf)
#endif
content/communicator/consoleOverlay.xul
content/communicator/emOverlay.xul
content/communicator/pref/pref-locales.xul (pref/pref-locales.xul)

Просмотреть файл

@ -0,0 +1,44 @@
<!-- ***** BEGIN LICENSE BLOCK *****
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
The Original Code is SeaMonkey internet suite code.
The Initial Developer of the Original Code is
Netscape Communications Corporation.
Portions created by the Initial Developer are Copyright (C) 2006
the Initial Developer. All Rights Reserved.
Contributor(s):
Robert Kaiser <kairo@kairo.at>
Alternatively, the contents of this file may be used under the terms of
either of the GNU General Public License Version 2 or later (the "GPL"),
or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
in which case the provisions of the GPL or the LGPL are applicable instead
of those above. If you wish to allow use of your version of this file only
under the terms of either the GPL or the LGPL, and not to allow others to
use your version of this file under the terms of the MPL, indicate your
decision by deleting the provisions above and replace them with the notice
and other provisions required by the GPL or the LGPL. If you do not delete
the provisions above, a recipient may use your version of this file under
the terms of any one of the MPL, the GPL or the LGPL.
***** END LICENSE BLOCK ***** -->
<!ENTITY menuBar.tooltip "Menu Bar">
<!ENTITY toolbarsCmd.label "Show/Hide">
<!ENTITY toolbarsCmd.accesskey "w">
<!ENTITY toolbarMode.label "Mode">
<!ENTITY toolbarMode.accesskey "M">
<!ENTITY toolbarEval.label "JavaScript Entry">
<!ENTITY toolbarEval.accesskey "J">

Просмотреть файл

@ -6,4 +6,5 @@
##else
#* locale/@AB_CD@/communicator/contents.rdf (generic/chrome/common/contents.rdf)
##endif
locale/@AB_CD@/communicator/consoleOverlay.dtd (%chrome/common/consoleOverlay.dtd)
locale/@AB_CD@/communicator/pref/pref-locales.dtd (%chrome/common/pref/pref-locales.dtd)