|
1 <?xml version="1.0"?> |
|
2 |
|
3 # -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- |
|
4 # This Source Code Form is subject to the terms of the Mozilla Public |
|
5 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
7 |
|
8 #ifdef XP_UNIX |
|
9 #ifndef XP_MACOSX |
|
10 #define XP_GNOME 1 |
|
11 #endif |
|
12 #endif |
|
13 |
|
14 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
|
15 <?xml-stylesheet href="chrome://mozapps/content/downloads/downloads.css"?> |
|
16 <?xml-stylesheet href="chrome://mozapps/skin/downloads/downloads.css"?> |
|
17 |
|
18 <!DOCTYPE window [ |
|
19 <!ENTITY % downloadManagerDTD SYSTEM "chrome://mozapps/locale/downloads/downloads.dtd"> |
|
20 %downloadManagerDTD; |
|
21 <!ENTITY % editMenuOverlayDTD SYSTEM "chrome://global/locale/editMenuOverlay.dtd"> |
|
22 %editMenuOverlayDTD; |
|
23 ]> |
|
24 |
|
25 <window xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
|
26 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
|
27 id="downloadManager" windowtype="Download:Manager" |
|
28 orient="vertical" title="&downloads.title;" |
|
29 width="&window.width2;" height="&window.height;" screenX="10" screenY="10" |
|
30 persist="width height screenX screenY sizemode" |
|
31 onload="Startup();" onunload="Shutdown();" |
|
32 onclose="return closeWindow(false);"> |
|
33 |
|
34 <script type="application/javascript" src="chrome://mozapps/content/downloads/downloads.js"/> |
|
35 <script type="application/javascript" src="chrome://mozapps/content/downloads/DownloadProgressListener.js"/> |
|
36 <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/> |
|
37 <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/> |
|
38 |
|
39 <stringbundleset id="downloadSet"> |
|
40 <stringbundle id="brandStrings" src="chrome://branding/locale/brand.properties"/> |
|
41 <stringbundle id="downloadStrings" src="chrome://mozapps/locale/downloads/downloads.properties"/> |
|
42 </stringbundleset> |
|
43 |
|
44 <!-- Use this commandset for command which do not depened on focus or selection --> |
|
45 <commandset id="generalCommands"> |
|
46 <command id="cmd_findDownload" oncommand="setSearchboxFocus();"/> |
|
47 <command id="cmd_selectAllDownloads" oncommand="gDownloadsView.selectAll();"/> |
|
48 <command id="cmd_clearList" oncommand="clearDownloadList();"/> |
|
49 </commandset> |
|
50 |
|
51 <keyset id="downloadKeys"> |
|
52 <key keycode="VK_RETURN" oncommand="doDefaultForSelected();"/> |
|
53 <key id="key_pauseResume" key=" " oncommand="performCommand('cmd_pauseResume');"/> |
|
54 <key id="key_removeFromList" keycode="VK_DELETE" oncommand="performCommand('cmd_removeFromList');"/> |
|
55 #ifdef XP_MACOSX |
|
56 <key id="key_removeFromList2" keycode="VK_BACK" oncommand="performCommand('cmd_removeFromList');"/> |
|
57 #endif |
|
58 <key id="key_close" key="&cmd.close.commandKey;" oncommand="closeWindow(true);" modifiers="accel"/> |
|
59 #ifdef XP_GNOME |
|
60 <key id="key_close2" key="&cmd.close2Unix.commandKey;" oncommand="closeWindow(true);" modifiers="accel,shift"/> |
|
61 #else |
|
62 <key id="key_close2" key="&cmd.close2.commandKey;" oncommand="closeWindow(true);" modifiers="accel"/> |
|
63 #endif |
|
64 <key keycode="VK_ESCAPE" oncommand="closeWindow(true);"/> |
|
65 |
|
66 <key id="key_findDownload" |
|
67 key="&cmd.find.commandKey;" |
|
68 modifiers="accel" |
|
69 command="cmd_findDownload"/> |
|
70 <key id="key_findDownload2" |
|
71 key="&cmd.search.commandKey;" |
|
72 modifiers="accel" |
|
73 command="cmd_findDownload"/> |
|
74 <key id="key_selectAllDownloads" |
|
75 key="&selectAllCmd.key;" |
|
76 modifiers="accel" |
|
77 command="cmd_selectAllDownloads"/> |
|
78 <key id="pasteKey" |
|
79 key="V" |
|
80 modifiers="accel" |
|
81 oncommand="pasteHandler();"/> |
|
82 </keyset> |
|
83 |
|
84 <vbox id="contextMenuPalette" hidden="true"> |
|
85 <menuitem id="menuitem_pause" |
|
86 label="&cmd.pause.label;" accesskey="&cmd.pause.accesskey;" |
|
87 oncommand="performCommand('cmd_pause');" |
|
88 cmd="cmd_pause"/> |
|
89 <menuitem id="menuitem_resume" |
|
90 label="&cmd.resume.label;" accesskey="&cmd.resume.accesskey;" |
|
91 oncommand="performCommand('cmd_resume');" |
|
92 cmd="cmd_resume"/> |
|
93 <menuitem id="menuitem_cancel" |
|
94 label="&cmd.cancel.label;" accesskey="&cmd.cancel.accesskey;" |
|
95 oncommand="performCommand('cmd_cancel');" |
|
96 cmd="cmd_cancel"/> |
|
97 |
|
98 <menuitem id="menuitem_open" default="true" |
|
99 label="&cmd.open.label;" accesskey="&cmd.open.accesskey;" |
|
100 oncommand="performCommand('cmd_open');" |
|
101 cmd="cmd_open"/> |
|
102 <menuitem id="menuitem_show" |
|
103 #ifdef XP_MACOSX |
|
104 label="&cmd.showMac.label;" |
|
105 accesskey="&cmd.showMac.accesskey;" |
|
106 #else |
|
107 label="&cmd.show.label;" |
|
108 accesskey="&cmd.show.accesskey;" |
|
109 #endif |
|
110 oncommand="performCommand('cmd_show');" |
|
111 cmd="cmd_show"/> |
|
112 |
|
113 <menuitem id="menuitem_retry" default="true" |
|
114 label="&cmd.retry.label;" accesskey="&cmd.retry.accesskey;" |
|
115 oncommand="performCommand('cmd_retry');" |
|
116 cmd="cmd_retry"/> |
|
117 |
|
118 <menuitem id="menuitem_removeFromList" |
|
119 label="&cmd.removeFromList.label;" accesskey="&cmd.removeFromList.accesskey;" |
|
120 oncommand="performCommand('cmd_removeFromList');" |
|
121 cmd="cmd_removeFromList"/> |
|
122 |
|
123 <menuseparator id="menuseparator"/> |
|
124 |
|
125 <menuitem id="menuitem_openReferrer" |
|
126 label="&cmd.goToDownloadPage.label;" |
|
127 accesskey="&cmd.goToDownloadPage.accesskey;" |
|
128 oncommand="performCommand('cmd_openReferrer');" |
|
129 cmd="cmd_openReferrer"/> |
|
130 |
|
131 <menuitem id="menuitem_copyLocation" |
|
132 label="&cmd.copyDownloadLink.label;" |
|
133 accesskey="&cmd.copyDownloadLink.accesskey;" |
|
134 oncommand="performCommand('cmd_copyLocation');" |
|
135 cmd="cmd_copyLocation"/> |
|
136 |
|
137 <menuitem id="menuitem_selectAll" |
|
138 label="&selectAllCmd.label;" |
|
139 accesskey="&selectAllCmd.accesskey;" |
|
140 command="cmd_selectAllDownloads"/> |
|
141 </vbox> |
|
142 |
|
143 <menupopup id="downloadContextMenu" onpopupshowing="return buildContextMenu(event);"/> |
|
144 |
|
145 <richlistbox id="downloadView" seltype="multiple" flex="1" |
|
146 context="downloadContextMenu" |
|
147 ondblclick="onDownloadDblClick(event);" |
|
148 ondragstart="gDownloadDNDObserver.onDragStart(event);" |
|
149 ondragover="gDownloadDNDObserver.onDragOver(event);event.stopPropagation();" |
|
150 ondrop="gDownloadDNDObserver.onDrop(event)"> |
|
151 </richlistbox> |
|
152 |
|
153 <windowdragbox id="search" align="center"> |
|
154 <button id="clearListButton" command="cmd_clearList" |
|
155 label="&cmd.clearList.label;" |
|
156 accesskey="&cmd.clearList.accesskey;" |
|
157 tooltiptext="&cmd.clearList.tooltip;"/> |
|
158 <spacer flex="1"/> |
|
159 <textbox type="search" id="searchbox" class="compact" |
|
160 aria-controls="downloadView" |
|
161 oncommand="buildDownloadList();" placeholder="&searchBox.label;"/> |
|
162 </windowdragbox> |
|
163 |
|
164 </window> |