toolkit/mozapps/downloads/content/downloads.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/mozapps/downloads/content/downloads.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,164 @@
     1.4 +<?xml version="1.0"?>
     1.5 +
     1.6 +# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     1.7 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.8 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.9 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
    1.10 +
    1.11 +#ifdef XP_UNIX
    1.12 +#ifndef XP_MACOSX
    1.13 +#define XP_GNOME 1
    1.14 +#endif
    1.15 +#endif
    1.16 +
    1.17 +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
    1.18 +<?xml-stylesheet href="chrome://mozapps/content/downloads/downloads.css"?>
    1.19 +<?xml-stylesheet href="chrome://mozapps/skin/downloads/downloads.css"?>
    1.20 +
    1.21 +<!DOCTYPE window [
    1.22 +<!ENTITY % downloadManagerDTD SYSTEM "chrome://mozapps/locale/downloads/downloads.dtd">
    1.23 +%downloadManagerDTD;
    1.24 +<!ENTITY % editMenuOverlayDTD SYSTEM "chrome://global/locale/editMenuOverlay.dtd">
    1.25 +%editMenuOverlayDTD;
    1.26 +]>
    1.27 +
    1.28 +<window xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    1.29 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.30 +        id="downloadManager" windowtype="Download:Manager"
    1.31 +        orient="vertical" title="&downloads.title;"
    1.32 +        width="&window.width2;" height="&window.height;" screenX="10" screenY="10"
    1.33 +        persist="width height screenX screenY sizemode"
    1.34 +        onload="Startup();" onunload="Shutdown();"
    1.35 +        onclose="return closeWindow(false);">
    1.36 +
    1.37 +  <script type="application/javascript" src="chrome://mozapps/content/downloads/downloads.js"/>
    1.38 +  <script type="application/javascript" src="chrome://mozapps/content/downloads/DownloadProgressListener.js"/>
    1.39 +  <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
    1.40 +  <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
    1.41 +
    1.42 +  <stringbundleset id="downloadSet">
    1.43 +    <stringbundle id="brandStrings" src="chrome://branding/locale/brand.properties"/>
    1.44 +    <stringbundle id="downloadStrings" src="chrome://mozapps/locale/downloads/downloads.properties"/>
    1.45 +  </stringbundleset>
    1.46 +
    1.47 +  <!-- Use this commandset for command which do not depened on focus or selection -->
    1.48 +  <commandset id="generalCommands">
    1.49 +    <command id="cmd_findDownload" oncommand="setSearchboxFocus();"/>
    1.50 +    <command id="cmd_selectAllDownloads" oncommand="gDownloadsView.selectAll();"/>
    1.51 +    <command id="cmd_clearList" oncommand="clearDownloadList();"/>
    1.52 +  </commandset>
    1.53 +
    1.54 +  <keyset id="downloadKeys">
    1.55 +    <key keycode="VK_RETURN" oncommand="doDefaultForSelected();"/>
    1.56 +    <key id="key_pauseResume" key=" " oncommand="performCommand('cmd_pauseResume');"/>
    1.57 +    <key id="key_removeFromList"  keycode="VK_DELETE" oncommand="performCommand('cmd_removeFromList');"/>
    1.58 +#ifdef XP_MACOSX
    1.59 +    <key id="key_removeFromList2" keycode="VK_BACK" oncommand="performCommand('cmd_removeFromList');"/>
    1.60 +#endif
    1.61 +    <key id="key_close"   key="&cmd.close.commandKey;"  oncommand="closeWindow(true);"    modifiers="accel"/>
    1.62 +#ifdef XP_GNOME
    1.63 +    <key id="key_close2"  key="&cmd.close2Unix.commandKey;" oncommand="closeWindow(true);" modifiers="accel,shift"/>
    1.64 +#else
    1.65 +    <key id="key_close2"  key="&cmd.close2.commandKey;" oncommand="closeWindow(true);" modifiers="accel"/>
    1.66 +#endif
    1.67 +    <key                  keycode="VK_ESCAPE"           oncommand="closeWindow(true);"/>
    1.68 +
    1.69 +    <key id="key_findDownload"
    1.70 +         key="&cmd.find.commandKey;"
    1.71 +         modifiers="accel"
    1.72 +         command="cmd_findDownload"/>
    1.73 +    <key id="key_findDownload2"
    1.74 +         key="&cmd.search.commandKey;"
    1.75 +         modifiers="accel"
    1.76 +         command="cmd_findDownload"/>
    1.77 +    <key id="key_selectAllDownloads"
    1.78 +         key="&selectAllCmd.key;"
    1.79 +         modifiers="accel"
    1.80 +         command="cmd_selectAllDownloads"/>
    1.81 +    <key id="pasteKey"
    1.82 +         key="V"
    1.83 +         modifiers="accel"
    1.84 +         oncommand="pasteHandler();"/>
    1.85 +  </keyset>
    1.86 +
    1.87 +  <vbox id="contextMenuPalette" hidden="true">
    1.88 +    <menuitem id="menuitem_pause"
    1.89 +              label="&cmd.pause.label;" accesskey="&cmd.pause.accesskey;"
    1.90 +              oncommand="performCommand('cmd_pause');"
    1.91 +              cmd="cmd_pause"/>
    1.92 +    <menuitem id="menuitem_resume"
    1.93 +              label="&cmd.resume.label;" accesskey="&cmd.resume.accesskey;"
    1.94 +              oncommand="performCommand('cmd_resume');"
    1.95 +              cmd="cmd_resume"/>
    1.96 +    <menuitem id="menuitem_cancel"
    1.97 +              label="&cmd.cancel.label;" accesskey="&cmd.cancel.accesskey;"
    1.98 +              oncommand="performCommand('cmd_cancel');"
    1.99 +              cmd="cmd_cancel"/>
   1.100 +
   1.101 +    <menuitem id="menuitem_open" default="true"
   1.102 +              label="&cmd.open.label;" accesskey="&cmd.open.accesskey;"
   1.103 +              oncommand="performCommand('cmd_open');"
   1.104 +              cmd="cmd_open"/>
   1.105 +    <menuitem id="menuitem_show"
   1.106 +#ifdef XP_MACOSX
   1.107 +              label="&cmd.showMac.label;"
   1.108 +              accesskey="&cmd.showMac.accesskey;"
   1.109 +#else
   1.110 +              label="&cmd.show.label;"
   1.111 +              accesskey="&cmd.show.accesskey;"
   1.112 +#endif
   1.113 +              oncommand="performCommand('cmd_show');"
   1.114 +              cmd="cmd_show"/>
   1.115 +
   1.116 +    <menuitem id="menuitem_retry" default="true"
   1.117 +              label="&cmd.retry.label;" accesskey="&cmd.retry.accesskey;"
   1.118 +              oncommand="performCommand('cmd_retry');"
   1.119 +              cmd="cmd_retry"/>
   1.120 +
   1.121 +    <menuitem id="menuitem_removeFromList"
   1.122 +              label="&cmd.removeFromList.label;" accesskey="&cmd.removeFromList.accesskey;"
   1.123 +              oncommand="performCommand('cmd_removeFromList');"
   1.124 +              cmd="cmd_removeFromList"/>
   1.125 +
   1.126 +    <menuseparator id="menuseparator"/>
   1.127 +
   1.128 +    <menuitem id="menuitem_openReferrer"
   1.129 +              label="&cmd.goToDownloadPage.label;"
   1.130 +              accesskey="&cmd.goToDownloadPage.accesskey;"
   1.131 +              oncommand="performCommand('cmd_openReferrer');"
   1.132 +              cmd="cmd_openReferrer"/>
   1.133 +
   1.134 +    <menuitem id="menuitem_copyLocation"
   1.135 +              label="&cmd.copyDownloadLink.label;"
   1.136 +              accesskey="&cmd.copyDownloadLink.accesskey;"
   1.137 +              oncommand="performCommand('cmd_copyLocation');"
   1.138 +              cmd="cmd_copyLocation"/>
   1.139 +
   1.140 +    <menuitem id="menuitem_selectAll"
   1.141 +              label="&selectAllCmd.label;"
   1.142 +              accesskey="&selectAllCmd.accesskey;"
   1.143 +              command="cmd_selectAllDownloads"/>
   1.144 +  </vbox>
   1.145 +  
   1.146 +  <menupopup id="downloadContextMenu" onpopupshowing="return buildContextMenu(event);"/>
   1.147 +
   1.148 +  <richlistbox id="downloadView" seltype="multiple" flex="1"
   1.149 +               context="downloadContextMenu"
   1.150 +               ondblclick="onDownloadDblClick(event);"
   1.151 +               ondragstart="gDownloadDNDObserver.onDragStart(event);"
   1.152 +               ondragover="gDownloadDNDObserver.onDragOver(event);event.stopPropagation();"
   1.153 +               ondrop="gDownloadDNDObserver.onDrop(event)">
   1.154 +  </richlistbox>
   1.155 +
   1.156 +  <windowdragbox id="search" align="center">
   1.157 +    <button id="clearListButton" command="cmd_clearList"
   1.158 +            label="&cmd.clearList.label;"
   1.159 +            accesskey="&cmd.clearList.accesskey;"
   1.160 +            tooltiptext="&cmd.clearList.tooltip;"/>
   1.161 +    <spacer flex="1"/>
   1.162 +    <textbox type="search" id="searchbox" class="compact"
   1.163 +             aria-controls="downloadView"
   1.164 +             oncommand="buildDownloadList();" placeholder="&searchBox.label;"/>
   1.165 +  </windowdragbox>
   1.166 +
   1.167 +</window>

mercurial