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-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;
|
|
|
|
]>
|
|
|
|
|
|
|
|
<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;"
|
|
|
|
width="&window.width;" height="&window.height;" screenX="10" screenY="10"
|
|
|
|
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/nsDragAndDrop.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>
|
|
|
|
|
|
|
|
<commandset id="downloadsCommands"
|
|
|
|
commandupdater="true"
|
|
|
|
oncommandupdate="gDownloadViewController.onCommandUpdate();">
|
2007-08-11 14:53:21 -07:00
|
|
|
<command id="cmd_cancel"
|
|
|
|
oncommand="gDownloadViewController.doCommand('cmd_cancel');"/>
|
|
|
|
<command id="cmd_open"
|
|
|
|
oncommand="gDownloadViewController.doCommand('cmd_open');"/>
|
2007-08-17 16:05:26 -07:00
|
|
|
<command id="cmd_openReferrer"
|
|
|
|
oncommand="gDownloadViewController.doCommand('cmd_openReferrer');"/>
|
2007-08-11 14:53:21 -07:00
|
|
|
<command id="cmd_pause"
|
|
|
|
oncommand="gDownloadViewController.doCommand('cmd_pause');"/>
|
|
|
|
<command id="cmd_pauseResume"
|
|
|
|
oncommand="gDownloadViewController.doCommand('cmd_pauseResume');"/>
|
|
|
|
<command id="cmd_remove"
|
|
|
|
oncommand="gDownloadViewController.doCommand('cmd_remove');"/>
|
|
|
|
<command id="cmd_resume"
|
|
|
|
oncommand="gDownloadViewController.doCommand('cmd_resume');"/>
|
|
|
|
<command id="cmd_retry"
|
|
|
|
oncommand="gDownloadViewController.doCommand('cmd_retry');"/>
|
|
|
|
<command id="cmd_show"
|
|
|
|
oncommand="gDownloadViewController.doCommand('cmd_show');"/>
|
|
|
|
<command id="cmd_showInfo"
|
|
|
|
oncommand="gDownloadViewController.doCommand('cmd_showInfo');"/>
|
2007-09-05 14:19:12 -07:00
|
|
|
<command id="cmd_copyLocation"
|
|
|
|
oncommand="gDownloadViewController.doCommand('cmd_copyLocation');"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
</commandset>
|
|
|
|
|
|
|
|
<keyset id="downloadKeys">
|
2007-08-11 14:53:21 -07:00
|
|
|
<key id="key_pauseResume" key=" " command="cmd_pauseResume"/>
|
2007-07-11 02:26:09 -07:00
|
|
|
<key id="key_remove" keycode="VK_DELETE" command="cmd_remove"/>
|
2007-09-02 15:13:41 -07:00
|
|
|
#ifdef XP_MACOSX
|
|
|
|
<key id="key_remove2" keycode="VK_BACK" command="cmd_remove"/>
|
|
|
|
#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
|
|
|
|
<key id="key_close2" key="&cmd.close2Unix.commandKey;" oncommand="closeWindow(true);" modifiers="accel"/>
|
|
|
|
#else
|
|
|
|
<key id="key_close2" key="&cmd.close2.commandKey;" oncommand="closeWindow(true);" modifiers="accel"/>
|
|
|
|
#endif
|
|
|
|
<key keycode="VK_ESCAPE" oncommand="closeWindow(true);"/>
|
|
|
|
<key id="key_info" key="&cmd.info.commandKey;" oncommand="onDownloadShowInfo();" modifiers="accel"/>
|
|
|
|
</keyset>
|
|
|
|
|
|
|
|
<vbox id="contextMenuPalette" hidden="true">
|
|
|
|
<menuitem id="menuitem_pause"
|
|
|
|
label="&cmd.pause.label;" accesskey="&cmd.pause.accesskey;"
|
2007-08-11 14:53:21 -07:00
|
|
|
command="cmd_pause"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<menuitem id="menuitem_resume"
|
|
|
|
label="&cmd.resume.label;" accesskey="&cmd.resume.accesskey;"
|
2007-08-11 14:53:21 -07:00
|
|
|
command="cmd_resume"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<menuitem id="menuitem_cancel"
|
|
|
|
label="&cmd.cancel.label;" accesskey="&cmd.cancel.accesskey;"
|
2007-08-11 14:53:21 -07:00
|
|
|
command="cmd_cancel"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
<menuitem id="menuitem_open" default="true"
|
|
|
|
label="&cmd.open.label;" accesskey="&cmd.open.accesskey;"
|
2007-08-11 14:53:21 -07:00
|
|
|
command="cmd_open"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<menuitem id="menuitem_show"
|
|
|
|
#ifdef XP_MACOSX
|
|
|
|
label="&cmd.show.labelMac;"
|
|
|
|
accesskey="&cmd.show.accesskeyMac;"
|
|
|
|
#else
|
|
|
|
label="&cmd.show.label;"
|
|
|
|
accesskey="&cmd.show.accesskey;"
|
|
|
|
#endif
|
2007-08-11 14:53:21 -07:00
|
|
|
command="cmd_show"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
<menuitem id="menuitem_retry" default="true"
|
|
|
|
label="&cmd.retry.label;" accesskey="&cmd.retry.accesskey;"
|
2007-08-11 14:53:21 -07:00
|
|
|
command="cmd_retry"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
<menuitem id="menuitem_remove"
|
|
|
|
label="&cmd.remove.label;" accesskey="&cmd.remove.accesskey;"
|
2007-08-11 14:53:21 -07:00
|
|
|
command="cmd_remove"/>
|
2007-09-05 14:19:12 -07:00
|
|
|
|
|
|
|
<menuseparator id="menuseparator_copy_location"/>
|
|
|
|
|
|
|
|
<menuitem id="menuitem_copyLocation"
|
|
|
|
label="&cmd.copyLocation.label;"
|
|
|
|
accesskey="&cmd.copyLocation.accesskey;"
|
|
|
|
command="cmd_copyLocation"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
</vbox>
|
|
|
|
|
2007-08-11 14:53:21 -07:00
|
|
|
<menupopup id="downloadContextMenu" onpopupshowing="return buildContextMenu(event);"/>
|
|
|
|
|
|
|
|
<!--Information popup-->
|
|
|
|
<panel id="information" orient="vertical" align="start">
|
|
|
|
<label id="information-title" flex="1"/>
|
2007-08-17 16:05:26 -07:00
|
|
|
<button type="image" crop="center" id="information-uri" class="mini-button"
|
|
|
|
flex="1" command="cmd_openReferrer"/>
|
2007-08-12 00:50:31 -07:00
|
|
|
<button type="image" crop="center" id="information-location" class="mini-button" flex="1" command="cmd_show"/>
|
2007-08-11 14:53:21 -07:00
|
|
|
</panel>
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
<richlistbox id="downloadView" flex="1" context="downloadContextMenu"
|
2007-08-11 14:53:21 -07:00
|
|
|
ondragover="nsDragAndDrop.dragOver(event, gDownloadDNDObserver);"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event, gDownloadDNDObserver);">
|
2007-08-12 02:57:30 -07:00
|
|
|
<hbox id="active-downloads-title" align="center" hidden="true">
|
|
|
|
<label id="active-downloads" value="&activeDownloads.label;"/>
|
|
|
|
<hbox class="title-line" flex="1"/>
|
|
|
|
</hbox>
|
|
|
|
<hbox id="other-downloads-title" align="center">
|
|
|
|
<label id="other-downloads" value="&completedDownloads.label;"
|
|
|
|
completedlabel="&completedDownloads.label;"
|
|
|
|
searchlabel="&searchResults.label;"/>
|
|
|
|
<hbox class="title-line" flex="1"/>
|
|
|
|
</hbox>
|
2007-03-22 10:30:00 -07:00
|
|
|
</richlistbox>
|
2007-08-11 14:53:21 -07:00
|
|
|
|
|
|
|
<hbox id="search">
|
|
|
|
<textbox type="timed" timeout="500" id="searchbox"
|
2007-08-14 16:18:15 -07:00
|
|
|
oncommand="performSearch();" empty="true"
|
|
|
|
value="&searchBox.label;" defaultValue="&searchBox.label;"
|
|
|
|
onblur="onSearchboxBlur();" onfocus="onSearchboxFocus();"/>
|
2007-08-11 14:53:21 -07:00
|
|
|
<spacer flex="1"/>
|
|
|
|
<!-- TODO get advanced search working (Bug 390491)
|
|
|
|
<button label="Advanced Search"/>
|
|
|
|
-->
|
2007-03-22 10:30:00 -07:00
|
|
|
<resizer id="windowResizer" dir="bottomright"/>
|
2007-08-11 14:53:21 -07:00
|
|
|
</hbox>
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
</window>
|
|
|
|
|