home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
-
-
- <?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="400" height="300" screenX="10" screenY="10"
- persist="width height screenX screenY sizeMode"
- onload="Startup();" onunload="Shutdown();"
- onclose="return closeWindow(false);">
-
- <script type="application/x-javascript" src="chrome://mozapps/content/downloads/DownloadProgressListener.js"/>
- <script type="application/x-javascript" src="chrome://mozapps/content/downloads/downloads.js"/>
- <script type="application/x-javascript" src="chrome://browser/content/contentAreaUtils.js"/>
- <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
- <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
- <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
-
- <stringbundleset id="downloadSet">
- <stringbundle id="brandStrings" src="chrome://global/locale/brand.properties"/>
- <stringbundle id="downloadStrings" src="chrome://mozapps/locale/downloads/downloads.properties"/>
- </stringbundleset>
-
- <commandset id="downloadsCommands"
- commandupdater="true"
- oncommandupdate="gDownloadViewController.onCommandUpdate();">
- <command id="cmd_cleanUp" oncommand="gDownloadViewController.doCommand('cmd_cleanUp');"/>
- </commandset>
-
- <keyset id="downloadKeys">
- <key id="key_cleanUp" keycode="VK_DELETE" command="cmd_cleanUp" modifiers="accel,shift"/>
- <key id="key_close" key="&cmd.close.commandKey;" oncommand="closeWindow(true);" modifiers="accel"/>
- <key id="key_close2" key="&cmd.close2.commandKey;" oncommand="closeWindow(true);" modifiers="accel"/>
- <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;"
- oncommand="fireEventForElement(gDownloadsView.selected, 'pause');"/>
- <menuitem id="menuitem_resume"
- label="&cmd.resume.label;" accesskey="&cmd.resume.accesskey;"
- oncommand="fireEventForElement(gDownloadsView.selected, 'resume');"/>
- <menuitem id="menuitem_cancel"
- label="&cmd.cancel.label;" accesskey="&cmd.cancel.accesskey;"
- oncommand="fireEventForElement(gDownloadsView.selected, 'cancel');"/>
-
- <menuitem id="menuitem_open" default="true"
- label="&cmd.open.label;" accesskey="&cmd.open.accesskey;"
- oncommand="fireEventForElement(gDownloadsView.selected, 'open');"/>
- <menuitem id="menuitem_openWith"
- label="&cmd.openWith.label;" accesskey="&cmd.openWith.accesskey;"
- oncommand="fireEventForElement(gDownloadsView.selected, 'openWith');"/>
- <menuitem id="menuitem_show"
- label="&cmd.show.label;" accesskey="&cmd.show.accesskey;"
- oncommand="fireEventForElement(gDownloadsView.selected, 'show');"/>
-
- <menuitem id="menuitem_retry" default="true"
- label="&cmd.retry.label;" accesskey="&cmd.retry.accesskey;"
- oncommand="fireEventForElement(gDownloadsView.selected, 'retry');"/>
-
- <menuitem id="menuitem_remove"
- label="&cmd.remove.label;" accesskey="&cmd.remove.accesskey;"
- oncommand="fireEventForElement(gDownloadsView.selected, 'remove');"/>
-
- <menuseparator id="menuseparator_properties"/>
- <menuitem id="menuitem_properties"
- label="&cmd.properties.label;" accesskey="&cmd.properties.accesskey;"
- oncommand="fireEventForElement(gDownloadsView.selected, 'properties');"/>
- </vbox>
-
- <popup id="downloadContextMenu" onpopupshowing="return buildContextMenu(event);"/>
-
- <vbox id="downloadView" flex="1" style="overflow: auto;"
- datasources="rdf:null" ref="NC:DownloadsRoot"
- ondragover="nsDragAndDrop.dragOver(event, gDownloadDNDObserver);"
- ondragdrop="nsDragAndDrop.drop(event, gDownloadDNDObserver);">
- <template>
- <rule>
- <conditions>
- <content uri="?uri"/>
- <member container="?uri" child="?download"/>
- <triple subject="?download"
- predicate="http://home.netscape.com/NC-rdf#File"
- object="?file"/>
- <triple subject="?download"
- predicate="http://home.netscape.com/NC-rdf#Name"
- object="?target"/>
- <triple subject="?download"
- predicate="http://home.netscape.com/NC-rdf#DownloadState"
- object="?state"/>
- </conditions>
- <bindings>
- <binding subject="?download"
- predicate="http://home.netscape.com/NC-rdf#DownloadAnimated"
- object="?animated"/>
- <binding subject="?download"
- predicate="http://home.netscape.com/NC-rdf#DownloadStatus"
- object="?status"/>
- <binding subject="?download"
- predicate="http://home.netscape.com/NC-rdf#ProgressPercent"
- object="?progress-percent"/>
- <binding subject="?download"
- predicate="http://home.netscape.com/NC-rdf#IconURL"
- object="?icon"/>
- </bindings>
- <action>
- <download uri="?download" context="downloadContextMenu"
- image="?icon" file="?file" target="?target" state="?state"
- animated="?animated" status="?status" progress="?progress-percent"/>
- </action>
- </rule>
- </template>
- </vbox>
-
- <hbox>
- <hbox id="commandBar" flex="1">
- <hbox align="center" flex="1" id="autodownloadInfo">
- <label>&filesSavedTo.label;</label>
- <toolbarbutton id="saveToFolder" crop="right" flex="1"
- oncommand="onDownloadShowFolder();"
- tooltiptext="&showFolder.label;"/>
- </hbox>
- <spring id="autodownloadSpring" hidden="true" flex="1"/>
- <separator id="commandBarSeparator"/>
- <button id="cleanUpButton"
- label="&cmd.cleanUp.label;" accesskey="&cmd.cleanUp.accesskey;" tooltiptext="&cmd.cleanUp.tooltip;"
- command="cmd_cleanUp"/>
- </hbox>
-
- <resizer id="windowResizer" dir="bottomright"/>
- </hbox>
-
- </window>
-
-