summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/webextensions/content/update.xul
blob: 74598381456b13ee4a1c82ce222e71624e7403ef (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
<?xml version="1.0"?>

# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# 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/skin/extensions/update.css" type="text/css"?> 

<!DOCTYPE wizard [
<!ENTITY % updateDTD SYSTEM "chrome://mozapps/locale/extensions/update.dtd">
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
%updateDTD;
%brandDTD;
]>

<wizard id="updateWizard"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        title="&updateWizard.title;"
        windowtype="Addons:Compatibility"
        branded="true"
        onload="gUpdateWizard.init();"
        onwizardfinish="gUpdateWizard.onWizardFinish();"
        onwizardcancel="return gUpdateWizard.onWizardCancel();"
        onclose="return gUpdateWizard.onWizardClose(event);"
        buttons="accept,cancel">

  <script type="application/javascript" src="chrome://mozapps/content/extensions/update.js"/>
  
  <stringbundleset id="updateSet">
    <stringbundle id="brandStrings" src="chrome://branding/locale/brand.properties"/>
    <stringbundle id="updateStrings" src="chrome://mozapps/locale/extensions/update.properties"/>
  </stringbundleset>
  
  <wizardpage id="dummy" pageid="dummy"/>
  
  <wizardpage id="offline" pageid="offline" next="versioninfo"
              label="&offline.title;"
              onpageadvanced="return gOfflinePage.onPageAdvanced();">
    <description>&offline.description;</description>
    <checkbox id="toggleOffline"
              checked="true"
              label="&offline.toggleOffline.label;"
              accesskey="&offline.toggleOffline.accesskey;"
              oncommand="gOfflinePage.toggleOffline();"/>
  </wizardpage>
  
  <wizardpage id="versioninfo" pageid="versioninfo" next="mismatch"
              label="&versioninfo.wizard.title;"
              onpageshow="gVersionInfoPage.onPageShow();">
    <label>&versioninfo.top.label;</label>
    <separator class="thin"/>
    <progressmeter id="versioninfo.progress" mode="undetermined"/>
    <hbox align="center">
      <image id="versioninfo.throbber" class="throbber"/>
      <label flex="1" id="versioninfo.status" crop="right">&versioninfo.waiting;</label>
    </hbox>
    <separator/>
  </wizardpage>

  <wizardpage id="mismatch" pageid="mismatch" next="checking"
              label="&mismatch.win.title;"
              onpageshow="gMismatchPage.onPageShow();">
    <label>&mismatch.top.label;</label>
    <separator class="thin"/>
    <listbox id="mismatch.incompatible" flex="1"/>
    <separator class="thin"/>
    <label>&mismatch.bottom.label;</label>
  </wizardpage>
  
  <wizardpage id="checking" pageid="checking" next="noupdates"
              label="&checking.wizard.title;"
              onpageshow="gUpdatePage.onPageShow();">
    <label>&checking.top.label;</label>
    <separator class="thin"/>
    <progressmeter id="checking.progress"/>
    <hbox align="center">
      <image id="checking.throbber" class="throbber"/>
      <label id="checking.status" flex="1" crop="right">&checking.status;</label>
    </hbox>
  </wizardpage>
    
  <wizardpage id="noupdates" pageid="noupdates"
              label="&noupdates.wizard.title;"
              onpageshow="gNoUpdatesPage.onPageShow();">
    <description>&noupdates.intro.desc;</description>
    <separator class="thin"/>
    <hbox id="updateCheckErrorNotFound" class="alertBox" hidden="true" align="top">
      <description flex="1">&noupdates.error.desc;</description>
    </hbox>
    <separator class="thin"/>
    <description id="noupdatesCheckEnabled" hidden="true">
      &noupdates.checkEnabled.desc;
    </description>
    <vbox id="noupdatesCheckDisabled" hidden="true">
      <description>&finished.checkDisabled.desc;</description>
      <checkbox label="&enableChecking.label;" checked="true"
                oncommand="gUpdateWizard.shouldAutoCheck = this.checked;"/>
    </vbox>
    <separator flex="1"/>
#ifndef XP_MACOSX
    <label>&clickFinish.label;</label>
#else
    <label>&clickFinish.labelMac;</label>
#endif
    <separator class="thin"/>
  </wizardpage>

  <wizardpage id="found" pageid="found" next="installing"
              label="&found.wizard.title;"
              onpageshow="gFoundPage.onPageShow();">
    <label>&found.top.label;</label>
    <separator class="thin"/>
    <listbox id="found.updates" flex="1" seltype="multiple"
             onclick="gFoundPage.updateNextButton();"/>
    <separator class="thin"/>
    <vbox align="left" id="xpinstallDisabledAlert" hidden="true">
      <description>&found.disabledXPinstall.label;</description>
      <checkbox label="&found.enableXPInstall.label;"
                id="enableXPInstall"
                accesskey="&found.enableXPInstall.accesskey;"
                oncommand="gFoundPage.toggleXPInstallEnable(event);"/>
    </vbox>
  </wizardpage>

  <wizardpage id="installing" pageid="installing" next="finished"
              label="&installing.wizard.title;"
              onpageshow="gInstallingPage.onPageShow();">
    <label>&installing.top.label;</label>
    <progressmeter id="downloadProgress"/>
    <hbox align="center">
      <image id="installing.throbber" class="throbber"/>
      <label id="actionItem" flex="1" crop="right"/>
    </hbox>
    <separator/>
  </wizardpage>
  
  <wizardpage id="installerrors" pageid="installerrors"
              label="&installerrors.wizard.title;"
              onpageshow="gInstallErrorsPage.onPageShow();">
    <hbox align="top" class="alertBox">
      <description flex="1">&installerrors.intro.label;</description>
    </hbox>
    <separator flex="1"/>
#ifndef XP_MACOSX
    <label>&clickFinish.label;</label>
#else
    <label>&clickFinish.labelMac;</label>
#endif
    <separator class="thin"/>
  </wizardpage>
  
  <wizardpage id="adminDisabled" pageid="adminDisabled"
              label="&adminDisabled.wizard.title;"
              onpageshow="gAdminDisabledPage.onPageShow();">
    <separator/>
    <hbox class="alertBox" align="top">
      <description flex="1">&adminDisabled.warning.label;</description>
    </hbox>
    <separator flex="1"/>
#ifndef XP_MACOSX
    <label>&clickFinish.label;</label>
#else
    <label>&clickFinish.labelMac;</label>
#endif
    <separator class="thin"/>
  </wizardpage>

  <wizardpage id="finished" pageid="finished"
              label="&finished.wizard.title;"
              onpageshow="gFinishedPage.onPageShow();">

    <label>&finished.top.label;</label>
    <separator/>
    <description id="finishedCheckEnabled" hidden="true">
      &finished.checkEnabled.desc;
    </description>
    <vbox id="finishedCheckDisabled" hidden="true">
      <description>&finished.checkDisabled.desc;</description>
      <checkbox label="&enableChecking.label;" checked="true"
                oncommand="gUpdateWizard.shouldAutoCheck = this.checked;"/>
    </vbox>
    <separator flex="1"/>
#ifndef XP_MACOSX
    <label>&clickFinish.label;</label>
#else
    <label>&clickFinish.labelMac;</label>
#endif
    <separator class="thin"/>
  </wizardpage>
  
</wizard>