home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / xulrunner-1.9.0.14 / chrome / toolkit.jar / content / mozapps / update / updates.xul < prev   
Encoding:
Extensible Markup Language  |  2008-02-13  |  7.6 KB  |  190 lines

  1. <?xml version="1.0"?>
  2.  
  3.  
  4. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  5. <?xml-stylesheet href="chrome://mozapps/content/update/updates.css"?>
  6. <?xml-stylesheet href="chrome://mozapps/skin/update/updates.css"?>
  7.  
  8. <!DOCTYPE wizard [
  9. <!ENTITY % updateDTD SYSTEM "chrome://mozapps/locale/update/updates.dtd">
  10. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
  11. %updateDTD;
  12. %brandDTD;
  13. ]>
  14.  
  15. <wizard id="updates"
  16.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  17.         title="&updateWizard.title;" 
  18.         label="" description=""
  19.         windowtype="Update:Wizard" style="width: &window.width;;"
  20.         onwizardfinish="gUpdates.onWizardFinish();"
  21.         onwizardcancel="gUpdates.onWizardCancel();"
  22.         onwizardnext="gUpdates.onWizardNext();"        
  23.         onload="gUpdates.onLoad();">
  24.  
  25.   <script type="application/javascript" src="chrome://mozapps/content/update/updates.js"/>
  26.   
  27.   <stringbundleset id="updateSet">
  28.     <stringbundle id="brandStrings" src="chrome://branding/locale/brand.properties"/>
  29.     <stringbundle id="updateStrings" src="chrome://mozapps/locale/update/updates.properties"/>
  30.   </stringbundleset>
  31.   
  32.   <wizardpage id="dummy" pageid="dummy" firstpage="true"/>
  33.  
  34.   <wizardpage id="checking" pageid="checking" next="updatesfound"
  35.               label="&checking.title;" object="gCheckingPage"
  36.               onpageshow="gCheckingPage.onPageShow();">
  37.     <label>&checking.label;</label>
  38.     <separator/>
  39.     <progressmeter id="checkingProgress" mode="undetermined"/>
  40.   </wizardpage>
  41.   
  42.   <wizardpage id="noupdatesfound" pageid="noupdatesfound"
  43.               label="&noupdatesfound.title;" object="gNoUpdatesPage"
  44.               onpageshow="gNoUpdatesPage.onPageShow();">
  45.     <label>&noupdatesfound.intro;</label>
  46.   </wizardpage>
  47.   
  48.   <!-- next is "downloading" by default, but could change to "license"
  49.        if we have a licenseURL on the update and this is a major update -->
  50.   <wizardpage id="updatesfound" pageid="updatesfound" next="downloading"
  51.               object="gUpdatesAvailablePage" label=""
  52.               onpageshow="gUpdatesAvailablePage.onPageShow();"
  53.               onextra1="gUpdates.later()"
  54.               onextra2="gUpdates.never()">
  55.     <description id="updateType"/>
  56.     <separator class="thin"/>
  57.     <label id="updateName" crop="right"/>
  58.     <separator id="updateNameSep" class="thin"/>
  59.     <description id="upgradeEvangelism">&upgrade.evangelism;</description>
  60.     <separator id="upgradeEvangelismSep" flex="1"/>
  61.     <deck id="detailsDeck" flex="1">
  62.       <vbox align="start">
  63.         <hbox align="start">
  64.           <image id="incompatibleCheckingThrobber"/>
  65.           <vbox flex="1">
  66.             <description>&incompatibleChecking.label;</description>
  67.           </vbox>
  68.         </hbox>
  69.       </vbox>
  70.       <vbox>
  71.         <vbox id="moreInfoContent" flex="1">
  72.           <!-- XXX hack sspitzer not a "license", but using this for the
  73.                display details of a major update (using a remote web page) -->
  74.           <!-- note, the localized properties for this are prefixed by 
  75.                the id.  examples:  updateMoreInfoContentNotFound
  76.                and updateMoreInfoContentDownloading -->
  77.           <license id="updateMoreInfoContent" flex="1"/>
  78.         </vbox>
  79.         <hbox align="start" id="incompatibleWarning" hidden="true">
  80.           <image id="alertImage"/>
  81.           <vbox flex="1">
  82.             <description>&incompatible.warning;</description>
  83.             <hbox pack="end">
  84.               <button label="&listIncompatible.label;" accesskey="&listIncompatible.accesskey;"
  85.                       oncommand="gUpdatesAvailablePage.showIncompatibleItems();"/>
  86.             </hbox>
  87.           </vbox>
  88.         </hbox>
  89.         <hbox id="moreInfoURL">
  90.           <label class="text-link" id="updateMoreInfoURL" 
  91.                  value="&clickHere.label;"/> 
  92.         </hbox>
  93.       </vbox>
  94.     </deck>
  95.   </wizardpage>
  96.   
  97.   <wizardpage id="license" pageid="license" next="downloading"
  98.               object="gLicensePage" label="&license.titleText;"
  99.               onpageshow="gLicensePage.onPageShow();">
  100.     <label>&license.instructionText;</label>
  101.     <separator class="thin"/>
  102.     <!-- note, the localized properties for this are prefixed by 
  103.          the id.  examples:  licenseContentNotFound
  104.          and licenseContentDownloading -->
  105.     <license id="licenseContent" flex="1"/>
  106.     <separator class="thin"/>
  107.     <radiogroup id="acceptDeclineLicense" 
  108.        onselect="gLicensePage.onAcceptDeclineRadio();">
  109.       <radio id="accept" label="&license.accept;" 
  110.              accesskey="&license.accept.accesskey;"/>
  111.       <radio id="decline" label="&license.decline;" 
  112.              accesskey="&license.decline.accesskey;"
  113.              selected="true"/>
  114.     </radiogroup>
  115.   </wizardpage>
  116.   
  117.   <wizardpage id="downloading" pageid="downloading" next="finished"
  118.               object="gDownloadingPage" label="&downloading.title;"
  119.               onpageshow="gDownloadingPage.onPageShow();">
  120.     <hbox pack="start">
  121.       <label id="downloadName" crop="right" flex="1">&downloading.intro;</label>
  122.       <label class="text-link" id="detailsLink" value="&details.link;"/>
  123.     </hbox>
  124.     <progressmeter id="downloadProgress" mode="undetermined"/>
  125.     <hbox id="downloadStatusLine">
  126.       <image id="downloadThrobber"/>
  127.       <description id="downloadStatus" flex="1">&connecting.label;</description>
  128.       <button id="pauseButton" oncommand="gDownloadingPage.onPause();" 
  129.               disabled="true" label="&pause.label;" accesskey="&pause.accesskey;"/>
  130.     </hbox>
  131.     <separator/>
  132.     <hbox id="verificationFailed" align="start" hidden="true">
  133.       <image id="verificationFailedIcon"/>
  134.       <description flex="1">&verificationFailedText.label;</description>
  135.     </hbox>
  136.   </wizardpage>
  137.   
  138.   <wizardpage id="errors" pageid="errors" object="gErrorsPage"
  139.               onpageshow="gErrorsPage.onPageShow();">
  140.     <label id="errorIntro">&error.label;</label>
  141.     <separator/>
  142.     <textbox class="plain" readonly="true" id="errorReason" multiline="true"
  143.              rows="3"/>
  144.     <separator/>
  145.     <label id="errorManual">&errorManual.label;</label>
  146.     <hbox>
  147.       <label class="text-link" id="errorLinkLabel"/>
  148.     </hbox>
  149.   </wizardpage>
  150.   
  151.   <wizardpage id="errorpatching" pageid="errorpatching" next="downloading"
  152.               label="&errorpatching.title;" object="gErrorsPage"
  153.               onpageshow="gErrorsPage.onPageShowPatching();">
  154.     <label>&errorpatching.intro;</label>
  155.   </wizardpage>
  156.   
  157.   <wizardpage id="finished" pageid="finished"
  158.               label="&finished.title;" object="gFinishedPage"
  159.               onpageshow="gFinishedPage.onPageShow();">
  160.     <label>&finished.text;</label>
  161.   </wizardpage>
  162.   
  163.   <wizardpage id="finishedBackground" pageid="finishedBackground"
  164.               label="&finishedBackground.title;" object="gFinishedPage"
  165.               onpageshow="gFinishedPage.onPageShowBackground();">
  166.     <label>&finishedBackground.text;</label>
  167.     <separator/>
  168.     <hbox align="center">
  169.       <label>&finishedBackground.name;</label>
  170.       <label id="updateFinishedName" flex="1" crop="right"/>
  171.       <label id="finishedBackgroundLink" class="text-link" value="&details.link;"/>
  172.     </hbox>
  173.     <spacer flex="1"/>
  174.     <label>&finishedBackground.more1;</label>
  175.     <separator class="thin"/>
  176.     <label>&finishedBackground.textNotNow;</label>
  177.   </wizardpage>
  178.   
  179.   <wizardpage id="installed" pageid="installed"
  180.               label="&installed.title;" object="gInstalledPage"
  181.               onpageshow="gInstalledPage.onPageShow();">
  182.     <label>&installed.intro;</label>
  183.     <separator/>
  184.     <hbox>
  185.       <label id="whatsnewLink" class="text-link" hidden="true" value="&whatsnew.label;"/>
  186.     </hbox>
  187.   </wizardpage>
  188.   
  189. </wizard>
  190.