~ubuntu-branches/ubuntu/quantal/enigmail/quantal-security

« back to all changes in this revision

Viewing changes to mailnews/extensions/enigmail/ui/content/enigmailKeygen.xul

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2013-09-13 16:02:15 UTC
  • mfrom: (0.12.16)
  • Revision ID: package-import@ubuntu.com-20130913160215-u3g8nmwa0pdwagwc
Tags: 2:1.5.2-0ubuntu0.12.10.1
* New upstream release v1.5.2 for Thunderbird 24

* Build enigmail using a stripped down Thunderbird 17 build system, as it's
  now quite difficult to build the way we were doing previously, with the
  latest Firefox build system
* Add debian/patches/no_libxpcom.patch - Don't link against libxpcom, as it
  doesn't exist anymore (but exists in the build system)
* Add debian/patches/use_sdk.patch - Use the SDK version of xpt.py and
  friends
* Drop debian/patches/ipc-pipe_rename.diff (not needed anymore)
* Drop debian/patches/makefile_depth.diff (not needed anymore)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<!--
 
3
 * ***** BEGIN LICENSE BLOCK *****
 
4
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 
5
 *
 
6
 * The contents of this file are subject to the Mozilla Public
 
7
 * License Version 1.1 (the "MPL"); you may not use this file
 
8
 * except in compliance with the MPL. You may obtain a copy of
 
9
 * the MPL at http://www.mozilla.org/MPL/
 
10
 *
 
11
 * Software distributed under the MPL is distributed on an "AS
 
12
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 
13
 * implied. See the MPL for the specific language governing
 
14
 * rights and limitations under the MPL.
 
15
 *
 
16
 * The Original Code is Enigmail.
 
17
 *
 
18
 * The Initial Developer of the Original Code is Ramalingam Saravanan.
 
19
 * Portions created by Ramalingam Saravanan <svn@xmlterm.org> are
 
20
 * Copyright (C) 2002 Ramalingam Saravanan. All Rights Reserved.
 
21
 *
 
22
 * Contributor(s):
 
23
 * Patrick Brunschwig <patrick@mozilla-enigmail.org>
 
24
 *
 
25
 * Alternatively, the contents of this file may be used under the terms of
 
26
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 
27
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 
28
 * in which case the provisions of the GPL or the LGPL are applicable instead
 
29
 * of those above. If you wish to allow use of your version of this file only
 
30
 * under the terms of either the GPL or the LGPL, and not to allow others to
 
31
 * use your version of this file under the terms of the MPL, indicate your
 
32
 * decision by deleting the provisions above and replace them with the notice
 
33
 * and other provisions required by the GPL or the LGPL. If you do not delete
 
34
 * the provisions above, a recipient may use your version of this file under
 
35
 * the terms of any one of the MPL, the GPL or the LGPL.
 
36
 * ***** END LICENSE BLOCK ***** *
 
37
-->
 
38
 
 
39
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
 
40
<?xml-stylesheet href="chrome://enigmail/skin/enigmail.css" type="text/css"?>
 
41
 
 
42
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
 
43
 
 
44
<!DOCTYPE window SYSTEM "chrome://enigmail/locale/enigmail.dtd" >
 
45
 
 
46
<window
 
47
     id="enigmailKeygen"
 
48
     title="&enigmail.keygenTitle.label;"
 
49
     windowtype="enigmail:keygen"
 
50
     width="600" height="480"
 
51
     orient="vertical"
 
52
     onload="enigmailKeygenLoad()"
 
53
     onclose="return enigmailOnClose();"
 
54
     xmlns:html="http://www.w3.org/1999/xhtml"
 
55
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
56
 
 
57
<script type="application/x-javascript" src="chrome://global/content/dialogOverlay.js" />
 
58
 
 
59
<script type="application/x-javascript" src="chrome://enigmail/content/enigmailCommon.js"/>
 
60
<script type="application/x-javascript" src="chrome://enigmail/content/enigmailKeygen.js"/>
 
61
 
 
62
<popupset id="aTooltipSet"/>
 
63
 
 
64
<groupbox id="userIdBox" orient="vertical">
 
65
 
 
66
  <hbox orient="horizontal" align="center">
 
67
    <label value="&enigmail.keyUserId.label;" control="userIdentity"/>
 
68
    <menulist id="userIdentity" label="..." flex="1">
 
69
      <menupopup id="userIdentityPopup"/>
 
70
    </menulist>
 
71
  </hbox>
 
72
 
 
73
  <checkbox id="useForSigning"
 
74
            label="&enigmail.useForSigning.label;"
 
75
            checked="true" />
 
76
 
 
77
</groupbox>
 
78
 
 
79
<checkbox id="noPassphrase"
 
80
          label="&enigmail.keyNoPassphrase.label;"
 
81
          oncommand="enigmailKeygenUpdate(false, false);" />
 
82
 
 
83
<grid>
 
84
  <columns>
 
85
    <column />
 
86
    <column flex="1"/>
 
87
  </columns>
 
88
 
 
89
  <rows>
 
90
    <row>
 
91
      <hbox id="passphraseBox" align="center">
 
92
        <label control="passphrase" value="&enigmail.keyPassphrase.label;" />
 
93
      </hbox>
 
94
      <hbox align="center">
 
95
        <textbox id="passphrase" type="password" />
 
96
        <label control="passphraseRepeat" value="&enigmail.keyPassphraseRepeat.label;" />
 
97
        <textbox id="passphraseRepeat" type="password" />
 
98
      </hbox>
 
99
    </row>
 
100
 
 
101
    <row>
 
102
      <hbox align="center">
 
103
        <label control="keyComment" value="&enigmail.keyComment.label;" />
 
104
      </hbox>
 
105
      <textbox id="keyComment" />
 
106
    </row>
 
107
  </rows>
 
108
</grid>
 
109
 
 
110
<tabbox flex="1">
 
111
  <tabs id="settingsTabBox">
 
112
    <tab id="basicTab"    label="&enigmail.keyGen.expiry.title;"/>
 
113
    <tab id="advancedTab" label="&enigmail.advancedPrefsButton.label;"/>
 
114
  </tabs>
 
115
 
 
116
  <tabpanels flex="1">
 
117
 
 
118
    <hbox> <!-- Basic Tab -->
 
119
      <hbox align="center">
 
120
        <label value="&enigmail.keyGen.expire.label;" control="expireInput"/>
 
121
      </hbox>
 
122
      <hbox align="center">
 
123
        <textbox id="expireInput" size="5" maxlength="5" value="5"/>
 
124
        <menulist id="timeScale" label="&enigmail.keyGen.years.label;" value="365">
 
125
          <menupopup id="timeScalePopup">
 
126
            <menuitem id="years" value="365" label="&enigmail.keyGen.years.label;" selected="true"/>
 
127
            <menuitem id="months" value="30" label="&enigmail.keyGen.months.label;"/>
 
128
            <menuitem id="days" value="1" label="&enigmail.keyGen.days.label;"/>
 
129
          </menupopup>
 
130
        </menulist>
 
131
        <checkbox label="&enigmail.keyGen.noExpiry.label;"
 
132
                  id="noExpiry" oncommand="onNoExpiry()"/>
 
133
      </hbox>
 
134
    </hbox>
 
135
 
 
136
    <vbox> <!-- Advanced Tab -->
 
137
      <grid>
 
138
        <columns>
 
139
          <column/>
 
140
          <column flex="1"/>
 
141
        </columns>
 
142
 
 
143
        <rows>
 
144
          <row>
 
145
            <hbox align="center">
 
146
              <label value="&enigmail.keyGen.keySize.label;" control="keySize"/>
 
147
            </hbox>
 
148
            <hbox flex="0">
 
149
              <menulist id="keySize" label="2048" value="2048" >
 
150
                <menupopup id="keySizePopup">
 
151
                  <menuitem id="keySize_1024" value="1024" label="1024"/>
 
152
                  <menuitem id="keySize_2048" value="2048" label="2048" selected="true"/>
 
153
                  <menuitem id="keySize_4096" value="4096" label="4096"/>
 
154
                </menupopup>
 
155
              </menulist>
 
156
            </hbox>
 
157
          </row>
 
158
          <row>
 
159
            <hbox align="center">
 
160
              <label value="&enigmail.keyGen.keyType.label;" control="keyType"/>
 
161
            </hbox>
 
162
            <hbox flex="0">
 
163
              <menulist id="keyType" label="&enigmail.keyGen.keyType.dsa;" value="1" >
 
164
                <menupopup id="keyTypePopup">
 
165
                  <menuitem id="keySize_rsa" value="2" label="&enigmail.keyGen.keyType.rsa;" selected="true"/>
 
166
                  <menuitem id="keyType_dsa" value="1" label="&enigmail.keyGen.keyType.dsa;"/>
 
167
                </menupopup>
 
168
              </menulist>
 
169
            </hbox>
 
170
          </row>
 
171
        </rows>
 
172
      </grid>
 
173
  </vbox>
 
174
  </tabpanels>
 
175
</tabbox>
 
176
 
 
177
<separator/>
 
178
 
 
179
<hbox autostretch="never">
 
180
  <button label="&enigmail.generateKey.label;"
 
181
          class="dialog"
 
182
          tooltip="aTooltip"
 
183
          tooltiptext="&enigmail.generateKey.tooltip;"
 
184
          oncommand="enigmailKeygenStart();" />
 
185
 
 
186
  <button label="&enigmail.cancelKey.label;"
 
187
          class="dialog"
 
188
          tooltip="aTooltip"
 
189
          tooltiptext="&enigmail.cancelKey.tooltip;"
 
190
          oncommand="enigmailKeygenCancel();" />
 
191
</hbox>
 
192
 
 
193
<separator/>
 
194
 
 
195
<groupbox id="keygenConsoleBox" orient="vertical" flex="1">
 
196
 
 
197
  <caption label="&enigmail.keyGen.console.label;"/>
 
198
 
 
199
  <description>&enigmail.keygen.desc;</description>
 
200
 
 
201
  <groupbox>
 
202
    <progressmeter id="keygenProgress" mode="determined" value="0"/>
 
203
  </groupbox>
 
204
 
 
205
</groupbox>
 
206
 
 
207
</window>