home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 May / PCWorld_2003-05_cd.bin / Komunik / phoenix / chrome / browser.jar / content / browser / downloads / downloadPanel.xul < prev    next >
Extensible Markup Language  |  2002-11-09  |  4KB  |  96 lines

  1. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  2. <?xml-stylesheet href="chrome://browser/content/downloads/downloadmanager.css"?>
  3. <?xml-stylesheet href="chrome://browser/skin/downloads/downloadmanager.css"?>
  4.  
  5. <!DOCTYPE window [
  6. <!ENTITY % downloadManagerDTD SYSTEM "chrome://browser/locale/downloads/downloadmanager.dtd">
  7. %downloadManagerDTD;
  8. ]>
  9.  
  10. <page xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  11.       xmlns:nc="http://home.netscape.com/NC-rdf#"
  12.       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  13.       onload="Startup();" onunload="Shutdown();">
  14.       
  15.   <script type="application/x-javascript" src="chrome://browser/content/downloads/downloadPanel.js"/>
  16.   <script type="application/x-javascript" src="chrome://browser/content/contentAreaUtils.js"/>
  17.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  18.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  19.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  20.  
  21.   <commandset id="commandUpdate_Downloads"
  22.               commandupdater="true"
  23.               events="focus,list-select"
  24.               oncommandupdate="downloadViewController.onCommandUpdate()"/>
  25.   
  26.   <command id="cmd_properties"
  27.            oncommand="goDoCommand('cmd_properties');"/>
  28.   <command id="cmd_remove"
  29.            oncommand="goDoCommand('cmd_remove');"/>
  30.   <command id="cmd_openfile"
  31.            oncommand="goDoCommand('cmd_openfile');"/>
  32.   <command id="cmd_showinshell"
  33.            oncommand="goDoCommand('cmd_showinshell');"/>
  34.   
  35.   <keyset>
  36.     <key id="key_remove" keycode="VK_DELETE" command="cmd_remove"/>
  37.   </keyset>
  38.   
  39.   <popup id="downloadHistoryPopup" onpopupshowing="return buildContextMenu();">
  40.     <menuitem id="menuitem_launch" label="&cmd.openfile.label;" default="true"
  41.               accesskey="&cmd.openfile.accesskey;" command="cmd_openfile"/>
  42.     <menuitem id="menuitem_show" label="&cmd.show.label;" accesskey="&cmd.show.accesskey;"
  43.               command="cmd_showinshell"/>
  44.     <menuseparator id="menuseparator_launch"/>
  45.     <menuitem id="menuitem_remove" label="&cmd.remove.label;" accesskey="&cmd.remove.accesskey;"
  46.               command="cmd_remove"/>
  47.     <menuseparator id="menuseparator_properties"/>
  48.     <menuitem id="menuitem_properties" label="&cmd.properties.label;" accesskey="&cmd.properties.accesskey;"
  49.               command="cmd_properties"/>
  50.   </popup>
  51.  
  52.   <vbox flex="1">
  53.     <vbox id="downloadView" flex="3" style="overflow: auto;"
  54.           datasources="rdf:null" ref="NC:DownloadsRoot"
  55.           ondragdrop="nsDragAndDrop.drop(event, downloadDNDObserver);">
  56.       <template>
  57.         <rule nc:DownloadState="0" parsetype="Integer">
  58.             <download uri="rdf:*"
  59.                       image="moz-icon:rdf:http://home.netscape.com/NC-rdf#File"
  60.                       target="rdf:http://home.netscape.com/NC-rdf#Name"
  61.                       file="rdf:http://home.netscape.com/NC-rdf#File"/>
  62.         </rule>
  63.       </template>
  64.     </vbox>
  65.     <splitter id="download-splitter" style="min-height: 3px; height: 3px;"/>
  66.     <vbox flex="1">
  67.       <sidebarheader align="center">
  68.         <label value="&finishedDownloads.label;"/>
  69.       </sidebarheader>
  70.       <listbox id="downloadHistoryView" flex="1" class="plain" seltype="multiple"
  71.                 datasources="rdf:null" ref="NC:DownloadsRoot" flags="dont-test-empty"
  72.                 ondblclick="if (event.button == 0) goDoCommand('cmd_openfile');"
  73.                 onselect="onSelect(event);" context="downloadHistoryPopup">
  74.         <listcols>
  75.           <listcol id="Name" primary="true"
  76.                    label="&name.label;"
  77.                    width="3*" flex="3"
  78.                    persist="width"/>
  79.         </listcols>
  80.         <template>
  81.           <rule nc:DownloadState="1" parsetype="Integer">
  82.             <listitem uri="rdf:*">
  83.               <listrow>
  84.                 <listcell>
  85.                   <image src="moz-icon:rdf:http://home.netscape.com/NC-rdf#File"/>
  86.                   <label value="rdf:http://home.netscape.com/NC-rdf#Name"/>
  87.                 </listcell>
  88.               </listrow>
  89.             </listitem>
  90.           </rule>
  91.         </template>
  92.       </listbox>
  93.     </vbox>
  94.   </vbox>
  95. </page>
  96.