downloadsPanel.inc.xhtml 8.14 KB
Newer Older
1
2
3
4
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

5

6
7
8
9
10
11
12
13
14
15
16
17
18
<commandset>
  <command id="downloadsCmd_doDefault"
           oncommand="goDoCommand('downloadsCmd_doDefault')"/>
  <command id="downloadsCmd_pauseResume"
           oncommand="goDoCommand('downloadsCmd_pauseResume')"/>
  <command id="downloadsCmd_cancel"
           oncommand="goDoCommand('downloadsCmd_cancel')"/>
  <command id="downloadsCmd_unblock"
           oncommand="goDoCommand('downloadsCmd_unblock')"/>
  <command id="downloadsCmd_chooseUnblock"
           oncommand="goDoCommand('downloadsCmd_chooseUnblock')"/>
  <command id="downloadsCmd_unblockAndOpen"
           oncommand="goDoCommand('downloadsCmd_unblockAndOpen')"/>
19
20
  <command id="downloadsCmd_unblockAndSave"
           oncommand="goDoCommand('downloadsCmd_unblockAndSave')"/>
21
22
23
24
  <command id="downloadsCmd_confirmBlock"
           oncommand="goDoCommand('downloadsCmd_confirmBlock')"/>
  <command id="downloadsCmd_open"
           oncommand="goDoCommand('downloadsCmd_open')"/>
25
26
27
28
29
30
31
32
  <command id="downloadsCmd_open:current"
           oncommand="goDoCommand('downloadsCmd_open:current')"/>
  <command id="downloadsCmd_open:tab"
           oncommand="goDoCommand('downloadsCmd_open:tab')"/>
  <command id="downloadsCmd_open:tabshifted"
           oncommand="goDoCommand('downloadsCmd_open:tabshifted')"/>
  <command id="downloadsCmd_open:window"
           oncommand="goDoCommand('downloadsCmd_open:window')"/>
33
34
35
36
37
38
39
40
41
42
  <command id="downloadsCmd_show"
           oncommand="goDoCommand('downloadsCmd_show')"/>
  <command id="downloadsCmd_retry"
           oncommand="goDoCommand('downloadsCmd_retry')"/>
  <command id="downloadsCmd_openReferrer"
           oncommand="goDoCommand('downloadsCmd_openReferrer')"/>
  <command id="downloadsCmd_copyLocation"
           oncommand="goDoCommand('downloadsCmd_copyLocation')"/>
  <command id="downloadsCmd_clearList"
           oncommand="goDoCommand('downloadsCmd_clearList')"/>
43
44
45
46
  <command id="downloadsCmd_openInSystemViewer"
           oncommand="goDoCommand('downloadsCmd_openInSystemViewer')"/>
  <command id="downloadsCmd_alwaysOpenInSystemViewer"
           oncommand="goDoCommand('downloadsCmd_alwaysOpenInSystemViewer')"/>
47
48
</commandset>

49
50
<!-- For accessibility to screen readers, we use a label on the panel instead
  of the anchor because the panel can also be displayed without an anchor. -->
51
<panel id="downloadsPanel"
52
       data-l10n-id="downloads-panel"
53
       class="panel-no-padding"
54
55
56
57
58
59
       role="group"
       type="arrow"
       orient="vertical"
       onpopupshown="DownloadsPanel.onPopupShown(event);"
       onpopuphidden="DownloadsPanel.onPopupHidden(event);"
       hidden="true">
60
61
62
63
64

  <linkset>
    <html:link rel="localization" href="browser/downloads.ftl" />
  </linkset>

65
66
67
68
69
70
71
  <!-- The following popup menu should be a child of the panel element,
       otherwise flickering may occur when the cursor is moved over the area
       of a disabled menu item that overlaps the panel.  See bug 492960. -->
  <menupopup id="downloadsContextMenu"
             class="download-state">
    <menuitem command="downloadsCmd_pauseResume"
              class="downloadPauseMenuItem"
72
              data-l10n-id="downloads-cmd-pause"/>
73
74
    <menuitem command="downloadsCmd_pauseResume"
              class="downloadResumeMenuItem"
75
              data-l10n-id="downloads-cmd-resume"/>
76
77
    <menuitem command="downloadsCmd_unblock"
              class="downloadUnblockMenuItem"
78
              data-l10n-id="downloads-cmd-unblock"/>
79
80
81
82
83
84
85
    <menuitem command="downloadsCmd_openInSystemViewer"
              class="downloadUseSystemDefaultMenuItem"
              data-l10n-id="downloads-cmd-use-system-default"/>
    <menuitem command="downloadsCmd_alwaysOpenInSystemViewer"
              type="checkbox"
              class="downloadAlwaysUseSystemDefaultMenuItem"
              data-l10n-id="downloads-cmd-always-use-system-default"/>
86
87
    <menuitem command="downloadsCmd_show"
              class="downloadShowMenuItem"
88
89
90
91
92
  #ifdef XP_MACOSX
              data-l10n-id="downloads-cmd-show-menuitem-mac"
  #else
              data-l10n-id="downloads-cmd-show-menuitem"
  #endif
93
94
95
96
97
              />

    <menuseparator class="downloadCommandsSeparator"/>

    <menuitem command="downloadsCmd_openReferrer"
98
              data-l10n-id="downloads-cmd-go-to-download-page"/>
99
    <menuitem command="downloadsCmd_copyLocation"
100
              data-l10n-id="downloads-cmd-copy-download-link"/>
101
102
103
104
105

    <menuseparator/>

    <menuitem command="cmd_delete"
              class="downloadRemoveFromHistoryMenuItem"
106
              data-l10n-id="downloads-cmd-remove-from-history"/>
107
    <menuitem command="downloadsCmd_clearList"
108
              data-l10n-id="downloads-cmd-clear-list"/>
109
110
    <menuitem command="downloadsCmd_clearDownloads"
              hidden="true"
111
              data-l10n-id="downloads-cmd-clear-downloads"/>
112
113
114
115
116
117
118
119
  </menupopup>

  <panelmultiview id="downloadsPanel-multiView"
                  mainViewId="downloadsPanel-mainView">

    <panelview id="downloadsPanel-mainView">
      <vbox class="panel-view-body-unscrollable">
        <richlistbox id="downloadsListBox"
120
                     data-l10n-id="downloads-panel-items"
121
                     data-l10n-attrs="style"
122
123
124
125
126
127
                     context="downloadsContextMenu"
                     onmouseover="DownloadsView.onDownloadMouseOver(event);"
                     onmouseout="DownloadsView.onDownloadMouseOut(event);"
                     oncontextmenu="DownloadsView.onDownloadContextMenu(event);"
                     ondragstart="DownloadsView.onDownloadDragStart(event);"/>
        <description id="emptyDownloads"
128
                     data-l10n-id="downloads-panel-empty"/>
129
      </vbox>
130
      <vbox id="downloadsFooter">
131
132
133
134
135
136
137
138
        <stack>
          <hbox id="downloadsSummary"
                align="center"
                orient="horizontal"
                onkeydown="DownloadsSummary.onKeyDown(event);"
                onclick="DownloadsSummary.onClick(event);">
            <image class="downloadTypeIcon" />
            <vbox pack="center"
139
140
141
142
                  flex="1"
                  class="downloadContainer">
              <description id="downloadsSummaryDescription"/>
              <html:progress id="downloadsSummaryProgress"
143
                             class="downloadProgress"
144
                             max="100"/>
145
146
147
148
              <description id="downloadsSummaryDetails"
                           crop="end"/>
            </vbox>
          </hbox>
149
150
          <vbox id="downloadsFooterButtons">
            <toolbarseparator />
151
            <button id="downloadsHistory"
152
                    data-l10n-id="downloads-history"
153
                    class="downloadsPanelFooterButton subviewbutton panel-subview-footer-button toolbarbutton-1"
154
155
156
                    flex="1"
                    oncommand="DownloadsPanel.showDownloadsHistory();"
                    pack="start"/>
157
          </vbox>
158
159
160
161
162
        </stack>
      </vbox>
    </panelview>

    <panelview id="downloadsPanel-blockedSubview"
163
               data-l10n-id="downloads-details"
164
               descriptionheightworkaround="true"
165
               class="PanelUI-subView">
166
      <vbox class="panel-view-body-unscrollable">
167
168
169
170
        <hbox class="downloadsPanel-blockedSubview-title-box">
          <description id="downloadsPanel-blockedSubview-title"/>
          <image class="downloadsPanel-blockedSubview-image"/>
        </hbox>
171
172
173
174
        <description id="downloadsPanel-blockedSubview-details1"/>
        <description id="downloadsPanel-blockedSubview-details2"/>
      </vbox>
      <hbox id="downloadsPanel-blockedSubview-buttons"
175
            class="panel-footer"
176
            align="stretch">
177
        <button id="downloadsPanel-blockedSubview-unblockButton"
178
179
180
181
182
183
184
185
186
187
188
189
190
                class="downloadsPanelFooterButton"
                command="downloadsCmd_unblockAndOpen"
                flex="1"/>
        <button id="downloadsPanel-blockedSubview-deleteButton"
                class="downloadsPanelFooterButton"
                oncommand="DownloadsBlockedSubview.confirmBlock();"
                default="true"
                flex="1"/>
      </hbox>
    </panelview>
  </panelmultiview>

</panel>