~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/xpfe/components/download-manager/resources/downloadmanager.xul

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
 
 
3
<!--
 
4
 
 
5
  The contents of this file are subject to the Netscape Public
 
6
  License Version 1.1 (the "License"); you may not use this file
 
7
  except in compliance with the License. You may obtain a copy of
 
8
  the License at http://www.mozilla.org/NPL/
 
9
 
 
10
  Software distributed under the License is distributed on an "AS
 
11
  IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 
12
  implied. See the License for the specific language governing
 
13
  rights and limitations under the License.
 
14
 
 
15
  The Original Code is mozilla.org code.
 
16
 
 
17
  The Initial Developer of the Original Code is Netscape
 
18
  Communications Corporation.  Portions created by Netscape are
 
19
  Copyright (C) 1998 Netscape Communications Corporation. All
 
20
  Rights Reserved.
 
21
 
 
22
  Contributor(s):
 
23
    Ben Goodger <ben@netscape.com> (Original Author)
 
24
    Blake Ross  <blaker@netscape.com>
 
25
    Jan Varga   <varga@nixcorp.com>
 
26
-->
 
27
 
 
28
<?xml-stylesheet href="chrome://communicator/skin/"?>
 
29
 
 
30
<!DOCTYPE window [
 
31
<!ENTITY % downloadManagerDTD SYSTEM "chrome://communicator/locale/downloadmanager/downloadmanager.dtd">
 
32
%downloadManagerDTD;
 
33
<!ENTITY % downloadProgressDTD SYSTEM "chrome://global/locale/nsProgressDialog.dtd" >
 
34
%downloadProgressDTD;
 
35
]>
 
36
 
 
37
<window id="downloadManager"
 
38
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
 
39
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 
40
        windowtype="Download:Manager"
 
41
        width="500" height="300" screenX="10" screenY="10"
 
42
        persist="width height screenX screenY"
 
43
        title="&downloadManager.title;"
 
44
        onload="DLManagerStartup();"
 
45
        onunload="DLManagerShutdown();">
 
46
 
 
47
  <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
 
48
 
 
49
  <script type="application/x-javascript" src="chrome://communicator/content/downloadmanager/downloadmanager.js"/>
 
50
 
 
51
  <stringbundleset id="stringbundleset">
 
52
    <stringbundle id="dlMgrBundle"
 
53
                  src="chrome://communicator/locale/downloadmanager/downloadmanager.properties"/>
 
54
    <stringbundle id="dlProgressDlgBundle"
 
55
                  src="chrome://global/locale/nsProgressDialog.properties"/>
 
56
  </stringbundleset>
 
57
  
 
58
  <data id="strings.confirmCancel">&confirmCancel;</data>
 
59
  <data id="strings.progressMsgNoRate">&progressMsgNoRate;</data>
 
60
  <data id="strings.rateMsg">&rateMsg;</data>
 
61
  <data id="strings.completeMsg">&completeMsg;</data>
 
62
  <data id="strings.percentMsg">&percentMsg;</data>
 
63
  <data id="strings.shortTimeFormat">&shortTimeFormat;</data>
 
64
  <data id="strings.longTimeFormat">&longTimeFormat;</data>
 
65
  <data id="strings.unknownTime">&unknownTime;</data>
 
66
  <data id="strings.pausedMsg">&pausedMsg;</data>
 
67
 
 
68
  <commandset id="commands">
 
69
    <commandset id="commandUpdate_Downloads"
 
70
                commandupdater="true"
 
71
                events="focus,tree-select"
 
72
                oncommandupdate="downloadViewController.onCommandUpdate()"/>
 
73
 
 
74
    <commandset id="downloadCommands">
 
75
      <command id="cmd_properties"
 
76
               oncommand="goDoCommand('cmd_properties');"/>
 
77
      <command id="cmd_pause"
 
78
               oncommand="goDoCommand('cmd_pause');"/>
 
79
      <command id="cmd_cancel"
 
80
               oncommand="goDoCommand('cmd_cancel');"/>
 
81
      <command id="cmd_remove"
 
82
               oncommand="goDoCommand('cmd_remove');"/>
 
83
      <command id="cmd_openfile"
 
84
               oncommand="goDoCommand('cmd_openfile');"/>
 
85
      <command id="cmd_showinshell"
 
86
               oncommand="goDoCommand('cmd_showinshell');"/>
 
87
    </commandset>
 
88
 
 
89
    <!-- File Menu -->
 
90
    <command id="cmd_newNavigator"/>
 
91
    <command id="cmd_close" oncommand="close()"/>
 
92
    <command id="cmd_quit"/>
 
93
 
 
94
  </commandset>
 
95
  
 
96
  <broadcasterset id="navBroadcasters"/>
 
97
 
 
98
  <keyset id="tasksKeys">
 
99
    <!-- File Menu -->
 
100
    <key id="key_newNavigator"/>
 
101
    <key id="key_close"/>
 
102
    <key id="key_quit"/>
 
103
 
 
104
    <!-- These keybindings do not have a command specified in the overlay,
 
105
         which is good, but we need to specify it ourselves here -->
 
106
    <key id="key_selectAll" command="cmd_selectAll"/>
 
107
 
 
108
    <key id="key_remove" keycode="VK_DELETE" command="cmd_remove"/>
 
109
 
 
110
    <key id="key_properties" key="&cmd.properties.keybinding;"
 
111
         command="cmd_properties" modifiers="accel"/>
 
112
  </keyset>
 
113
 
 
114
  <popup id="downloadPaneContext">
 
115
    <menuitem id="downloadPaneContext-properties"
 
116
              label="&cmd.properties.label;"
 
117
              accesskey="&cmd.properties.accesskey;"
 
118
              command="cmd_properties"/>
 
119
    <menuseparator id="downloadPaneContext-sep1"/>
 
120
    <menuitem id="downloadPaneContext-cancel"
 
121
              label="&cmd.cancel.label;"
 
122
              accesskey="&cmd.cancel.accesskey;"
 
123
              command="cmd_cancel"/>
 
124
    <menuitem id="downloadPaneContext-remove"
 
125
              label="&cmd.remove.label;"
 
126
              accesskey="&cmd.remove.accesskey;"
 
127
              command="cmd_remove"/>
 
128
    <menuseparator id="downloadPaneContext-sep2"/>
 
129
    <menuitem id="downloadPaneContext-openfile"
 
130
              label="&cmd.openfile.label;"
 
131
              accesskey="&cmd.openfile.accesskey;"
 
132
              command="cmd_openfile"/>
 
133
    <menuitem id="downloadPaneContext-showinshell"
 
134
              label="&cmd.showinshell.label;"
 
135
              accesskey="&cmd.showinshell.accesskey;"
 
136
              command="cmd_showinshell"/>
 
137
  </popup>
 
138
 
 
139
  <toolbox id="toolbox">
 
140
    <toolbar id="download-toolbar" tbalign="stretch" class="chromeclass-toolbar" persist="collapsed" grippytooltiptext="&dm.tooltip;">
 
141
      <toolbarbutton label="&cmd.properties.label;" accesskey="&cmd.properties.accesskey;"
 
142
                     command="cmd_properties"/>
 
143
      <toolbarseparator/>
 
144
      <toolbarbutton label="&cmd.cancel.label;" accesskey="&cmd.cancel.accesskey;"
 
145
                     command="cmd_cancel"/>
 
146
      <toolbarbutton label="&cmd.remove.label;" accesskey="&cmd.remove.accesskey;"
 
147
                     command="cmd_remove"/>
 
148
      <toolbarseparator/>
 
149
      <toolbarbutton id="btn_openfile" label="&cmd.openfile.label;" accesskey="&cmd.openfile.accesskey;"
 
150
                     command="cmd_openfile"/>
 
151
      <toolbarbutton id="btn_showinshell" label="&cmd.showinshell.label;" accesskey="&cmd.showinshell.accesskey;"
 
152
                     command="cmd_showinshell"/>
 
153
    </toolbar>
 
154
  </toolbox>
 
155
 
 
156
  <tree id="downloadView" flex="1" class="plain" context="downloadPaneContext"
 
157
            datasources="rdf:null" ref="NC:DownloadsRoot" flags="dont-test-empty"
 
158
            ondblclick="onDoubleClick();" enableColumnDrag="true"
 
159
            onselect="onSelect(event);">
 
160
    <treecols onclick="doSort(event.target)">
 
161
      <treecol id="Name" primary="true"
 
162
                   label="&view.header.name.label;"
 
163
                   class="sortDirectionIndicator" width="3*" flex="3"
 
164
                   resource="http://home.netscape.com/NC-rdf#Name"
 
165
                   persist="width sortActive sortDirection ordinal"/>
 
166
      <splitter class="tree-splitter"/>
 
167
      <treecol id="Progress" type="progressmeter"
 
168
                   label="&view.header.progress.label;"
 
169
                   class="sortDirectionIndicator" width="3*" flex="3"
 
170
                   resource="http://home.netscape.com/NC-rdf#ProgressPercent"
 
171
                   persist="width hidden sortActive sortDirection ordinal"/>
 
172
      <splitter class="tree-splitter"/>
 
173
      <treecol id="ProgressPercent" hidden="true"
 
174
                   label="&view.header.progresstext.label;"
 
175
                   class="sortDirectionIndicator" width="1*" flex="1"
 
176
                   resource="http://home.netscape.com/NC-rdf#ProgressPercent"
 
177
                   persist="width hidden sortActive sortDirection ordinal"/>
 
178
      <splitter class="tree-splitter"/>
 
179
      <treecol id="TimeRemaining"
 
180
                   label="&view.header.timeremaining.label;"
 
181
                   class="sortDirectionIndicator" width="1*" flex="1"
 
182
                   resource="http://home.netscape.com/NC-rdf#TimeRemaining"
 
183
                   persist="width hidden sortActive sortDirection ordinal"/>
 
184
      <splitter class="tree-splitter"/>
 
185
      <treecol id="Transferred"
 
186
                   label="&view.header.transferred.label;"
 
187
                   class="sortDirectionIndicator" width="1*" flex="1"
 
188
                   resource="http://home.netscape.com/NC-rdf#Transferred"
 
189
                   persist="width hidden sortActive sortDirection ordinal"/>
 
190
      <splitter class="tree-splitter"/>
 
191
      <treecol id="TransferRate"
 
192
                   label="&view.header.transferrate.label;"
 
193
                   class="sortDirectionIndicator" width="1*" flex="1"
 
194
                   resource="http://home.netscape.com/NC-rdf#TransferRate"
 
195
                   persist="width hidden sortActive sortDirection ordinal"/>
 
196
      <splitter class="tree-splitter"/>
 
197
      <treecol id="TimeElapsed" hidden="true"
 
198
                   label="&view.header.timeelapsed.label;"
 
199
                   class="sortDirectionIndicator" width="1*" flex="1"
 
200
                   resource="http://home.netscape.com/NC-rdf#TimeElapsed"
 
201
                   persist="width hidden sortActive sortDirection ordinal"/>
 
202
      <splitter class="tree-splitter"/>
 
203
      <treecol id="Source" hidden="true"
 
204
                   label="&view.header.source.label;"
 
205
                   class="sortDirectionIndicator" width="1*" flex="1"
 
206
                   resource="http://home.netscape.com/NC-rdf#URL"
 
207
                   persist="width hidden sortActive sortDirection ordinal"/>
 
208
    </treecols>
 
209
    <template>
 
210
      <rule>
 
211
        <treechildren>
 
212
          <treeitem uri="rdf:*">
 
213
            <treerow>
 
214
              <treecell src="moz-icon:rdf:http://home.netscape.com/NC-rdf#File"
 
215
                            label="rdf:http://home.netscape.com/NC-rdf#Name"/>
 
216
              <treecell mode="rdf:http://home.netscape.com/NC-rdf#ProgressMode"
 
217
                            value="rdf:http://home.netscape.com/NC-rdf#ProgressPercent"
 
218
                            label="rdf:http://home.netscape.com/NC-rdf#StatusText"/>
 
219
              <treecell label="rdf:http://home.netscape.com/NC-rdf#ProgressPercent"/>
 
220
              <treecell label="rdf:http://home.netscape.com/NC-rdf#TimeRemaining"/>
 
221
              <treecell label="rdf:http://home.netscape.com/NC-rdf#Transferred"/>
 
222
              <treecell label="rdf:http://home.netscape.com/NC-rdf#TransferRate"/>
 
223
              <treecell label="rdf:http://home.netscape.com/NC-rdf#TimeElapsed"/>
 
224
              <treecell label="rdf:http://home.netscape.com/NC-rdf#URL"/>
 
225
            </treerow>
 
226
          </treeitem>
 
227
        </treechildren>
 
228
      </rule>
 
229
    </template>
 
230
  </tree>
 
231
 
 
232
  <statusbar id="status-bar" class="chromeclass-status">
 
233
    <statusbarpanel id="statusbar-text" label="" flex="1"/>
 
234
  </statusbar>
 
235
 
 
236
</window>