gecko-dev/toolkit/mozapps/update/content/updates.xul
2005-06-07 01:32:07 +00:00

142 lines
5.6 KiB
XML
Executable File

<?xml version="1.0"?>
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is The Update Wizard/Manager.
#
# The Initial Developer of the Original Code is Google Inc.
# Portions created by the Initial Developer are Copyright (C) 2005
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Ben Goodger <ben@mozilla.org>
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://mozapps/content/update/updates.css"?>
<!DOCTYPE wizard [
<!ENTITY % updateDTD SYSTEM "chrome://mozapps/locale/update/updates.dtd">
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
%updateDTD;
%brandDTD;
]>
<wizard id="updates"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="&updateWizard.title;"
windowtype="Update:Wizard" style="width: 36em;"
onwizardfinished="gUpdates.onFinish();"
onclose="return gUpdates.onClose();"
onload="gUpdates.onLoad();">
<script type="application/x-javascript" src="chrome://mozapps/content/update/updates.js"/>
<stringbundleset id="updateSet">
<stringbundle id="brandStrings" src="chrome://branding/locale/brand.properties"/>
<stringbundle id="updateStrings" src="chrome://mozapps/locale/update/updates.properties"/>
</stringbundleset>
<wizardpage id="checking" pageid="checking" next="updatesfound"
onpageshow="gCheckingPage.onPageShow();">
<vbox class="content" flex="1">
<label>&checking.label;</label>
<separator/>
<progressmeter id="checkingProgress" mode="undetermined"/>
<separator flex="1"/>
<hbox pack="end">
<button label="&cancel.label;" accesskey="&cancel.accesskey;"
oncommand="gCheckingPage.onClose();"/>
</hbox>
</vbox>
</wizardpage>
<wizardpage id="updatesfound" pageid="updatesfound" next="downloading"
onpageshow="gUpdatesAvailablePage.onPageShow();" flex="1">
<vbox id="update-info" flex="1">
<vbox id="update-info-inner" flex="1">
<hbox align="start">
<vbox flex="1">
<description id="updateType">
&updateAvailable.placeholder;
</description>
<label id="updateName" crop="right"/>
<description class="updateForMoreInfo">&forMoreInfo.label;
<link id="updateMoreInfoURL">&clickHere.label;</link>.
</description>
</vbox>
<image id="updateImage" src="chrome://branding/content/icon64.png"/>
</hbox>
<separator flex="1"/>
<hbox align="start" id="incompatibleWarning" hidden="true">
<image id="alertImage"/>
<vbox flex="1">
<description>&incompatible.warning;</description>
<hbox pack="end">
<button label="&listIncompatible.label;" accesskey="&listIncompatible.accesskey;"
oncommand="gUpdatesAvailablePage.showIncompatibleItems();"/>
</hbox>
</vbox>
</hbox>
<separator flex="1"/>
<description class="bold">&upgrade.evangelism;</description>
<separator/>
<hbox>
<button label="&later.label;" accesskey="&later.accesskey;"
oncommand="close();"/>
<separator flex="1"/>
<button id="download-button"
label="&download.label;" accesskey="&download.accesskey;"
oncommand="document.documentElement.advance()"/>
</hbox>
</vbox>
</vbox>
<!--
<hbox pack="end">
<resizer dir="bottomright"/>
</hbox>
-->
</wizardpage>
<wizardpage id="downloading" pageid="downloading"
onpageshow="gDownloadingPage.onPageShow();" flex="1">
<label id="downloadingIntro">&downloading.intro;</label>
<view id="updatesView" flex="1"
datasources="rdf:null" persist="last-selected"/>
<hbox id="downloadingFooter">
<checkbox id="showCompletedUpdates"
label="&showCompletedUpdates.label;" accesskey="&showCompletedUpdates.accesskey;"
oncommand="gDownloadingPage.showCompletedUpdatesChanged(event.target);"/>
<separator flex="1"/>
<button label="&close.label;" accesskey="&close.accesskey;" oncommand="close();"/>
</hbox>
</wizardpage>
</wizard>