2007-03-22 10:30:00 -07:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
# ***** 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 Mozilla.org Code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2001
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
# Ben Goodger <ben@bengoodger.com> (v2.0)
|
|
|
|
# Blake Ross <blakeross@telocity.com>
|
2007-08-11 14:53:21 -07:00
|
|
|
# Shawn Wilsher <me@shawnwilsher.com> (v3.0)
|
2007-12-15 17:35:38 -08:00
|
|
|
# Edward Lee <edward.lee@engineering.uiuc.edu>
|
2007-03-22 10:30:00 -07:00
|
|
|
#
|
|
|
|
# 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 *****
|
|
|
|
|
|
|
|
#ifdef XP_UNIX
|
|
|
|
#ifndef XP_MACOSX
|
|
|
|
#define XP_GNOME 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
|
|
|
<?xml-stylesheet href="chrome://mozapps/content/downloads/downloads.css"?>
|
|
|
|
<?xml-stylesheet href="chrome://mozapps/skin/downloads/downloads.css"?>
|
|
|
|
|
|
|
|
<!DOCTYPE window [
|
|
|
|
<!ENTITY % downloadManagerDTD SYSTEM "chrome://mozapps/locale/downloads/downloads.dtd">
|
|
|
|
%downloadManagerDTD;
|
2008-04-19 00:36:39 -07:00
|
|
|
<!ENTITY % editMenuOverlayDTD SYSTEM "chrome://global/locale/editMenuOverlay.dtd">
|
|
|
|
%editMenuOverlayDTD;
|
2007-03-22 10:30:00 -07:00
|
|
|
]>
|
|
|
|
|
|
|
|
<window xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
|
|
id="downloadManager" windowtype="Download:Manager"
|
|
|
|
orient="vertical" title="&downloads.title;" statictitle="&downloads.title;"
|
2008-01-26 13:04:49 -08:00
|
|
|
width="&window.width2;" height="&window.height;" screenX="10" screenY="10"
|
2007-03-22 10:30:00 -07:00
|
|
|
persist="width height screenX screenY sizemode"
|
|
|
|
onload="Startup();" onunload="Shutdown();"
|
|
|
|
onclose="return closeWindow(false);">
|
|
|
|
|
2007-05-21 17:03:33 -07:00
|
|
|
<script type="application/javascript" src="chrome://mozapps/content/downloads/downloads.js"/>
|
2007-08-11 14:53:21 -07:00
|
|
|
<script type="application/javascript" src="chrome://mozapps/content/downloads/DownloadProgressListener.js"/>
|
2007-05-21 17:03:33 -07:00
|
|
|
<script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
|
|
|
|
<script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
<stringbundleset id="downloadSet">
|
|
|
|
<stringbundle id="brandStrings" src="chrome://branding/locale/brand.properties"/>
|
|
|
|
<stringbundle id="downloadStrings" src="chrome://mozapps/locale/downloads/downloads.properties"/>
|
|
|
|
</stringbundleset>
|
|
|
|
|
2007-12-02 12:12:43 -08:00
|
|
|
<!-- Use this commandset for command which do not depened on focus or selection -->
|
|
|
|
<commandset id="generalCommands">
|
|
|
|
<command id="cmd_findDownload" oncommand="setSearchboxFocus();"/>
|
2008-04-19 00:36:39 -07:00
|
|
|
<command id="cmd_selectAllDownloads" oncommand="gDownloadsView.selectAll();"/>
|
2008-04-22 20:57:05 -07:00
|
|
|
<command id="cmd_clearList" oncommand="clearDownloadList();"/>
|
2007-12-02 12:12:43 -08:00
|
|
|
</commandset>
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
<keyset id="downloadKeys">
|
2007-12-18 00:49:36 -08:00
|
|
|
<key keycode="VK_ENTER" oncommand="doDefaultForSelected();"/>
|
|
|
|
<key keycode="VK_RETURN" oncommand="doDefaultForSelected();"/>
|
2008-01-26 19:28:32 -08:00
|
|
|
<key id="key_pauseResume" key=" " oncommand="performCommand('cmd_pauseResume');"/>
|
2008-01-09 19:27:47 -08:00
|
|
|
<key id="key_removeFromList" keycode="VK_DELETE" oncommand="performCommand('cmd_removeFromList');"/>
|
2007-09-02 15:13:41 -07:00
|
|
|
#ifdef XP_MACOSX
|
2008-01-09 19:27:47 -08:00
|
|
|
<key id="key_removeFromList2" keycode="VK_BACK" oncommand="performCommand('cmd_removeFromList');"/>
|
2007-09-02 15:13:41 -07:00
|
|
|
#endif
|
2007-03-22 10:30:00 -07:00
|
|
|
<key id="key_close" key="&cmd.close.commandKey;" oncommand="closeWindow(true);" modifiers="accel"/>
|
|
|
|
#ifdef XP_GNOME
|
2009-02-25 07:25:28 -08:00
|
|
|
<key id="key_close2" key="&cmd.close2Unix.commandKey;" oncommand="closeWindow(true);" modifiers="accel,shift"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
#else
|
|
|
|
<key id="key_close2" key="&cmd.close2.commandKey;" oncommand="closeWindow(true);" modifiers="accel"/>
|
|
|
|
#endif
|
|
|
|
<key keycode="VK_ESCAPE" oncommand="closeWindow(true);"/>
|
2007-12-02 12:12:43 -08:00
|
|
|
|
|
|
|
<key id="key_findDownload"
|
|
|
|
key="&cmd.find.commandKey;"
|
|
|
|
modifiers="accel"
|
|
|
|
command="cmd_findDownload"/>
|
2008-06-27 09:07:19 -07:00
|
|
|
<key id="key_findDownload2"
|
|
|
|
key="&cmd.search.commandKey;"
|
|
|
|
modifiers="accel"
|
|
|
|
command="cmd_findDownload"/>
|
2008-04-19 00:36:39 -07:00
|
|
|
<key id="key_selectAllDownloads"
|
|
|
|
key="&selectAllCmd.key;"
|
|
|
|
modifiers="accel"
|
|
|
|
command="cmd_selectAllDownloads"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
</keyset>
|
|
|
|
|
|
|
|
<vbox id="contextMenuPalette" hidden="true">
|
|
|
|
<menuitem id="menuitem_pause"
|
|
|
|
label="&cmd.pause.label;" accesskey="&cmd.pause.accesskey;"
|
2008-01-06 16:14:00 -08:00
|
|
|
oncommand="performCommand('cmd_pause');"
|
|
|
|
cmd="cmd_pause"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<menuitem id="menuitem_resume"
|
|
|
|
label="&cmd.resume.label;" accesskey="&cmd.resume.accesskey;"
|
2008-01-06 16:14:00 -08:00
|
|
|
oncommand="performCommand('cmd_resume');"
|
|
|
|
cmd="cmd_resume"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<menuitem id="menuitem_cancel"
|
|
|
|
label="&cmd.cancel.label;" accesskey="&cmd.cancel.accesskey;"
|
2008-01-06 16:14:00 -08:00
|
|
|
oncommand="performCommand('cmd_cancel');"
|
|
|
|
cmd="cmd_cancel"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
<menuitem id="menuitem_open" default="true"
|
|
|
|
label="&cmd.open.label;" accesskey="&cmd.open.accesskey;"
|
2008-01-06 16:14:00 -08:00
|
|
|
oncommand="performCommand('cmd_open');"
|
|
|
|
cmd="cmd_open"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<menuitem id="menuitem_show"
|
|
|
|
#ifdef XP_MACOSX
|
2008-01-26 21:05:18 -08:00
|
|
|
label="&cmd.showMac.label;"
|
|
|
|
accesskey="&cmd.showMac.accesskey;"
|
2007-03-22 10:30:00 -07:00
|
|
|
#else
|
|
|
|
label="&cmd.show.label;"
|
|
|
|
accesskey="&cmd.show.accesskey;"
|
|
|
|
#endif
|
2008-01-06 16:14:00 -08:00
|
|
|
oncommand="performCommand('cmd_show');"
|
|
|
|
cmd="cmd_show"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
<menuitem id="menuitem_retry" default="true"
|
|
|
|
label="&cmd.retry.label;" accesskey="&cmd.retry.accesskey;"
|
2008-01-06 16:14:00 -08:00
|
|
|
oncommand="performCommand('cmd_retry');"
|
|
|
|
cmd="cmd_retry"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2007-11-13 12:12:38 -08:00
|
|
|
<menuitem id="menuitem_removeFromList"
|
|
|
|
label="&cmd.removeFromList.label;" accesskey="&cmd.removeFromList.accesskey;"
|
2008-01-06 16:14:00 -08:00
|
|
|
oncommand="performCommand('cmd_removeFromList');"
|
|
|
|
cmd="cmd_removeFromList"/>
|
2007-09-05 14:19:12 -07:00
|
|
|
|
2007-12-14 10:26:06 -08:00
|
|
|
<menuseparator id="menuseparator"/>
|
2007-09-05 14:19:12 -07:00
|
|
|
|
2007-12-15 17:11:27 -08:00
|
|
|
<menuitem id="menuitem_openReferrer"
|
|
|
|
label="&cmd.goToDownloadPage.label;"
|
|
|
|
accesskey="&cmd.goToDownloadPage.accesskey;"
|
2008-01-06 16:14:00 -08:00
|
|
|
oncommand="performCommand('cmd_openReferrer');"
|
|
|
|
cmd="cmd_openReferrer"/>
|
2007-12-15 17:11:27 -08:00
|
|
|
|
2007-09-05 14:19:12 -07:00
|
|
|
<menuitem id="menuitem_copyLocation"
|
2007-12-14 02:05:39 -08:00
|
|
|
label="&cmd.copyDownloadLink.label;"
|
|
|
|
accesskey="&cmd.copyDownloadLink.accesskey;"
|
2008-01-06 16:14:00 -08:00
|
|
|
oncommand="performCommand('cmd_copyLocation');"
|
|
|
|
cmd="cmd_copyLocation"/>
|
2007-10-27 13:42:48 -07:00
|
|
|
|
2008-04-19 00:36:39 -07:00
|
|
|
<menuitem id="menuitem_selectAll"
|
|
|
|
label="&selectAllCmd.label;"
|
|
|
|
accesskey="&selectAllCmd.accesskey;"
|
|
|
|
command="cmd_selectAllDownloads"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
</vbox>
|
|
|
|
|
2007-08-11 14:53:21 -07:00
|
|
|
<menupopup id="downloadContextMenu" onpopupshowing="return buildContextMenu(event);"/>
|
|
|
|
|
2008-04-08 22:33:39 -07:00
|
|
|
<richlistbox id="downloadView" seltype="multiple" flex="1"
|
|
|
|
context="downloadContextMenu"
|
2007-12-31 18:28:20 -08:00
|
|
|
ondblclick="onDownloadDblClick(event);"
|
2009-06-20 17:04:07 -07:00
|
|
|
ondragover="gDownloadDNDObserver.onDragOver(event)"
|
|
|
|
ondrop="gDownloadDNDObserver.onDrop(event)">
|
2007-03-22 10:30:00 -07:00
|
|
|
</richlistbox>
|
2007-08-11 14:53:21 -07:00
|
|
|
|
2008-10-18 02:57:46 -07:00
|
|
|
<windowdragbox id="search" align="center">
|
2008-04-22 20:57:05 -07:00
|
|
|
<button id="clearListButton" command="cmd_clearList"
|
|
|
|
label="&cmd.clearList.label;"
|
|
|
|
accesskey="&cmd.clearList.accesskey;"
|
|
|
|
tooltiptext="&cmd.clearList.tooltip;"/>
|
|
|
|
<spacer flex="1"/>
|
2009-04-13 10:40:00 -07:00
|
|
|
<textbox type="search" id="searchbox" class="compact"
|
2009-02-02 01:38:53 -08:00
|
|
|
aria-controls="downloadView"
|
2008-02-06 21:29:30 -08:00
|
|
|
oncommand="buildDownloadList();" emptytext="&searchBox.label;"/>
|
2008-10-18 02:57:46 -07:00
|
|
|
</windowdragbox>
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
</window>
|