home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 October / Gamestar_77_2005-10_dvd.iso / Programy / nsb-install-8-0.exe / chrome / toolkit.jar / content / mozapps / downloads / downloads.xul < prev    next >
Extensible Markup Language  |  2005-07-29  |  7KB  |  148 lines

  1. <?xml version="1.0"?>
  2.  
  3.  
  4.  
  5. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  6. <?xml-stylesheet href="chrome://mozapps/content/downloads/downloads.css"?>
  7. <?xml-stylesheet href="chrome://mozapps/skin/downloads/downloads.css"?>
  8.  
  9. <!DOCTYPE window [
  10. <!ENTITY % downloadManagerDTD SYSTEM "chrome://mozapps/locale/downloads/downloads.dtd">
  11. %downloadManagerDTD;
  12. ]>
  13.  
  14. <window xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  15.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  16.         id="downloadManager" windowtype="Download:Manager"
  17.         orient="vertical" title="&downloads.title;" statictitle="&downloads.title;"
  18.         width="400" height="300" screenX="10" screenY="10"
  19.         persist="width height screenX screenY sizeMode"
  20.         onload="Startup();" onunload="Shutdown();"
  21.         onclose="return closeWindow(false);">
  22.       
  23.   <script type="application/x-javascript" src="chrome://mozapps/content/downloads/DownloadProgressListener.js"/>
  24.   <script type="application/x-javascript" src="chrome://mozapps/content/downloads/downloads.js"/>
  25.   <script type="application/x-javascript" src="chrome://browser/content/contentAreaUtils.js"/>
  26.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  27.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  28.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  29.   
  30.   <stringbundleset id="downloadSet">
  31.     <stringbundle id="brandStrings" src="chrome://global/locale/brand.properties"/>
  32.     <stringbundle id="downloadStrings" src="chrome://mozapps/locale/downloads/downloads.properties"/>
  33.   </stringbundleset>
  34.  
  35.   <commandset id="downloadsCommands"
  36.               commandupdater="true"
  37.               oncommandupdate="gDownloadViewController.onCommandUpdate();">
  38.     <command id="cmd_cleanUp" oncommand="gDownloadViewController.doCommand('cmd_cleanUp');"/>
  39.   </commandset>
  40.     
  41.   <keyset id="downloadKeys">
  42.     <key id="key_cleanUp" keycode="VK_DELETE" command="cmd_cleanUp" modifiers="accel,shift"/>
  43.     <key id="key_close"   key="&cmd.close.commandKey;"  oncommand="closeWindow(true);"    modifiers="accel"/>
  44.     <key id="key_close2"  key="&cmd.close2.commandKey;" oncommand="closeWindow(true);" modifiers="accel"/>
  45.     <key                  keycode="VK_ESCAPE"           oncommand="closeWindow(true);"/>
  46.     <key id="key_info"    key="&cmd.info.commandKey;"   oncommand="onDownloadShowInfo();" modifiers="accel"/>
  47.   </keyset>
  48.   
  49.   <vbox id="contextMenuPalette" hidden="true">
  50.     <menuitem id="menuitem_pause" 
  51.               label="&cmd.pause.label;" accesskey="&cmd.pause.accesskey;"
  52.               oncommand="fireEventForElement(gDownloadsView.selected, 'pause');"/>
  53.     <menuitem id="menuitem_resume" 
  54.               label="&cmd.resume.label;" accesskey="&cmd.resume.accesskey;"
  55.               oncommand="fireEventForElement(gDownloadsView.selected, 'resume');"/>
  56.     <menuitem id="menuitem_cancel" 
  57.               label="&cmd.cancel.label;" accesskey="&cmd.cancel.accesskey;"
  58.               oncommand="fireEventForElement(gDownloadsView.selected, 'cancel');"/>
  59.  
  60.     <menuitem id="menuitem_open" default="true"
  61.               label="&cmd.open.label;" accesskey="&cmd.open.accesskey;"
  62.               oncommand="fireEventForElement(gDownloadsView.selected, 'open');"/>
  63.     <menuitem id="menuitem_openWith" 
  64.               label="&cmd.openWith.label;" accesskey="&cmd.openWith.accesskey;"
  65.               oncommand="fireEventForElement(gDownloadsView.selected, 'openWith');"/>
  66.     <menuitem id="menuitem_show" 
  67.               label="&cmd.show.label;" accesskey="&cmd.show.accesskey;"
  68.               oncommand="fireEventForElement(gDownloadsView.selected, 'show');"/>
  69.  
  70.     <menuitem id="menuitem_retry" default="true"
  71.               label="&cmd.retry.label;" accesskey="&cmd.retry.accesskey;"
  72.               oncommand="fireEventForElement(gDownloadsView.selected, 'retry');"/>
  73.  
  74.     <menuitem id="menuitem_remove"
  75.               label="&cmd.remove.label;" accesskey="&cmd.remove.accesskey;"
  76.               oncommand="fireEventForElement(gDownloadsView.selected, 'remove');"/>
  77.               
  78.     <menuseparator id="menuseparator_properties"/>              
  79.     <menuitem id="menuitem_properties" 
  80.               label="&cmd.properties.label;" accesskey="&cmd.properties.accesskey;"
  81.               oncommand="fireEventForElement(gDownloadsView.selected, 'properties');"/>
  82.   </vbox>
  83.   
  84.   <popup id="downloadContextMenu" onpopupshowing="return buildContextMenu(event);"/>
  85.  
  86.   <vbox id="downloadView" flex="1" style="overflow: auto;"
  87.         datasources="rdf:null" ref="NC:DownloadsRoot"
  88.         ondragover="nsDragAndDrop.dragOver(event, gDownloadDNDObserver);"
  89.         ondragdrop="nsDragAndDrop.drop(event, gDownloadDNDObserver);">
  90.     <template>
  91.       <rule>
  92.         <conditions>
  93.           <content uri="?uri"/>
  94.           <member container="?uri" child="?download"/>
  95.           <triple subject="?download"
  96.                   predicate="http://home.netscape.com/NC-rdf#File"
  97.                   object="?file"/>
  98.           <triple subject="?download"   
  99.                   predicate="http://home.netscape.com/NC-rdf#Name"
  100.                   object="?target"/>
  101.           <triple subject="?download"   
  102.                   predicate="http://home.netscape.com/NC-rdf#DownloadState"
  103.                   object="?state"/>
  104.         </conditions>
  105.         <bindings>
  106.           <binding subject="?download"
  107.                   predicate="http://home.netscape.com/NC-rdf#DownloadAnimated"
  108.                   object="?animated"/>
  109.           <binding subject="?download"
  110.                   predicate="http://home.netscape.com/NC-rdf#DownloadStatus"
  111.                   object="?status"/>
  112.           <binding subject="?download"
  113.                   predicate="http://home.netscape.com/NC-rdf#ProgressPercent"
  114.                   object="?progress-percent"/>
  115.           <binding subject="?download"
  116.                   predicate="http://home.netscape.com/NC-rdf#IconURL"
  117.                   object="?icon"/>
  118.         </bindings>            
  119.         <action>
  120.           <download uri="?download" context="downloadContextMenu"
  121.                     image="?icon" file="?file" target="?target" state="?state"
  122.                     animated="?animated" status="?status" progress="?progress-percent"/>
  123.         </action>
  124.       </rule>
  125.     </template>
  126.   </vbox> 
  127.   
  128.   <hbox>
  129.     <hbox id="commandBar" flex="1">
  130.       <hbox align="center" flex="1" id="autodownloadInfo">
  131.         <label>&filesSavedTo.label;</label>
  132.         <toolbarbutton id="saveToFolder" crop="right" flex="1"
  133.                        oncommand="onDownloadShowFolder();"
  134.                        tooltiptext="&showFolder.label;"/>
  135.       </hbox> 
  136.       <spring id="autodownloadSpring" hidden="true" flex="1"/>
  137.       <separator id="commandBarSeparator"/> 
  138.       <button id="cleanUpButton" 
  139.               label="&cmd.cleanUp.label;" accesskey="&cmd.cleanUp.accesskey;" tooltiptext="&cmd.cleanUp.tooltip;" 
  140.               command="cmd_cleanUp"/>
  141.     </hbox>
  142.     
  143.     <resizer id="windowResizer" dir="bottomright"/>
  144.   </hbox>  
  145.  
  146. </window>
  147.  
  148.