summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/update/content/updates.xul
blob: e4cdc7a499071b45c5c450a0b0090aa61a8a4745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<?xml version="1.0"?>

<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://mozapps/content/update/updates.css"?>
<?xml-stylesheet href="chrome://mozapps/skin/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: auto; height: auto"
        onwizardfinish="gUpdates.onWizardFinish();"
        onwizardcancel="gUpdates.onWizardCancel();"
        onwizardnext="gUpdates.onWizardNext();"
        onload="gUpdates.onLoad();"
        onunload="gUpdates.onUnload();">

  <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
  <script type="application/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="dummy" pageid="dummy" firstpage="true"/>

  <wizardpage id="checking" pageid="checking" next="noupdatesfound"
              object="gCheckingPage" onpageshow="gCheckingPage.onPageShow();">
    <updateheader label="&checking.title;"/>
    <vbox class="update-content" flex="1">
      <label>&updateCheck.label;</label>
      <separator class="thin"/>
      <progressmeter id="checkingProgress" mode="undetermined"/>
    </vbox>
  </wizardpage>

  <wizardpage id="noupdatesfound" pageid="noupdatesfound"
              object="gNoUpdatesPage" onpageshow="gNoUpdatesPage.onPageShow();">
    <updateheader label="&noupdatesfound.title;"/>
    <vbox class="update-content" flex="1">
      <label id="noUpdatesAutoEnabled" hidden="true">&noupdatesautoenabled.intro;</label>
      <label id="noUpdatesAutoDisabled" hidden="true">&noupdatesautodisabled.intro;</label>
    </vbox>
  </wizardpage>

  <wizardpage id="manualUpdate" pageid="manualUpdate" object="gManualUpdatePage"
              onpageshow="gManualUpdatePage.onPageShow();">
    <updateheader label="&manualUpdate.title;"/>
    <vbox class="update-content" flex="1">
      <label id="manualUpdateDesc">&manualUpdate.desc;</label>
      <label id="manualUpdateSpaceDesc"
             hidden="true">&manualUpdate.space.desc;</label>
      <separator class="thin"/>
      <label>&manualUpdateGetMsg.label;</label>
      <hbox>
        <label class="text-link" id="manualUpdateLinkLabel" value=""
               onclick="openUpdateURL(event);"/>
      </hbox>
    </vbox>
  </wizardpage>

  <wizardpage id="unsupported" pageid="unsupported"
              object="gUnsupportedPage"
              onpageshow="gUnsupportedPage.onPageShow();">
    <updateheader label="&unsupported.title;"/>
    <vbox class="update-content" flex="1">
      <description flex="1">&unsupported.label;
        <label id="unsupportedLinkLabel" class="text-link inline-link" onclick="openUpdateURL(event);">
          &unsupportedLink.label;
        </label>
      </description>
    </vbox>
  </wizardpage>

  <wizardpage id="updatesfoundbasic" pageid="updatesfoundbasic"
              object="gUpdatesFoundBasicPage" next="downloading"
              onpageshow="gUpdatesFoundBasicPage.onPageShow();"
              onextra1="gUpdatesFoundBasicPage.onExtra1();"
              onextra2="gUpdatesFoundBasicPage.onExtra2();">
    <updateheader id="updatesFoundBasicHeader" label=""/>
    <vbox class="update-content" flex="1">
      <label id="updatesFoundInto"/>
      <separator class="thin"/>
      <label id="updateName" crop="right" value=""/>
      <separator id="updateNameSep" class="thin"/>
      <label id="upgradeEvangelism">&evangelism.desc;</label>
      <separator id="upgradeEvangelismSep" flex="1"/>
      <vbox flex="1">
        <hbox id="moreInfoURL">
          <label class="text-link" id="updateMoreInfoURL"
                 value="&clickHere.label;" onclick="openUpdateURL(event);"/>
        </hbox>
      </vbox>
    </vbox>
  </wizardpage>

  <wizardpage id="downloading" pageid="downloading"
              object="gDownloadingPage" onextra1="gDownloadingPage.onHide();"
              onpageshow="gDownloadingPage.onPageShow();">
    <updateheader label="&downloadPage.title;"/>
    <vbox class="update-content" flex="1">
      <hbox id="downloadStatusProgress">
        <progressmeter id="downloadProgress" mode="undetermined" flex="1"/>
        <button id="pauseButton" oncommand="gDownloadingPage.onPause();"
                paused="false"/>
      </hbox>
      <separator class="thin"/>
      <hbox id="downloadStatusLine">
        <label id="downloadStatus" flex="1">&connecting.label;</label>
      </hbox>
      <separator/>
      <hbox id="verificationFailed" align="start" hidden="true">
        <image id="verificationFailedIcon"/>
        <label flex="1">&verificationFailedText.label;</label>
      </hbox>
    </vbox>
  </wizardpage>

  <wizardpage id="errors" pageid="errors" object="gErrorsPage"
              onpageshow="gErrorsPage.onPageShow();">
    <updateheader label="&error.title;"/>
    <vbox class="update-content" flex="1">
      <label id="errorIntro">&error.label;</label>
      <separator/>
      <textbox class="plain" readonly="true" id="errorReason" multiline="true"
               rows="3"/>
      <separator/>
      <label id="errorManual">&errorManual.label;</label>
      <hbox>
        <label class="text-link" id="errorLinkLabel" value=""
               onclick="openUpdateURL(event);"/>
      </hbox>
    </vbox>
  </wizardpage>

  <wizardpage id="errorextra" pageid="errorextra"
              object="gErrorExtraPage"
              onpageshow="gErrorExtraPage.onPageShow();">
    <updateheader label="&error.title;"/>
    <vbox class="update-content" flex="1">
      <label id="bgErrorLabel">&genericBackgroundError.label;</label>
      <hbox>
        <label id="errorExtraLinkLabel" class="text-link"
               value="" onclick="openUpdateURL(event);"/>
      </hbox>
    </vbox>
  </wizardpage>

  <wizardpage id="errorpatching" pageid="errorpatching" next="downloading"
              object="gErrorPatchingPage"
              onpageshow="gErrorPatchingPage.onPageShow();">
    <updateheader label="&error.title;"/>
    <vbox class="update-content" flex="1">
      <label>&errorpatching.intro;</label>
    </vbox>
  </wizardpage>

  <wizardpage id="finished" pageid="finished" object="gFinishedPage"
              onpageshow="gFinishedPage.onPageShow();"
              onextra1="gFinishedPage.onExtra1()">
    <updateheader label="&finishedPage.title;"/>
    <vbox class="update-content" flex="1">
      <label>&finishedPage.text;</label>
    </vbox>
  </wizardpage>

  <wizardpage id="finishedBackground" pageid="finishedBackground"
              object="gFinishedPage" onextra1="gFinishedPage.onExtra1()"
              onextra2="gFinishedPage.onExtra2()"
              onpageshow="gFinishedPage.onPageShowBackground();">
    <updateheader label="&finishedPage.title;"/>
    <vbox class="update-content" flex="1">
      <label>&finishedBackgroundPage.text;</label>
      <separator/>
      <hbox align="center">
        <label>&finishedBackground.name;</label>
        <label id="updateFinishedName" flex="1" crop="right" value=""/>
        <label id="finishedBackgroundLink" class="text-link" disabled="true"
               value="&details.link;" onclick="openUpdateURL(event);"/>
      </hbox>
      <spacer flex="1"/>
      <label id="finishedBackgroundMore">&finishedBackground.more;</label>
      <label id="finishedBackgroundMoreElevated"
             hidden="true">&finishedBackground.moreElevated;</label>
      <label id="finishedBackgroundMoreElevatedLink"
             hidden="true">&errorManual.label;</label>
      <hbox>
        <label class="text-link" id="finishedBackgroundMoreElevatedLinkLabel"
               value="" onclick="openUpdateURL(event);" hidden="true"/>
      </hbox>
    </vbox>
  </wizardpage>

</wizard>