splitting forms-and-passwords pref pane into two panes, out of realestate (40888). r=slamm

This commit is contained in:
mcafee%netscape.com 2000-08-12 01:30:18 +00:00
parent a59b87c818
commit 890da54651
12 changed files with 131 additions and 50 deletions

View File

@ -39,4 +39,5 @@ nsPrefWindow.js
pref.xul
preftree.xul
pref-wallet.xul
pref-passwords.xul
prefutilities.js

View File

@ -69,6 +69,7 @@ CHROME_CONTENT = \
pref-proxy-manual.xul \
pref-mousewheel.xul \
pref-wallet.xul \
pref-passwords.xul \
pref-search.js \
pref-search.xul \
pref-smart_browsing.xul \

View File

@ -65,6 +65,7 @@ CHROME_CONTENT = \
.\pref-smart_browsing.xul \
.\pref-smartupdate.xul \
.\pref-wallet.xul \
.\pref-passwords.xul \
.\pref.xul \
.\nsPrefWindow.js \
.\preftree.xul \

View File

@ -0,0 +1,92 @@
<?xml version="1.0"?>
<!--
The contents of this file are subject to the Netscape Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/NPL/
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is Mozilla Communicator client code, released
March 31, 1998.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
Contributor(s):
-->
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
<!DOCTYPE window [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
%brandDTD;
<!ENTITY % prefWalletDTD SYSTEM "chrome://communicator/locale/pref/pref-passwords.dtd" >
%prefWalletDTD;
]>
<window debug="false" xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="color-dialog"
orient="vertical" title="&window.title;"
onload="parent.initPanel('chrome://communicator/content/pref/pref-passwords.xul');">
<script language="JavaScript">
<![CDATA[
_elementIDs = ["signonRememberSignons", "encryptEnabled"];
]]>
</script>
<script language="JavaScript">
<![CDATA[
function viewSignons()
{
window.openDialog("chrome://communicator/content/wallet/SignonViewer.xul","","modal=yes,chrome,resizable=no", "S");
}
function changePasswords()
{
wallet = Components.classes['component://netscape/wallet'];
wallet = wallet.getService();
wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService);
wallet.WALLET_ChangePassword();
}
function initReencryptCallback()
{
wallet = Components.classes['component://netscape/wallet/wallet-service'];
wallet = wallet.getService();
wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService);
wallet.WALLET_InitReencryptCallback(window);
}
]]>
</script>
<box class="box-smallheader" title="&lHeader;"/>
<titledbox orient="vertical">
<title><text value="&signonHeader.label;"/></title>
<html flex="1">&signonDescription.label;</html>
<checkbox id="signonRememberSignons" value="&signonEnabled.label;" accesskey="&signonEnabled.accesskey;"
pref="true" preftype="bool" prefstring="signon.rememberSignons"
prefattribute="checked"/>
<box autostretch="never" halign="right">
<button class="dialog" value="&viewSignons.label;" accesskey="&viewSignons.accesskey;"
oncommand="viewSignons();"/>
</box>
</titledbox>
<titledbox orient="vertical">
<title><text value="&encryptHeader.label;"/></title>
<html flex="1">&encryptDescription.label;</html>
<checkbox id="encryptEnabled" value="&encryptEnabled.label;" accesskey="&encryptEnabled.accesskey;"
pref="true" preftype="bool" prefstring="wallet.crypto"
prefattribute="checked" oncommand="initReencryptCallback();"/>
</titledbox>
</window>

View File

@ -29,24 +29,19 @@
%prefWalletDTD;
]>
<window debug="false" xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="color-dialog"
orient="vertical" title="&window.title;"
onload="parent.initPanel('chrome://communicator/content/pref/pref-wallet.xul');">
onload="parent.initPanel('chrome://communicator/content/pref/pref-wallet.xul');">
<script language="JavaScript">
<![CDATA[
_elementIDs = ["walletServer", "walletCaptureForms", "signonRememberSignons", "encryptEnabled"];
_elementIDs = ["walletServer", "walletCaptureForms"];
]]>
</script>
<script language="JavaScript">
<![CDATA[
function viewSignons()
{
window.openDialog("chrome://communicator/content/wallet/SignonViewer.xul","","modal=yes,chrome,resizable=no", "S");
}
function viewWallet()
{
window.openDialog("chrome://communicator/content/wallet/WalletEditor.xul","","modal=yes,chrome,resizable=no");
@ -57,22 +52,6 @@
window.openDialog("chrome://communicator/content/wallet/SignonViewer.xul","","modal=yes,chrome,resizable=no", "W");
}
function changePasswords()
{
wallet = Components.classes['component://netscape/wallet'];
wallet = wallet.getService();
wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService);
wallet.WALLET_ChangePassword();
}
function initReencryptCallback()
{
wallet = Components.classes['component://netscape/wallet/wallet-service'];
wallet = wallet.getService();
wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService);
wallet.WALLET_InitReencryptCallback(window);
}
]]>
</script>
@ -100,25 +79,4 @@
</box>
</titledbox>
<titledbox orient="vertical">
<title><text value="&signonHeader.label;"/></title>
<html flex="1">&signonDescription.label;</html>
<checkbox id="signonRememberSignons" value="&signonEnabled.label;" accesskey="&signonEnabled.accesskey;"
pref="true" preftype="bool" prefstring="signon.rememberSignons"
prefattribute="checked"/>
<box autostretch="never" halign="right">
<button class="dialog" value="&viewSignons.label;" accesskey="&viewSignons.accesskey;"
oncommand="viewSignons();"/>
</box>
</titledbox>
<titledbox orient="vertical">
<title><text value="&encryptHeader.label;"/></title>
<html flex="1">&encryptDescription.label;</html>
<checkbox id="encryptEnabled" value="&encryptEnabled.label;" accesskey="&encryptEnabled.accesskey;"
pref="true" preftype="bool" prefstring="wallet.crypto"
prefattribute="checked" oncommand="initReencryptCallback();"/>
</titledbox>
</window>

View File

@ -144,6 +144,11 @@
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-wallet.xul" value="&wallet.label;"/>
</treerow>
</treeitem>
<treeitem>
<treerow>
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-passwords.xul" value="&passwords.label;"/>
</treerow>
</treeitem>
<treeitem>
<treerow>
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-cache.xul" value="&cache.label;"/>

View File

@ -25,5 +25,6 @@ pref-smartupdate.dtd
preftree.dtd
pref.dtd
pref-wallet.dtd
pref-passwords.dtd
prefutilities.properties

View File

@ -58,6 +58,7 @@ CHROME_L10N = \
pref-smartupdate.dtd \
pref-mousewheel.dtd \
pref-wallet.dtd \
pref-passwords.dtd \
prefutilities.properties \
preftree.dtd \
pref.dtd \

View File

@ -55,6 +55,7 @@ CHROME_L10N = \
.\preftree.dtd \
.\pref.dtd \
.\pref-wallet.dtd \
.\pref-passwords.dtd \
.\pref-mousewheel.dtd \
.\pref-winhooks.dtd \
$(NULL)

View File

@ -0,0 +1,19 @@
<!ENTITY window.title "Passwords">
<!ENTITY lHeader "Passwords">
<!ENTITY rHeader "Manage passwords">
<!ENTITY signonHeader.label "Password Manager">
<!ENTITY signonDescription.label "Password Manager stores your usernames and passwords for sites that require you to log in, and enters them automatically when you visit those sites.">
<!ENTITY signonEnabled.label "Remember passwords for sites that require me to log in.">
<!ENTITY signonEnabled.accesskey "r">
<!ENTITY viewSignons.label "View Saved Passwords...">
<!ENTITY viewSignons.accesskey "e">
<!ENTITY changePasswords.label "Change Form Manager Password...">
<!ENTITY changePasswords.accesskey "c">
<!ENTITY encryptHeader.label "Encrypting versus Obscuring">
<!ENTITY encryptDescription.label "Sensitive data that is stored on your hard disk can be encrypted to prevent the data from being read by an intruder. A password is used to access the data.">
<!ENTITY encryptEnabled.label "Use encryption when storing sensitive data.">
<!ENTITY encryptEnabled.accesskey "n">

View File

@ -1,6 +1,6 @@
<!ENTITY window.title "Forms and Passwords">
<!ENTITY lHeader "Forms and Passwords">
<!ENTITY rHeader "Manage personal information and passwords">
<!ENTITY window.title "Forms">
<!ENTITY lHeader "Forms">
<!ENTITY rHeader "Manage personal information">
<!ENTITY walletHeader.label "Form Manager">
<!ENTITY walletDescription.label "Form Manager can remember information about you so that filling out forms on webpages is faster.">
@ -24,7 +24,7 @@
<!ENTITY changePasswords.accesskey "c">
<!ENTITY encryptHeader.label "Encrypting versus Obscuring">
<!ENTITY encryptDescription.label "Sensitive data that is stored on your hard disk can be either encrypted or obscured. Encryption prevents the data from being read by an intruder but requires you to enter a password to access the data.">
<!ENTITY encryptDescription.label "Sensitive data that is stored on your hard disk can be encrypted to prevent the data from being read by an intruder. A password is used to access the data.">
<!ENTITY encryptEnabled.label "Use encryption when storing sensitive data.">
<!ENTITY encryptEnabled.accesskey "n">

View File

@ -21,7 +21,8 @@
<!ENTITY down.label "Download">
<!ENTITY cookies.label "Cookies">
<!ENTITY images.label "Images">
<!ENTITY wallet.label "Forms and Passwords">
<!ENTITY wallet.label "Forms">
<!ENTITY passwords.label "Passwords">
<!ENTITY cache.label "Cache">
<!ENTITY proxies.label "Proxies">
<!ENTITY smart.label "Software Installation">