~ubuntu-branches/ubuntu/oneiric/weave/oneiric

« back to all changes in this revision

Viewing changes to ui/firefox/content/setup.xul

  • Committer: Bazaar Package Importer
  • Author(s): Micah Gersten
  • Date: 2010-08-11 00:35:15 UTC
  • mfrom: (3.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100811003515-o3jbh826bnd1syjv
Tags: 1.4.3-1ubuntu1
* Add -fshort-wchar to CXXFLAGS to fix FTBFS in Ubuntu
  - update debian/rules 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
 
3
<?xml-stylesheet href="chrome://weave/skin/firefox/prefs.css"?>
 
4
<?xml-stylesheet href="chrome://weave-platform/skin/prefs.css"?>
 
5
 
 
6
<!DOCTYPE window [
 
7
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
 
8
<!ENTITY % weaveDTD SYSTEM "chrome://weave/locale/firefox/prefs.dtd">
 
9
%brandDTD;
 
10
%weaveDTD;
 
11
]>
 
12
<wizard id="accountSetup" title="&accountSetupTitle.label;"
 
13
        windowtype="Weave:AccountSetup"
 
14
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
 
15
        xmlns:html="http://www.w3.org/1999/xhtml"
 
16
        onwizardnext="return gWeaveSetup.onWizardAdvance()"
 
17
        onwizardback="return gWeaveSetup.onWizardBack()"
 
18
        onwizardfinish="gWeaveSetup.onWizardFinish()"
 
19
        onwizardcancel="gWeaveSetup.onWizardCancel()"
 
20
        onload="gWeaveSetup.init()">
 
21
 
 
22
  <script type="application/x-javascript"
 
23
          src="chrome://weave/content/firefox/load-weave.js"/>
 
24
  <script type="application/javascript"
 
25
          src="chrome://weave/content/firefox/setup.js"/>
 
26
  <script type="application/javascript"
 
27
          src="chrome://weave/content/firefox/prefs-common.js"/>
 
28
  <script type="application/javascript"
 
29
          src="chrome://browser/content/utilityOverlay.js"/>
 
30
  <stringbundle id="weavePrefStrings" src="chrome://weave/locale/firefox/prefs.properties"/>
 
31
 
 
32
  <wizardpage id="pickSetupType"
 
33
              label="&setup.choicePage.title.label;"
 
34
              onpageshow="gWeaveSetup.onPageShow()">
 
35
    <button id="newAccount"
 
36
            class="accountChoiceButton"
 
37
            aria-labelledby="createNewDesc"
 
38
            style="min-height: 5em"
 
39
            oncommand="gWeaveSetup.startNewAccountSetup()"
 
40
            align="center">
 
41
      <image class="mergeChoiceImage" 
 
42
             src="chrome://weave/skin/firefox/used-never.png"/>
 
43
      <vbox class="mergeChoiceButtonBox" flex="1">
 
44
        <description class="mainDesc" id="createNewDesc">
 
45
          &setup.choicePage.new.label;
 
46
        </description>
 
47
      </vbox>
 
48
    </button>
 
49
    <button id="existingAccount"
 
50
            class="accountChoiceButton"
 
51
            aria-labelledby="useExistingButton"
 
52
            style="min-height: 5em"
 
53
            oncommand="gWeaveSetup.useExistingAccount()"
 
54
            align="center">
 
55
      <image class="mergeChoiceImage" 
 
56
             src="chrome://weave/skin/firefox/used-before.png"/>
 
57
      <vbox class="mergeChoiceButtonBox" flex="1">
 
58
        <description class="mainDesc" id="useExistingDesc">
 
59
          &setup.choicePage.existing.label;
 
60
        </description>
 
61
      </vbox>
 
62
    </button>
 
63
  </wizardpage>
 
64
 
 
65
  <wizardpage label="&setup.newAccountPage.title.label;"
 
66
              id="newAccountStart"
 
67
              onpageshow="gWeaveSetup.onPageShow();">
 
68
    <grid>
 
69
      <columns>
 
70
        <column/>
 
71
        <column flex="1" style="-moz-margin-end: 2px"/>
 
72
      </columns>
 
73
      <rows>
 
74
        <row align="center">
 
75
          <label control="serverType"
 
76
                 value="&connectTo.label;"/>
 
77
          <menulist id="serverType" oncommand="gWeaveSetup.onServerChange()">
 
78
            <menupopup>
 
79
              <menuitem label="&serverType.main.label;"
 
80
                        value="main"/>
 
81
              <menuitem label="&serverType.custom.label;"
 
82
                        value="custom"/>
 
83
            </menupopup>
 
84
          </menulist>
 
85
        </row>
 
86
        <row id="serverRow" hidden="true" align="center">
 
87
          <label value="&signIn.serverURL.label;"
 
88
                 accesskey="&signIn.serverURL.accesskey;"
 
89
                 control="weaveServerURL"/>
 
90
          <textbox id="weaveServerURL" onchange="gWeaveSetup.onServerChange()"/>
 
91
        </row>
 
92
        <row id="serverFeedbackRow" align="center" hidden="true">
 
93
          <spacer/>
 
94
          <hbox>
 
95
            <image class="statusIcon"/>
 
96
            <label class="status" value=" "/>
 
97
          </hbox>
 
98
        </row>
 
99
        <row id="usernameRow" align="center">
 
100
          <label value="&signIn.username.label;"
 
101
                 accesskey="&signIn.username.accesskey;"
 
102
                 control="weaveUsername"/>
 
103
          <textbox id="weaveUsername"
 
104
                   onchange="gWeaveSetup.onUsernameChange()"/>
 
105
        </row>
 
106
        <row id="usernameFeedbackRow" 
 
107
              align="center" 
 
108
              hidden="true">
 
109
          <spacer/>
 
110
          <hbox>
 
111
            <image class="statusIcon"/>
 
112
            <label class="status" value=" "/>
 
113
          </hbox>
 
114
        </row>
 
115
        <row id="passwordRow" align="center">
 
116
          <label value="&signIn.password.label;"
 
117
                 accesskey="&signIn.password.accesskey;"
 
118
                 control="weavePassword"/>
 
119
          <textbox id="weavePassword" 
 
120
                   type="password" 
 
121
                   onchange="gWeaveSetup.onPasswordChange()"/>
 
122
        </row>
 
123
        <row id="confirmRow" align="center">
 
124
          <label value="&setup.confirmPassword.label;"
 
125
                 accesskey="&setup.confirmPassword.accesskey;"
 
126
                 control="weavePasswordConfirm"/>
 
127
          <textbox id="weavePasswordConfirm" 
 
128
                   type="password"
 
129
                   onchange="gWeaveSetup.onPasswordChange()"/>
 
130
        </row>
 
131
        <row id="passwordFeedbackRow" align="center" hidden="true">
 
132
          <spacer/>
 
133
          <hbox>
 
134
            <image class="statusIcon"/>
 
135
            <label class="status" value=" "/>
 
136
          </hbox>
 
137
        </row>
 
138
        <row id="emailRow" align="center">
 
139
          <label value="&setup.emailAddress.label;"
 
140
                 accesskey="&setup.emailAddress.accesskey;"
 
141
                 control="weaveEmail"/>
 
142
          <textbox id="weaveEmail" 
 
143
                   oninput="gWeaveSetup.onEmailChange()"/>
 
144
        </row>
 
145
        <row id="emailFeedbackRow" align="center" hidden="true">
 
146
          <spacer/>
 
147
          <hbox>
 
148
            <image class="statusIcon"/>
 
149
            <label class="status" value=" "/>
 
150
          </hbox>
 
151
        </row>
 
152
        <row id="TOSRow" align="center">
 
153
          <spacer/>
 
154
          <hbox align="top">
 
155
            <checkbox id="tos"
 
156
                      accesskey="&setup.tosAgree1.accesskey;"
 
157
                      oncommand="gWeaveSetup.checkFields();"/>
 
158
            <description onclick="document.getElementById('tos').click()" style="width: 16em">
 
159
              &setup.tosAgree1.label;
 
160
              <label class="text-link inline-link"
 
161
                     onclick="event.stopPropagation();gWeaveCommon.openToS();"
 
162
                     value="&setup.tosLink.label;"/>
 
163
              &setup.tosAgree2.label;
 
164
              <label class="text-link inline-link"
 
165
                     onclick="event.stopPropagation();gWeaveCommon.openPP();"
 
166
                     value="&setup.ppLink.label;"/>
 
167
              &setup.tosAgree3.label;
 
168
            </description>
 
169
          </hbox>
 
170
        </row>
 
171
      </rows>
 
172
    </grid>
 
173
  </wizardpage>
 
174
 
 
175
  <wizardpage label="&setup.newPPPage.title.label;"
 
176
              onpageshow="gWeaveSetup.onPageShow();">
 
177
    <description>
 
178
      &passphraseDesc.label;
 
179
    </description>
 
180
    <spacer/>
 
181
    <grid>
 
182
      <columns>
 
183
        <column/>
 
184
        <column flex="1"/>
 
185
      </columns>
 
186
      <rows>
 
187
        <row align="center">
 
188
          <label value="&passphraseEntry.label;"
 
189
                 accesskey="&passphraseEntry.accesskey;"
 
190
                 control="weavePassphrase"/>
 
191
          <textbox type="password" id="weavePassphrase"
 
192
                   onkeyup="gWeaveSetup.checkFields()"
 
193
                   onchange="gWeaveSetup.checkFields()"/>
 
194
        </row>
 
195
        <row align="center">
 
196
          <label value="&passphraseConfirm.label;"
 
197
                 accesskey="&passphraseConfirm.accesskey;"
 
198
                 control="weavePassphraseConfirm"/>
 
199
          <textbox type="password" id="weavePassphraseConfirm"
 
200
                   onkeyup="gWeaveSetup.checkFields()"
 
201
                   onchange="gWeaveSetup.checkFields()"/>
 
202
        </row>
 
203
      </rows>
 
204
    </grid>
 
205
    <hbox id="passphraseFeedbackRow" align="center" hidden="true">
 
206
      <spacer/>
 
207
      <hbox>
 
208
        <image class="statusIcon"/>
 
209
        <label class="status" value=" "/>
 
210
      </hbox>
 
211
    </hbox>
 
212
    <separator/>
 
213
    <description class="small">
 
214
      &passphraseDesc2.label;
 
215
    </description>
 
216
  </wizardpage>
 
217
 
 
218
  <wizardpage label="&setup.newAccountPrefs2.title.label;">
 
219
    <grid>
 
220
      <rows>
 
221
        <row align="center">
 
222
          <label value="&syncComputerName.label;"
 
223
                 accesskey="&syncComputerName.accesskey;"
 
224
                 control="syncComputerName"/>
 
225
          <textbox id="syncComputerName" flex="1"
 
226
                   onchange="gWeaveCommon.changeName(this)"/>
 
227
        </row>
 
228
        <row align="center">
 
229
      <label value="&syncModeSwitchDesc.label;"
 
230
             accesskey="&syncModeSwitchDesc.accesskey;"
 
231
             control="weaveSyncMode"/>
 
232
      <menulist id="weaveSyncMode"
 
233
                oncommand="gWeaveSetup.updateSyncPrefs()">
 
234
        <menupopup>
 
235
          <menuitem label="&syncEverything.label;" value="syncEverything"/>
 
236
          <menuitem label="&customSync.label;"     value="customSync"/>
 
237
        </menupopup>
 
238
      </menulist>
 
239
        </row>
 
240
      </rows>
 
241
    </grid>
 
242
    <separator/>
 
243
    <deck id="syncModeOptions" class="indent">
 
244
      <description id="syncEverythingDesc">
 
245
        &syncEverythingDescription.label;
 
246
      </description>
 
247
      <vbox>
 
248
        <checkbox label="&syncItem.bookmarks.label;"
 
249
                  accesskey="&syncItem.bookmarks.accesskey;"
 
250
                  id="engine.bookmarks"
 
251
                  checked="true"/>
 
252
        <checkbox label="&syncItem.passwords.label;"
 
253
                  accesskey="&syncItem.passwords.accesskey;"
 
254
                  id="engine.passwords"
 
255
                  checked="true"/>
 
256
        <checkbox label="&syncItem.prefs.label;"
 
257
                  accesskey="&syncItem.prefs.accesskey;"
 
258
                  id="engine.prefs"
 
259
                  checked="true"/>
 
260
        <checkbox label="&syncItem.history.label;"
 
261
                  accesskey="&syncItem.history.accesskey;"
 
262
                  id="engine.history"
 
263
                  checked="true"/>
 
264
        <checkbox label="&syncItem.tabs.label;"
 
265
                  accesskey="&syncItem.tabs.accesskey;"
 
266
                  id="engine.tabs"
 
267
                  checked="true"/>
 
268
      </vbox>
 
269
    </deck>
 
270
 
 
271
  </wizardpage>
 
272
 
 
273
  <wizardpage label="&setup.captchaPage.title.label;">
 
274
    <browser height="150"
 
275
             width="322"
 
276
             id="captcha"
 
277
             type="content"
 
278
             disablehistory="true"/>
 
279
  </wizardpage>
 
280
 
 
281
  <wizardpage id="useExisting" 
 
282
              label="&setup.existingAccount.title.label;"
 
283
              onpageshow="gWeaveSetup.onPageShow()">
 
284
      <grid>
 
285
        <columns>
 
286
          <column/>
 
287
          <column/>
 
288
        </columns>
 
289
        <rows>
 
290
          <row align="center">
 
291
            <label control="existingServerType"
 
292
                   value="&connectTo.label;"/>
 
293
            <menulist id="existingServerType" oncommand="gWeaveSetup.onServerChange()">
 
294
              <menupopup>
 
295
                <menuitem label="&serverType.main.label;"
 
296
                          value="main"/>
 
297
                <menuitem label="&serverType.custom.label;"
 
298
                          value="custom"/>
 
299
              </menupopup>
 
300
            </menulist>
 
301
          </row>
 
302
          <row id="existingServerRow" hidden="true" align="center">
 
303
            <label id="existingServerURLLabel"
 
304
                   value="&signIn.serverURL.label;"
 
305
                   accesskey="&signIn.serverURL.accesskey;"
 
306
                   control="existingServerURL"/>
 
307
            <textbox id="existingServerURL"
 
308
                     onchange="gWeaveSetup.checkFields(event)"/>
 
309
          </row>
 
310
          <row id="existingUsernameRow" align="center">
 
311
            <label id="existingUsernameLabel"
 
312
                   value="&signIn.username.label;"
 
313
                   accesskey="&signIn.username.accesskey;"
 
314
                   control="existingUsername"/>
 
315
            <textbox id="existingUsername"
 
316
                     oninput="gWeaveSetup.checkFields(event)"
 
317
                     onchange="gWeaveSetup.checkFields(event)"/>
 
318
          </row>
 
319
          <row id="existingUsernameFeedbackRow" align="center" hidden="true">
 
320
            <spacer/>
 
321
            <hbox>
 
322
              <image class="statusIcon"/>
 
323
              <label class="status" value=" "/>
 
324
            </hbox>
 
325
          </row>
 
326
          <row id="existingPasswordRow" align="center">
 
327
            <label id="existingPasswordLabel"
 
328
                   value="&signIn.password.label;"
 
329
                   accesskey="&signIn.password.accesskey;"
 
330
                   control="existingPassword"/>
 
331
            <textbox id="existingPassword"
 
332
                     type="password"
 
333
                     onkeyup="gWeaveSetup.checkFields(event)"
 
334
                     onchange="gWeaveSetup.checkFields(event)"/>
 
335
          </row>
 
336
          <row id="existingPasswordFeedbackRow"  align="center" hidden="true">
 
337
            <label class="text-link small" value="&resetPassword.label;"
 
338
                   onclick="gWeaveCommon.resetPassword(); return false;"/>
 
339
            <hbox>
 
340
              <image class="statusIcon"/>
 
341
              <label class="status" value=" "/>
 
342
            </hbox>
 
343
          </row>
 
344
          <row id="existingLoginFeedbackRow">
 
345
            <spacer/>
 
346
            <hbox id="connect-throbber" hidden="true">
 
347
              <image src="chrome://global/skin/icons/loading_16.png"/>
 
348
              <label value="&connecting.label;"/>
 
349
          </hbox>
 
350
          </row>
 
351
        </rows>
 
352
      </grid>
 
353
  </wizardpage>
 
354
  <wizardpage id="existingPassphraseEntry" label="&passphraseGroupbox.label;">
 
355
    <description>&passphraseDesc3.label;</description>
 
356
    <textbox type="password" id="existingPassphrase"
 
357
             onkeyup="gWeaveSetup.checkFields(event)"
 
358
             onchange="gWeaveSetup.checkFields(event)"/>
 
359
    <hbox id="passphrase-throbber" hidden="true">
 
360
      <image src="chrome://global/skin/icons/loading_16.png"/>
 
361
      <label value="&verifying.label;"/>
 
362
    </hbox>
 
363
    <hbox align="left" id="existingPassphraseFeedbackBox">
 
364
      <spacer/>
 
365
      <hbox>
 
366
        <image class="statusIcon"/>
 
367
        <label class="status" value=" "/>
 
368
      </hbox>
 
369
    </hbox>
 
370
    <vbox class="small" id="passphraseHelpBox" hidden="true">
 
371
      <description class="small">&passphraseHelp.label;</description>
 
372
      <label class="text-link small" value="&changePassphrase.label;"
 
373
             onclick="gWeaveCommon.resetPassphrase(); return false;"/>
 
374
    </vbox>
 
375
  </wizardpage>
 
376
  <wizardpage id="mergeOptionsChoice"
 
377
              label="&setup.mergeChoicePage.title.label;"
 
378
              onpageshow="gWeaveSetup.onPageShow()">
 
379
      <radiogroup id="mergeChoiceRadio" pack="start">
 
380
        <radio id="resetClient"
 
381
               class="mergeChoiceButton"
 
382
               aria-labelledby="mergeMain"
 
383
               aria-describedby="mergeSecondary1 mergeSecondary2"
 
384
               align="top">
 
385
          <image class="mergeChoiceImage" src="chrome://weave/skin/firefox/sync-merge.png"/>
 
386
          <vbox class="mergeChoiceButtonBox" flex="1">
 
387
            <description class="mainDesc" id="mergeMain">
 
388
              &choice.merge.main.label;
 
389
            </description>
 
390
            <separator class="thin"/>
 
391
            <description class="normal" id="mergeSecondary2">
 
392
              &choice.merge.recommend.label;
 
393
            </description>
 
394
          </vbox>
 
395
        </radio>
 
396
        <radio id="wipeClient"
 
397
               class="mergeChoiceButton"
 
398
               aria-labelledby="wipeClientMain"
 
399
               align="top">
 
400
            <image class="mergeChoiceImage" src="chrome://weave/skin/firefox/sync-wipeClient.png"/>
 
401
            <vbox class="mergeChoiceButtonBox" flex="1">
 
402
              <description class="mainDesc" id="wipeClientMain">
 
403
                &choice.client.main.label;
 
404
              </description>
 
405
            </vbox>
 
406
        </radio>
 
407
        <radio id="wipeRemote"
 
408
               class="mergeChoiceButton"
 
409
               aria-labelledby="wipeServerMain"
 
410
               align="top">
 
411
            <image class="mergeChoiceImage" src="chrome://weave/skin/firefox/sync-wipeServer.png"/>
 
412
            <vbox class="mergeChoiceButtonBox" flex="1">
 
413
              <description class="mainDesc" id="wipeServerMain">
 
414
                &choice.server.main.label;
 
415
              </description>
 
416
            </vbox>
 
417
        </radio>
 
418
    </radiogroup>
 
419
  </wizardpage>
 
420
  <wizardpage id="mergeOptionsConfirm" label="&confirm.caption.label;">
 
421
      <deck id="chosenActionDeck">
 
422
        <vbox>
 
423
          <hbox pack="start" align="baseline">
 
424
            <image src="chrome://weave/skin/firefox/sync-merge.png"/>
 
425
          </hbox>
 
426
          <separator class="thin"/>
 
427
          <description class="normal">
 
428
            &confirm.merge.label;
 
429
          </description>
 
430
        </vbox>
 
431
        <vbox>
 
432
          <hbox pack="start" align="baseline">
 
433
            <image src="chrome://weave/skin/firefox/sync-wipeClient.png"/>
 
434
          </hbox>
 
435
          <separator class="thin"/>
 
436
          <description class="normal">
 
437
            &confirm.client.label;
 
438
          </description>
 
439
          <separator class="thin"/>
 
440
          <vbox id="dataList">
 
441
            <label class="data indent" id="bookmarkCount"/>
 
442
            <label class="data indent" id="historyCount"/>
 
443
            <label class="data indent" id="passwordCount"/>
 
444
          </vbox>
 
445
          <separator class="thin"/>
 
446
          <description class="normal">
 
447
            &confirm.client.moreinfo.label;
 
448
          </description>
 
449
          <separator class="thin"/>
 
450
          <description class="warning">
 
451
            &confirm.client.warning.label;
 
452
          </description>
 
453
        </vbox>
 
454
        <vbox>
 
455
          <hbox pack="start" align="baseline">
 
456
            <image src="chrome://weave/skin/firefox/sync-wipeServer.png"/>
 
457
          </hbox>
 
458
          <separator class="thin"/>
 
459
          <description class="normal">
 
460
            &confirm.server.label;
 
461
          </description>
 
462
          <separator class="thin"/>
 
463
          <vbox id="clientList">
 
464
          </vbox>
 
465
          <separator class="thin"/>
 
466
          <description class="warning">
 
467
            &confirm.server.warning.label;
 
468
          </description>
 
469
        </vbox>
 
470
      </deck>
 
471
  </wizardpage>
 
472
  <wizardpage label="&setup.successPage.title.label;" 
 
473
              id="successfulSetup"
 
474
              onpageshow="gWeaveSetup.onPageShow()">
 
475
    <description>
 
476
      &setup.successPage.desc.label;
 
477
    </description>
 
478
  </wizardpage>
 
479
</wizard>