addDevice.xul 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?xml version="1.0"?>
  2. <!-- This Source Code Form is subject to the terms of the Mozilla Public
  3. - License, v. 2.0. If a copy of the MPL was not distributed with this
  4. - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
  5. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  6. <?xml-stylesheet href="chrome://browser/skin/syncSetup.css" type="text/css"?>
  7. <?xml-stylesheet href="chrome://browser/skin/syncCommon.css" type="text/css"?>
  8. <!DOCTYPE window [
  9. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
  10. <!ENTITY % syncBrandDTD SYSTEM "chrome://browser/locale/syncBrand.dtd">
  11. <!ENTITY % syncSetupDTD SYSTEM "chrome://browser/locale/syncSetup.dtd">
  12. %brandDTD;
  13. %syncBrandDTD;
  14. %syncSetupDTD;
  15. ]>
  16. <wizard xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  17. xmlns:html="http://www.w3.org/1999/xhtml"
  18. id="wizard"
  19. title="&pairDevice.title.label;"
  20. windowtype="Sync:AddDevice"
  21. persist="screenX screenY"
  22. onwizardnext="return gSyncAddDevice.onWizardAdvance();"
  23. onwizardback="return gSyncAddDevice.onWizardBack();"
  24. onwizardcancel="gSyncAddDevice.onWizardCancel();"
  25. onload="gSyncAddDevice.init();">
  26. <script type="application/javascript"
  27. src="chrome://browser/content/sync/addDevice.js"/>
  28. <script type="application/javascript"
  29. src="chrome://browser/content/sync/utils.js"/>
  30. <script type="application/javascript"
  31. src="chrome://browser/content/utilityOverlay.js"/>
  32. <script type="application/javascript"
  33. src="chrome://global/content/printUtils.js"/>
  34. <wizardpage id="addDevicePage"
  35. label="&pairDevice.title.label;"
  36. onpageshow="gSyncAddDevice.onPageShow();">
  37. <description>
  38. &pairDevice.dialog.description.label;
  39. <label class="text-link"
  40. value="&addDevice.showMeHow.label;"
  41. href="http://www.palemoon.org/sync/help/easy-setup.shtml"/>
  42. </description>
  43. <separator class="groove-thin"/>
  44. <description>
  45. &addDevice.dialog.enterCode.label;
  46. </description>
  47. <separator class="groove-thin"/>
  48. <vbox align="center">
  49. <textbox id="pin1"
  50. class="pin"
  51. oninput="gSyncAddDevice.onTextBoxInput(this);"
  52. onfocus="this.select();"
  53. />
  54. <textbox id="pin2"
  55. class="pin"
  56. oninput="gSyncAddDevice.onTextBoxInput(this);"
  57. onfocus="this.select();"
  58. />
  59. <textbox id="pin3"
  60. class="pin"
  61. oninput="gSyncAddDevice.onTextBoxInput(this);"
  62. onfocus="this.select();"
  63. />
  64. </vbox>
  65. <separator class="groove-thin"/>
  66. <vbox id="pairDeviceThrobber" align="center" hidden="true">
  67. <image/>
  68. </vbox>
  69. <hbox id="errorRow" pack="center" hidden="true">
  70. <image class="statusIcon" status="error"/>
  71. <label class="status"
  72. value="&addDevice.dialog.tryAgain.label;"/>
  73. </hbox>
  74. <spacer flex="3"/>
  75. <label class="text-link"
  76. value="&addDevice.dontHaveDevice.label;"
  77. onclick="gSyncAddDevice.goToSyncKeyPage();"/>
  78. </wizardpage>
  79. <!-- Need a non-empty label here, otherwise we get a default label on Mac -->
  80. <wizardpage id="syncKeyPage"
  81. label=" "
  82. onpageshow="gSyncAddDevice.onPageShow();">
  83. <description>
  84. &addDevice.dialog.recoveryKey.label;
  85. </description>
  86. <spacer/>
  87. <groupbox>
  88. <label value="&recoveryKeyEntry.label;"
  89. accesskey="&recoveryKeyEntry.accesskey;"
  90. control="weavePassphrase"/>
  91. <textbox id="weavePassphrase"
  92. readonly="true"/>
  93. </groupbox>
  94. <groupbox align="center">
  95. <description>&recoveryKeyBackup.description;</description>
  96. <hbox>
  97. <button id="printSyncKeyButton"
  98. label="&button.syncKeyBackup.print.label;"
  99. accesskey="&button.syncKeyBackup.print.accesskey;"
  100. oncommand="gSyncUtils.passphrasePrint('weavePassphrase');"/>
  101. <button id="saveSyncKeyButton"
  102. label="&button.syncKeyBackup.save.label;"
  103. accesskey="&button.syncKeyBackup.save.accesskey;"
  104. oncommand="gSyncUtils.passphraseSave('weavePassphrase');"/>
  105. </hbox>
  106. </groupbox>
  107. </wizardpage>
  108. <wizardpage id="deviceConnectedPage"
  109. label="&addDevice.dialog.connected.label;"
  110. onpageshow="gSyncAddDevice.onPageShow();">
  111. <vbox align="center">
  112. <image id="successPageIcon"/>
  113. </vbox>
  114. <separator/>
  115. <description class="normal">
  116. &addDevice.dialog.successful.label;
  117. </description>
  118. </wizardpage>
  119. </wizard>