home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 May / PCWorld_2003-05_cd.bin / Komunik / phoenix / chrome / browser.jar / content / browser / pref / pref.xul < prev   
Extensible Markup Language  |  2002-11-16  |  5KB  |  146 lines

  1. <?xml version="1.0"?> 
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  3.  
  4. <!DOCTYPE window SYSTEM "chrome://browser/locale/pref/pref.dtd" >
  5.  
  6. <dialog id="prefDialog" 
  7.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  8.         title="&prefWindow.title;" 
  9.         style="&prefWindow.size;"
  10.         windowtype="mozilla:preferences"
  11.         buttons="accept,cancel"
  12.         onload="Startup();"
  13.         ondialogaccept="return hPrefWindow.onOK(event);"
  14.         ondialogcancel="return hPrefWindow.onCancel(event);"
  15.         persist="screenX screenY"> 
  16.  
  17.   <script>
  18.   <![CDATA[
  19.  
  20.   var hPrefWindow = null;
  21.  
  22.   /** General startup routine for preferences dialog. 
  23.    *  Place all necessary modifications to pref tree here. 
  24.    **/
  25.   function Startup()
  26.     {
  27.       hPrefWindow = new nsPrefWindow('panelFrame');  
  28.       
  29.       if( !hPrefWindow )
  30.         throw "failed to create prefwindow";
  31.  
  32.       hPrefWindow.init();
  33.  
  34.       // If this call worked, we could center the window here:
  35.       // centerWindowOnScreen();
  36.       
  37.     }
  38.   
  39.   ]]>
  40.   
  41.   </script>        
  42.         
  43.   <stringbundle id="bundle_prefutilities"
  44.                src="chrome://browser/locale/pref/prefutilities.properties"/>
  45.   <script type="application/x-javascript" src="chrome://global/content/nsWidgetStateManager.js"/>
  46.   <script type="application/x-javascript" src="chrome://browser/content/pref/nsPrefWindow.js"/>
  47.  
  48.   <hbox flex="1">
  49.     <tree id="prefsTree" seltype="single" hidecolumnpicker="true" style="width: 13em;"
  50.               onselect="if( hPrefWindow ) hPrefWindow.switchPage();">
  51.       <treecols>
  52.         <treecol id="categoryCol" flex="1" hideheader="true" primary="true"/>
  53.       </treecols>
  54.     
  55.       <treechildren id="panelChildren">
  56.         <treeitem id="navigator">
  57.           <treerow>
  58.             <treecell url="chrome://browser/content/pref/pref-navigator.xul" label="&navigator.label;"/>
  59.           </treerow>
  60.         </treeitem>
  61.     
  62.         <treeitem>
  63.           <treerow>
  64.             <treecell url="chrome://browser/content/pref/pref-fonts.xul" label="&fonts.label;"/>
  65.           </treerow>
  66.         </treeitem>
  67.     
  68.         <treeitem id="themes-panel">
  69.           <treerow>
  70.             <treecell url="chrome://browser/content/pref/pref-themes.xul" label="&themes.label;"/>
  71.           </treerow>
  72.         </treeitem>
  73.     
  74.         <!-- XXX remove this when overlays.rdf works for navigator -->
  75.     
  76.         <treeitem>
  77.           <treerow>
  78.             <treecell url="chrome://browser/content/pref/pref-privacy.xul" label="&privacy.label;" />
  79.           </treerow>
  80.         </treeitem>
  81.     
  82.         <treeitem>
  83.           <treerow>
  84.             <treecell url="chrome://browser/content/pref/pref-connection.xul" label="&connection.label;" />
  85.           </treerow>
  86.         </treeitem>
  87.  
  88.         <treeitem>
  89.           <treerow>
  90.             <treecell url="chrome://browser/content/pref/pref-downloads.xul" label="&downloads.label;" />
  91.           </treerow>
  92.         </treeitem>   
  93.     
  94.         <treeitem id="advancedItem" container="true">
  95.           <treerow>
  96.             <treecell url="chrome://browser/content/pref/pref-advanced.xul" label="&advance.label;"/>
  97.           </treerow>
  98.           <treechildren id="advancedChildren">
  99.             <treeitem>
  100.               <treerow>
  101.                 <treecell url="chrome://browser/content/pref/pref-images.xul" label="&images.label;"/>
  102.               </treerow>
  103.             </treeitem>
  104.     
  105.             <treeitem>
  106.               <treerow>
  107.                 <treecell url="chrome://browser/content/pref/pref-scripts.xul" label="&scriptsAndWindows.label;"/> 
  108.               </treerow>
  109.             </treeitem>
  110.             <treeitem>
  111.               <treerow>
  112.                 <treecell url="chrome://browser/content/pref/pref-tabs.xul" label="&tabs.label;"/> 
  113.               </treerow>
  114.             </treeitem>
  115.             <treeitem id="winhooks">
  116.               <treerow>
  117.                 <treecell url="chrome://browser/content/pref/pref-winhooks.xul" label="&winhooks.label;"/>
  118.               </treerow>
  119.             </treeitem> 
  120.           </treechildren>
  121.         </treeitem>
  122.       </treechildren>
  123.     </tree>
  124.     <vbox flex="1">
  125.       <dialogheader id="header"/>
  126.       <iframe id="panelFrame" name="panelFrame" style="width: 0px" flex="1"/>
  127.    </vbox>
  128.   </hbox>
  129.  
  130.    <script type="application/x-javascript">
  131.     <![CDATA[
  132.       if(window.arguments && window.arguments[0]) {
  133.         document.getElementById("panelFrame").setAttribute("src", window.arguments[0] );
  134.         document.getElementById("panelFrame").setAttribute("tag", window.arguments[0] );
  135.       }
  136.       else {
  137.         document.getElementById("panelFrame").setAttribute("src", "chrome://browser/content/pref/pref-navigator.xul" );
  138.         document.getElementById("panelFrame").setAttribute("tag", "chrome://browser/content/pref/pref-navigator.xul" );
  139.       }
  140.     ]]>
  141.     </script>
  142.  
  143.   <separator/>
  144.      
  145. </dialog>
  146.