home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-macos9-1.3.1.sea.bin / Mozilla1.3.1 / Chrome / comm.jar / content / communicator / wallet / WalletViewer.xul < prev   
Extensible Markup Language  |  2003-06-08  |  2KB  |  67 lines

  1. <?xml version="1.0"?> 
  2. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?> 
  3.  
  4. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
  5. <?xul-overlay href="chrome://communicator/content/wallet/WalletTree.xul"?>
  6.  
  7. <!DOCTYPE window SYSTEM "chrome://communicator/locale/wallet/WalletViewer.dtd" >
  8.  
  9. <window id="walletViewer" 
  10.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  11.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  12.         title="&windowtitle.label;" 
  13.         class="dialog"
  14.         persist="screenX screenY width height"
  15.         screenX="24" screenY="24"
  16.         onload="Startup();"
  17.         width="720" height="470"> 
  18.  
  19.   <script>
  20.   <![CDATA[
  21.  
  22.   var hWalletViewer = null;
  23.  
  24.   /** General startup routine for form-manager dialog. 
  25.    **/
  26.   function Startup()
  27.     {
  28.       hWalletViewer = new nsWalletViewer('panelFrame');  
  29.       
  30.       if( !hWalletViewer )
  31.         throw "failed to create walletviewer";
  32.  
  33.       hWalletViewer.init();
  34.  
  35.       // If this call worked, we could center the window here:
  36.       // centerWindowOnScreen();
  37.       
  38.     }
  39.   ]]>
  40.   </script>        
  41.         
  42.   <script type="application/x-javascript" src="chrome://communicator/content/wallet/WalletViewer.js"/>
  43.   <script type="application/x-javascript" src="chrome://global/content/strres.js" />
  44.   <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>
  45.   <keyset id="dialogKeys"/>
  46.  
  47.   <hbox flex="1">
  48.     <!-- tree sidebar -->
  49.     <vbox style="width: 17em">
  50.       <tree id="panelTree" style="width: 0px" flex="1"/>      
  51.       <button id="clearButton" label="&removeall.label;" oncommand="ClearAll()"/>
  52.     </vbox>
  53.     <iframe id="panelFrame" name="panelFrame" style="width:0px" flex="1"/>
  54.   </hbox>
  55.  
  56.   <separator/>
  57.  
  58.   <hbox id="okCancelHelpButtonsRight" />
  59.  
  60.   <script type="application/x-javascript">
  61.     <![CDATA[
  62.       document.getElementById("panelFrame").setAttribute("src", "chrome://communicator-region/locale/wallet/WalletName.xul");
  63.       document.getElementById("panelFrame").setAttribute("tag", "" );
  64.     ]]>
  65.   </script>
  66. </window>
  67.