releases-comm-central/im/content/menus.xul

129 строки
6.3 KiB
XML

<?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 the Instantbird messenging client, released
# 2007.
#
# The Initial Developer of the Original Code is
# Florian QUEZE <florian@instantbird.org>.
# Portions created by the Initial Developer are Copyright (C) 2007
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Mouhamadou Moustapha CAMARA <mmkmou@mmkmou.net>
#
# Alternatively, the contents of this file may be used under the terms of
# either 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 ***** -->
<?xml-stylesheet href="chrome://instantbird/skin/menus.css" type="text/css"?>
#ifdef XP_WIN
<?xul-overlay href="chrome://instantbird/content/menus-win.xul"?>
#elifdef XP_MACOSX
<?xul-overlay href="chrome://instantbird/content/menus-mac.xul"?>
#else
<?xul-overlay href="chrome://instantbird/content/menus-unix.xul"?>
#endif
<!DOCTYPE overlay [
<!ENTITY % instantbirdDTD SYSTEM "chrome://instantbird/locale/instantbird.dtd">
%instantbirdDTD;
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
%brandDTD;
]>
<overlay id="menusOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
<script type="application/javascript" src="chrome://instantbird/content/menus.js"/>
<commandset id="maincommandset">
<command id="accountmanager" oncommand="menus.accounts()"/>
<command id="cmd_quitApplication" oncommand="goQuitApplication()"/>
<command id="cmd_joinchat" oncommand="menus.joinChat()"/>
<command id="cmd_addbuddy" oncommand="menus.addBuddy()"/>
<command id="cmd_addons" oncommand="menus.addons()"/>
</commandset>
<keyset id="mainkeyset">
<key id="accountsetup" key="&account.commandkey;" command="accountmanager" modifiers="accel,shift"/>
<key id="errorConsoleKey" key="&errorConsoleCmd.commandkey;" oncommand="menus.errors();" modifiers="accel,shift"/>
<key id="key_quitApplication" key="&quitApplicationCmdMac.key;" command="cmd_quitApplication" modifiers="accel"/>
<key id="joinChatkey" key="&joinChat.commandkey;" command="cmd_joinchat" modifiers="accel"/>
<key id="addBuddykey" key="&addBuddy.commandkey;" command="cmd_addbuddy" modifiers="accel"/>
<key id="addonskey" key="&addonManager.key;" command="cmd_addons" modifiers="accel"/>
</keyset>
<menubar id="blistMenubar">
<menu label="&file.menu;" id="fileMenu" accesskey="&file.accesskey;">
<menupopup id="fileMenuPopup" onpopupshowing="menus.updateFileMenuitems();">
<menuitem id="addBuddyMenuItem" label="&addBuddy;" command="cmd_addbuddy" key="addBuddykey" accesskey="&addBuddy.accesskey;"/>
<menuitem id="joinChatMenuItem" label="&joinChat;" command="cmd_joinchat" key="joinChatkey" accesskey="&joinChat.accesskey;"/>
<menuseparator/>
<menu id="setStatusTo" label="&setStatusTo;" oncommand="menus.setStatus(event);">
<menupopup id="setStatusMenupopup"> <!-- has onpopupshowing on mac -->
<menuitem id="statusAvailable" status="available" label="&available;" class="menuitem-iconic"/>
<menuitem id="statusUnavailable" status="unavailable" label="&unavailable;" class="menuitem-iconic"/>
<menuseparator id="statusOfflineSeparator"/>
<menuitem id="statusOffline" status="offline" label="&offline;" class="menuitem-iconic"/>
</menupopup>
</menu>
<menuseparator id="menu_FileQuitSeparator"/>
<!-- menu_FileQuitItem modified on all three platforms via overlays -->
<menuitem id="menu_FileQuitItem"
label="&quitApplicationCmd.label;"
command="cmd_quitApplication"/>
</menupopup>
</menu>
<menu label="&tools.menu;" id="toolsMenu" accesskey="&tools.accesskey;">
<menupopup id="toolsMenuPopup"> <!-- has onpopupshowing on mac -->
<menuitem id="accountsMenuItem" label="&accountManager;" command="accountmanager" key="accountsetup" accesskey="&account.accesskey;"/>
<menuitem id="addonsMenuItem" label="&addonManager;" command="cmd_addons" key="addonskey" accesskey="&addonManager.key;"/>
<menuseparator/>
<menuitem id="errorConsoleMenuItem" label="&errorConsoleCmd.label;" oncommand="menus.errors()" key="errorConsoleKey" accesskey="&errorConsoleCmd.accesskey;"/>
<menuseparator id="prefSep"/>
<menuitem id="menu_preferences"
label="&preferencesCmd.label;"
accesskey="&preferencesCmd.accesskey;"
oncommand="menus.preferences();"/>
</menupopup>
</menu>
#ifdef XP_MACOSX
<!-- Mac window menu -->
#include ../../mozilla/toolkit/content/macWindowMenu.inc
#endif
<menu label="&help.menu;" id="helpMenu" accesskey="&help.accesskey;">
#ifdef MOZ_UPDATER
<menupopup id="helpMenuPopup" onpopupshowing="menus.displayUpdateStatus();">
<menuitem id="updatesMenuItem" label="&checkForUpdates;" oncommand="menus.updates()"/>
<menuseparator id="updatesSep"/>
#else
<menupopup id="helpMenuPopup">
#endif
<menuitem id="aboutName" label="&about.menu;" oncommand="menus.about()"/>
</menupopup>
</menu>
</menubar>
</overlay>