home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 May / PCWorld_2003-05_cd.bin / Komunik / phoenix / chrome / toolkit.jar / content / global / nsProgressDlg.xul < prev    next >
Extensible Markup Language  |  2002-01-31  |  5KB  |  136 lines

  1. <?xml version="1.0"?> 
  2.  
  3.  <!-- -*- Mode: HTML -*- -->
  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 Communicator client code, released
  16. March 31, 1998.
  17.  
  18. The Initial Developer of the Original Code is Netscape
  19. Communications Corporation. Portions created by Netscape are
  20. Copyright (C) 1998-2000 Netscape Communications Corporation. All
  21. Rights Reserved.
  22.  
  23. Contributor(s):
  24.   Scott MacGregor <mscott@netscape.com>
  25.  
  26.  -->
  27.  
  28.  
  29. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  30. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
  31.  
  32. <!DOCTYPE window SYSTEM "chrome://global/locale/downloadProgress.dtd">
  33.  
  34. <window 
  35.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  36.         class="dialog"
  37.         title="&downloadWindow.title;"
  38.         onload="onLoad()"
  39.         onclose="onCancel()"
  40.         onunload="onUnload()">
  41.  
  42.     <script type="application/x-javascript" src="chrome://global/content/nsProgressDlg.js"/>
  43.  
  44.     <!-- This is non-visible content that simply adds translatable string
  45.          into the document so that it is accessible to JS code.
  46.          
  47.          XXX-TODO: 
  48.           convert to use string bundles. 
  49.     -->
  50.   
  51.     <data id="dialog.strings.confirmCancel">&confirmCancel;</data>
  52.     <data id="dialog.strings.close">&close;</data>
  53.     <data id="dialog.strings.progressMsg">&progressMsg;</data>
  54.     <data id="dialog.strings.completeMsg">&completeMsg;</data>
  55.     <data id="dialog.strings.percentMsg">&percentMsg;</data>
  56.     <data id="dialog.strings.shortTimeFormat">&shortTimeFormat;</data>
  57.     <data id="dialog.strings.longTimeFormat">&longTimeFormat;</data>
  58.     <data id="dialog.strings.unknownTime">&unknownTime;</data>
  59.     <data id="dialog.strings.pausedMsg">&pausedMsg;</data>
  60.     <data id="dialog.strings.filesFolder">&filesFolder;</data>
  61.  
  62.     <grid flex="1">
  63.       <columns>
  64.         <column/>
  65.         <column flex="1"/>
  66.       </columns>
  67.       
  68.       <rows>
  69.         <row>
  70.           <hbox align="center" pack="end">
  71.             <label value="&location;"/>
  72.           </hbox>
  73.           <textbox id="dialog.location" class="scrollfield" readonly="" flex="1"/>
  74.         </row>
  75.         <separator class="thin"/>
  76.         <row>
  77.           <hbox align="center" pack="end">
  78.             <label value="&saving;"/>
  79.           </hbox>
  80.           <textbox id="dialog.fileName" class="scrollfield" readonly="" flex="1"/>
  81.         </row>
  82.         <separator class="thin"/>
  83.         <row>
  84.           <hbox align="center" pack="end">
  85.             <label value="&status;"/>
  86.           </hbox>
  87.           <label id="dialog.status" value=" " flex="1"/>
  88.         </row>
  89.         <separator class="thin"/>
  90.         <row>
  91.           <hbox align="center" pack="end">
  92.             <label value="&timeLeft;"/>
  93.           </hbox>
  94.           <label id="dialog.timeLeft" value=" "/>
  95.         </row>
  96.         <separator class="thin"/>
  97.         <row>
  98.           <hbox align="center" pack="end">
  99.             <label value="&timeElapsed;"/>
  100.           </hbox>
  101.           <label id="dialog.timeElapsed" value=" "/>
  102.         </row>
  103.         <separator class="thin"/>
  104.         <row>             
  105.           <hbox align="center" pack="end">
  106.             <label value="&progress;"/>
  107.           </hbox>
  108.           <progressmeter id="dialog.progress" mode="normal" value="0"/>
  109.           <hbox align="center" pack="end">
  110.             <label id="dialog.progressText" value=" "/>
  111.           </hbox>
  112.         </row>
  113.         <separator/>
  114.       </rows>
  115.     </grid>
  116.     <hbox align="center">
  117.       <checkbox id="keepProgressDialogUp" label="&keepProgressDialogUpMsg.label;"/>
  118.     </hbox>
  119.  
  120.     
  121.     <separator/>
  122.     
  123.     <hbox id="CancelButton">
  124.       <button id="cancel" label="&dialogCancel.label;" oncommand="doCancelButton()"/>
  125.       <deck id="pauseResumeDeck">
  126.         <spacer/>
  127.         <button id="pause"  label="&pauseButtonText;"  oncommand="doPauseButton()"/>
  128.         <button id="resume" label="&resumeButtonText;" oncommand="doPauseButton()"/>
  129.       </deck>
  130.       <spacer flex="1"/>
  131.       <button id="open" label="&open.label;" disabled="true" oncommand="doOpen()"/>
  132.       <button id="openFolder" label="&openFolder.label;" disabled="true" oncommand="doOpenFolder()"/>      
  133.     </hbox>
  134.  
  135. </window>
  136.