5 ***** BEGIN LICENSE BLOCK *****
6 Version: MPL 1.1/GPL 2.0/LGPL 2.1
8 The contents of this file are subject to the Mozilla Public License Version
9 1.1 (the "License"); you may not use this file except in compliance with
10 the License. You may obtain a copy of the License at
11 http://www.mozilla.org/MPL/
13 Software distributed under the License is distributed on an "AS IS" basis,
14 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
15 for the specific language governing rights and limitations under the
18 The Original Code is mozilla.org code.
20 The Initial Developer of the Original Code is
21 Netscape Communications Corporation.
22 Portions created by the Initial Developer are Copyright (C) 1998
23 the Initial Developer. All Rights Reserved.
26 Ben Goodger <ben@netscape.com> (Original Author)
27 Blake Ross <blaker@netscape.com>
28 Jan Varga <varga@ku.sk>
30 Alternatively, the contents of this file may be used under the terms of
31 either of the GNU General Public License Version 2 or later (the "GPL"),
32 or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
33 in which case the provisions of the GPL or the LGPL are applicable instead
34 of those above. If you wish to allow use of your version of this file only
35 under the terms of either the GPL or the LGPL, and not to allow others to
36 use your version of this file under the terms of the MPL, indicate your
37 decision by deleting the provisions above and replace them with the notice
38 and other provisions required by the GPL or the LGPL. If you do not delete
39 the provisions above, a recipient may use your version of this file under
40 the terms of any one of the MPL, the GPL or the LGPL.
42 ***** END LICENSE BLOCK ***** -->
44 <?xml-stylesheet href=
"chrome://communicator/skin/"?>
47 <!ENTITY % downloadManagerDTD SYSTEM
"chrome://communicator/locale/downloadmanager/downloadmanager.dtd">
49 <!ENTITY % downloadProgressDTD SYSTEM
"chrome://global/locale/nsProgressDialog.dtd" >
53 <window id=
"downloadManager"
54 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
55 xmlns:
rdf=
"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
56 windowtype=
"Download:Manager"
57 width=
"500" height=
"300" screenX=
"10" screenY=
"10"
58 persist=
"width height screenX screenY"
59 title=
"&downloadManager.title;"
60 onload=
"DLManagerStartup();"
61 onunload=
"DLManagerShutdown();">
63 <script type=
"application/x-javascript" src=
"chrome://global/content/globalOverlay.js"/>
65 <script type=
"application/x-javascript" src=
"chrome://communicator/content/downloadmanager/downloadmanager.js"/>
67 <stringbundleset id=
"stringbundleset">
68 <stringbundle id=
"dlMgrBundle"
69 src=
"chrome://communicator/locale/downloadmanager/downloadmanager.properties"/>
70 <stringbundle id=
"dlProgressDlgBundle"
71 src=
"chrome://global/locale/nsProgressDialog.properties"/>
74 <data id=
"strings.confirmCancel">&confirmCancel;</data>
75 <data id=
"strings.progressMsgNoRate">&progressMsgNoRate;</data>
76 <data id=
"strings.rateMsg">&rateMsg;</data>
77 <data id=
"strings.completeMsg">&completeMsg;</data>
78 <data id=
"strings.percentMsg">&percentMsg;</data>
79 <data id=
"strings.shortTimeFormat">&shortTimeFormat;</data>
80 <data id=
"strings.longTimeFormat">&longTimeFormat;</data>
81 <data id=
"strings.unknownTime">&unknownTime;</data>
82 <data id=
"strings.pausedMsg">&pausedMsg;</data>
84 <commandset id=
"commands">
85 <commandset id=
"commandUpdate_Downloads"
87 events=
"focus,tree-select"
88 oncommandupdate=
"downloadViewController.onCommandUpdate()"/>
90 <commandset id=
"downloadCommands">
91 <command id=
"cmd_properties"
92 oncommand=
"goDoCommand('cmd_properties');"/>
93 <command id=
"cmd_pause"
94 oncommand=
"goDoCommand('cmd_pause');"/>
95 <command id=
"cmd_cancel"
96 oncommand=
"goDoCommand('cmd_cancel');"/>
97 <command id=
"cmd_remove"
98 oncommand=
"goDoCommand('cmd_remove');"/>
99 <command id=
"cmd_copyurl"
100 oncommand=
"goDoCommand('cmd_copyurl');"/>
101 <command id=
"cmd_openfile"
102 oncommand=
"goDoCommand('cmd_openfile');"/>
103 <command id=
"cmd_showinshell"
104 oncommand=
"goDoCommand('cmd_showinshell');"/>
108 <command id=
"cmd_newNavigator"/>
109 <command id=
"cmd_close" oncommand=
"close()"/>
110 <command id=
"cmd_quit"/>
114 <broadcasterset id=
"navBroadcasters"/>
116 <keyset id=
"tasksKeys">
118 <key id=
"key_newNavigator"/>
119 <key id=
"key_close"/>
122 <!-- These keybindings do not have a command specified in the overlay,
123 which is good, but we need to specify it ourselves here -->
124 <key id=
"key_selectAll" command=
"cmd_selectAll"/>
126 <!-- These keybindings do have a command specified in the overlay,
127 which we need to correct in our DLManagerStartup() function -->
128 <key id=
"key_delete"/>
129 <key id=
"key_delete2"/>
131 <key id=
"key_properties" key=
"&cmd.properties.keybinding;"
132 command=
"cmd_properties" modifiers=
"accel"/>
134 <key id=
"key_copy" command=
"cmd_copyurl"/>
137 <popup id=
"downloadPaneContext">
138 <menuitem id=
"downloadPaneContext-properties"
139 label=
"&cmd.properties.label;"
140 accesskey=
"&cmd.properties.accesskey;"
141 command=
"cmd_properties"/>
142 <menuseparator id=
"downloadPaneContext-sep1"/>
143 <menuitem id=
"downloadPaneContext-cancel"
144 label=
"&cmd.cancel.label;"
145 accesskey=
"&cmd.cancel.accesskey;"
146 command=
"cmd_cancel"/>
147 <menuitem id=
"downloadPaneContext-remove"
148 label=
"&cmd.remove.label;"
149 accesskey=
"&cmd.remove.accesskey;"
150 command=
"cmd_remove"/>
151 <menuitem id=
"downloadPaneContext-copyurl"
152 label=
"&cmd.copyurl.label;"
153 accesskey=
"&cmd.copyurl.accesskey;"
154 command=
"cmd_copyurl"/>
155 <menuseparator id=
"downloadPaneContext-sep2"/>
156 <menuitem id=
"downloadPaneContext-openfile"
157 label=
"&cmd.openfile.label;"
158 accesskey=
"&cmd.openfile.accesskey;"
159 command=
"cmd_openfile"/>
160 <menuitem id=
"downloadPaneContext-showinshell"
161 label=
"&cmd.showinshell.label;"
162 accesskey=
"&cmd.showinshell.accesskey;"
163 command=
"cmd_showinshell"/>
166 <toolbox id=
"toolbox">
167 <toolbar id=
"download-toolbar" class=
"chromeclass-toolbar" persist=
"collapsed" grippytooltiptext=
"&dm.tooltip;">
168 <toolbarbutton label=
"&cmd.properties.label;" accesskey=
"&cmd.properties.accesskey;"
169 command=
"cmd_properties"/>
171 <toolbarbutton label=
"&cmd.cancel.label;" accesskey=
"&cmd.cancel.accesskey;"
172 command=
"cmd_cancel"/>
173 <toolbarbutton label=
"&cmd.remove.label;" accesskey=
"&cmd.remove.accesskey;"
174 command=
"cmd_remove"/>
175 <toolbarbutton id=
"btn_copyurl" label=
"&cmd.copyurl.label;" accesskey=
"&cmd.copyurl.accesskey;"
176 command=
"cmd_copyurl"/>
178 <toolbarbutton id=
"btn_openfile" label=
"&cmd.openfile.label;" accesskey=
"&cmd.openfile.accesskey;"
179 command=
"cmd_openfile"/>
180 <toolbarbutton id=
"btn_showinshell" label=
"&cmd.showinshell.label;" accesskey=
"&cmd.showinshell.accesskey;"
181 command=
"cmd_showinshell"/>
185 <tree id=
"downloadView" flex=
"1" class=
"plain" context=
"downloadPaneContext"
186 datasources=
"rdf:null" ref=
"NC:DownloadsRoot" flags=
"dont-test-empty"
187 enableColumnDrag=
"true" onselect=
"onSelect(event);"
188 ondblclick=
"if (event.button == 0) onTrigger();"
189 onkeypress=
"if ((event.keyCode == KeyEvent.DOM_VK_RETURN) ||
190 (event.keyCode == KeyEvent.DOM_VK_ENTER)) onTrigger();">
191 <treecols onclick=
"doSort(event.target)">
192 <treecol id=
"Name" primary=
"true"
193 label=
"&view.header.name.label;"
194 class=
"sortDirectionIndicator" width=
"3*" flex=
"3"
195 resource=
"http://home.netscape.com/NC-rdf#Name"
196 persist=
"width sortActive sortDirection ordinal"/>
197 <splitter class=
"tree-splitter"/>
198 <treecol id=
"Progress" type=
"progressmeter"
199 label=
"&view.header.progress.label;"
200 class=
"sortDirectionIndicator" width=
"3*" flex=
"3"
201 resource=
"http://home.netscape.com/NC-rdf#ProgressPercent"
202 persist=
"width hidden sortActive sortDirection ordinal"/>
203 <splitter class=
"tree-splitter"/>
204 <treecol id=
"ProgressPercent" hidden=
"true"
205 label=
"&view.header.progresstext.label;"
206 class=
"sortDirectionIndicator" width=
"1*" flex=
"1"
207 resource=
"http://home.netscape.com/NC-rdf#ProgressPercent"
208 persist=
"width hidden sortActive sortDirection ordinal"/>
209 <splitter class=
"tree-splitter"/>
210 <treecol id=
"TimeRemaining"
211 label=
"&view.header.timeremaining.label;"
212 class=
"sortDirectionIndicator" width=
"1*" flex=
"1"
213 resource=
"http://home.netscape.com/NC-rdf#TimeRemaining"
214 persist=
"width hidden sortActive sortDirection ordinal"/>
215 <splitter class=
"tree-splitter"/>
216 <treecol id=
"Transferred"
217 label=
"&view.header.transferred.label;"
218 class=
"sortDirectionIndicator" width=
"1*" flex=
"1"
219 resource=
"http://home.netscape.com/NC-rdf#Transferred"
220 persist=
"width hidden sortActive sortDirection ordinal"/>
221 <splitter class=
"tree-splitter"/>
222 <treecol id=
"TransferRate"
223 label=
"&view.header.transferrate.label;"
224 class=
"sortDirectionIndicator" width=
"1*" flex=
"1"
225 resource=
"http://home.netscape.com/NC-rdf#TransferRate"
226 persist=
"width hidden sortActive sortDirection ordinal"/>
227 <splitter class=
"tree-splitter"/>
228 <treecol id=
"TimeElapsed" hidden=
"true"
229 label=
"&view.header.timeelapsed.label;"
230 class=
"sortDirectionIndicator" width=
"1*" flex=
"1"
231 resource=
"http://home.netscape.com/NC-rdf#TimeElapsed"
232 persist=
"width hidden sortActive sortDirection ordinal"/>
233 <splitter class=
"tree-splitter"/>
234 <treecol id=
"Source" hidden=
"true"
235 label=
"&view.header.source.label;"
236 class=
"sortDirectionIndicator" width=
"1*" flex=
"1"
237 resource=
"http://home.netscape.com/NC-rdf#URL"
238 persist=
"width hidden sortActive sortDirection ordinal"/>
243 <treeitem uri=
"rdf:*">
245 <treecell src=
"moz-icon:rdf:http://home.netscape.com/NC-rdf#File"
246 label=
"rdf:http://home.netscape.com/NC-rdf#Name"/>
247 <treecell mode=
"rdf:http://home.netscape.com/NC-rdf#ProgressMode"
248 value=
"rdf:http://home.netscape.com/NC-rdf#ProgressPercent"
249 label=
"rdf:http://home.netscape.com/NC-rdf#StatusText"/>
250 <treecell label=
"rdf:http://home.netscape.com/NC-rdf#ProgressPercent"/>
251 <treecell label=
"rdf:http://home.netscape.com/NC-rdf#TimeRemaining"/>
252 <treecell label=
"rdf:http://home.netscape.com/NC-rdf#Transferred"/>
253 <treecell label=
"rdf:http://home.netscape.com/NC-rdf#TransferRate"/>
254 <treecell label=
"rdf:http://home.netscape.com/NC-rdf#TimeElapsed"/>
255 <treecell label=
"rdf:http://home.netscape.com/NC-rdf#URL"/>
263 <statusbar id=
"status-bar" class=
"chromeclass-status">
264 <statusbarpanel id=
"statusbar-text" label=
"" flex=
"1"/>