home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 November / november_2001.iso / Browsers / Netscape 6.1 / browser.xpi / bin / chrome / comm.jar / content / wallet / pref-passwords.xul < prev    next >
Encoding:
Extensible Markup Language  |  2001-04-11  |  3.6 KB  |  99 lines

  1. <?xml version="1.0"?> 
  2.  
  3. <!--
  4.    The contents of this file are subject to the Netscape Public
  5.    License Version 1.1 (the "License"); you may not use this file
  6.    except in compliance with the License. You may obtain a copy of
  7.    the License at http://www.mozilla.org/NPL/
  8.     
  9.    implied. See the License for the specific language governing
  10.    rights and limitations under the License.
  11.     
  12.    The Original Code is Mozilla Communicator client code, released
  13.    March 31, 1998.
  14.    
  15.    The Initial Developer of the Original Code is Netscape
  16.    Communications Corporation. Portions created by Netscape are
  17.    Copyright (C) 1998-1999 Netscape Communications Corporation. All
  18.    Rights Reserved.
  19.    
  20.    Contributor(s): 
  21.   -->
  22. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  23. <?xml-stylesheet href="chrome://communicator/skin/dialogOverlay.css" type="text/css"?>
  24.  
  25. <!DOCTYPE window [
  26. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  27. %brandDTD;
  28. <!ENTITY % prefWalletDTD SYSTEM "chrome://wallet/locale/pref-passwords.dtd" >
  29. %prefWalletDTD;
  30. ]>
  31. <window xmlns:html="http://www.w3.org/1999/xhtml"
  32.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  33.         class="color-dialog"
  34.         orient="vertical"
  35.         onload="parent.initPanel('chrome://wallet/content/pref-passwords.xul');">
  36.  
  37.   <script type="application/x-javascript">
  38.   <![CDATA[
  39.     var _elementIDs = ["signonRememberSignons", "encryptEnabled"];
  40.   ]]>
  41.   </script>
  42.  
  43.   <script type="application/x-javascript">
  44.   <![CDATA[
  45.     function viewSignons()
  46.     {
  47.       window.openDialog("chrome://communicator/content/wallet/SignonViewer.xul","","modal=yes,chrome,resizable=yes", "S");
  48.     }
  49.  
  50.     function changePasswords()
  51.     {
  52.       wallet = Components.classes['@mozilla.org/wallet;1'];
  53.       wallet = wallet.getService();
  54.       wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService);
  55.       wallet.WALLET_ChangePassword();
  56.     }
  57.  
  58.     function initReencryptCallback()
  59.     {
  60.       wallet = Components.classes['@mozilla.org/wallet/wallet-service;1'];
  61.       wallet = wallet.getService();
  62.       wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService);
  63.       wallet.WALLET_InitReencryptCallback(window);
  64.     }
  65.  
  66.   ]]>
  67.   </script>
  68.         
  69.   <box class="box-smallheader" title="&lHeader;"/>
  70.  
  71.   <titledbox orient="vertical">
  72.     <label value="&signonHeader.label;"/>
  73.     <html flex="1">&signonDescription.label;</html>
  74.     <box autostretch="never">
  75.       <checkbox id="signonRememberSignons" label="&signonEnabled.label;" accesskey="&signonEnabled.accesskey;"
  76.               pref="true" preftype="bool" prefstring="signon.rememberSignons"
  77.               prefattribute="checked"/>
  78.     </box>
  79.     <box autostretch="never" halign="right">
  80.       <button class="dialog" label="&viewSignons.label;" accesskey="&viewSignons.accesskey;"
  81.               oncommand="viewSignons();"
  82.               id="viewStoredPassword" pref="true" preftype="bool"
  83.               prefstring="pref.advanced.password.disable_button.view_stored_password" prefattribute="disabled"/>
  84.     </box>
  85.   </titledbox>
  86.  
  87.   <titledbox orient="vertical">
  88.     <label value="&encryptHeader.label;"/>
  89.     <html flex="1">&encryptDescription.label;</html>
  90.     <box autostretch="never">
  91.       <checkbox id="encryptEnabled" label="&encryptEnabled.label;" accesskey="&encryptEnabled.accesskey;"
  92.               pref="true" preftype="bool" prefstring="wallet.crypto"
  93.               prefattribute="checked" oncommand="initReencryptCallback();"/>
  94.     </box>
  95.  
  96.   </titledbox>
  97.  
  98. </window>
  99.