home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-macos9-1.3.1.sea.bin / Mozilla1.3.1 / Chrome / comm.jar / content / communicator / downloadmanager / downloadmanager.xul < prev   
Extensible Markup Language  |  2003-06-08  |  9KB  |  211 lines

  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@utcru.sk>
  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.   <toolbox id="toolbox">
  115.     <toolbar id="download-toolbar" tbalign="stretch" class="chromeclass-toolbar" persist="collapsed" grippytooltiptext="&dm.tooltip;">
  116.       <toolbarbutton label="&cmd.properties.label;" accesskey="&cmd.properties.accesskey;"
  117.                      command="cmd_properties"/>
  118.       <toolbarseparator/>
  119.       <toolbarbutton label="&cmd.cancel.label;" accesskey="&cmd.cancel.accesskey;"
  120.                      command="cmd_cancel"/>
  121.       <toolbarbutton label="&cmd.remove.label;" accesskey="&cmd.remove.accesskey;"
  122.                      command="cmd_remove"/>
  123.       <toolbarseparator/>
  124.       <toolbarbutton id="btn_openfile" label="&cmd.openfile.label;" accesskey="&cmd.openfile.accesskey;"
  125.                      command="cmd_openfile"/>
  126.       <toolbarbutton id="btn_showinshell" command="cmd_showinshell"/>
  127.     </toolbar>
  128.   </toolbox>
  129.  
  130.   <tree id="downloadView" flex="1" class="plain"
  131.             datasources="rdf:null" ref="NC:DownloadsRoot" flags="dont-test-empty"
  132.             ondblclick="return goDoCommand('cmd_properties');" enableColumnDrag="true"
  133.             onselect="onSelect(event);">
  134.     <treecols onclick="doSort(event.target)">
  135.       <treecol id="Name" primary="true"
  136.                    label="&view.header.name.label;"
  137.                    class="sortDirectionIndicator" width="3*" flex="3"
  138.                    resource="http://home.netscape.com/NC-rdf#Name"
  139.                    persist="width sortActive sortDirection ordinal"/>
  140.       <splitter class="tree-splitter"/>
  141.       <treecol id="Progress" type="progressmeter"
  142.                    label="&view.header.progress.label;"
  143.                    class="sortDirectionIndicator" width="3*" flex="3"
  144.                    resource="http://home.netscape.com/NC-rdf#ProgressPercent"
  145.                    persist="width hidden sortActive sortDirection ordinal"/>
  146.       <splitter class="tree-splitter"/>
  147.       <treecol id="ProgressPercent" hidden="true"
  148.                    label="&view.header.progresstext.label;"
  149.                    class="sortDirectionIndicator" width="1*" flex="1"
  150.                    resource="http://home.netscape.com/NC-rdf#ProgressPercent"
  151.                    persist="width hidden sortActive sortDirection ordinal"/>
  152.       <splitter class="tree-splitter"/>
  153.       <treecol id="TimeRemaining"
  154.                    label="&view.header.timeremaining.label;"
  155.                    class="sortDirectionIndicator" width="1*" flex="1"
  156.                    resource="http://home.netscape.com/NC-rdf#TimeRemaining"
  157.                    persist="width hidden sortActive sortDirection ordinal"/>
  158.       <splitter class="tree-splitter"/>
  159.       <treecol id="Transferred"
  160.                    label="&view.header.transferred.label;"
  161.                    class="sortDirectionIndicator" width="1*" flex="1"
  162.                    resource="http://home.netscape.com/NC-rdf#Transferred"
  163.                    persist="width hidden sortActive sortDirection ordinal"/>
  164.       <splitter class="tree-splitter"/>
  165.       <treecol id="TransferRate"
  166.                    label="&view.header.transferrate.label;"
  167.                    class="sortDirectionIndicator" width="1*" flex="1"
  168.                    resource="http://home.netscape.com/NC-rdf#TransferRate"
  169.                    persist="width hidden sortActive sortDirection ordinal"/>
  170.       <splitter class="tree-splitter"/>
  171.       <treecol id="TimeElapsed" hidden="true"
  172.                    label="&view.header.timeelapsed.label;"
  173.                    class="sortDirectionIndicator" width="1*" flex="1"
  174.                    resource="http://home.netscape.com/NC-rdf#TimeElapsed"
  175.                    persist="width hidden sortActive sortDirection ordinal"/>
  176.       <splitter class="tree-splitter"/>
  177.       <treecol id="Source" hidden="true"
  178.                    label="&view.header.source.label;"
  179.                    class="sortDirectionIndicator" width="1*" flex="1"
  180.                    resource="http://home.netscape.com/NC-rdf#URL"
  181.                    persist="width hidden sortActive sortDirection ordinal"/>
  182.     </treecols>
  183.     <template>
  184.       <rule>
  185.         <treechildren>
  186.           <treeitem uri="rdf:*">
  187.             <treerow>
  188.               <treecell src="moz-icon:rdf:http://home.netscape.com/NC-rdf#File"
  189.                             label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  190.               <treecell mode="rdf:http://home.netscape.com/NC-rdf#ProgressMode"
  191.                             value="rdf:http://home.netscape.com/NC-rdf#ProgressPercent"
  192.                             label="rdf:http://home.netscape.com/NC-rdf#StatusText"/>
  193.               <treecell label="rdf:http://home.netscape.com/NC-rdf#ProgressPercent"/>
  194.               <treecell label="rdf:http://home.netscape.com/NC-rdf#TimeRemaining"/>
  195.               <treecell label="rdf:http://home.netscape.com/NC-rdf#Transferred"/>
  196.               <treecell label="rdf:http://home.netscape.com/NC-rdf#TransferRate"/>
  197.               <treecell label="rdf:http://home.netscape.com/NC-rdf#TimeElapsed"/>
  198.               <treecell label="rdf:http://home.netscape.com/NC-rdf#URL"/>
  199.             </treerow>
  200.           </treeitem>
  201.         </treechildren>
  202.       </rule>
  203.     </template>
  204.   </tree>
  205.  
  206.   <statusbar id="status-bar" class="chromeclass-status">
  207.     <statusbarpanel id="statusbar-text" label="" flex="1"/>
  208.   </statusbar>
  209.  
  210. </window>
  211.