home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / browser.xpi / bin / chrome / comm.jar / content / cookie / pref-images.xul < prev   
Encoding:
Extensible Markup Language  |  2001-08-21  |  5.2 KB  |  135 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.      Hσkan Waara <hwaara@chello.se>
  22.      Peter Annema <disttsc@bart.nl>
  23.   -->
  24. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  25. <?xml-stylesheet href="chrome://communicator/skin/dialogOverlay.css" type="text/css"?>
  26.  
  27. <!DOCTYPE window [
  28. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  29. %brandDTD;
  30. <!ENTITY % prefImagesDTD SYSTEM "chrome://cookie/locale/pref-images.dtd" >
  31. %prefImagesDTD;
  32. ]>
  33.  
  34. <window xmlns:html="http://www.w3.org/1999/xhtml" id="imagesWindow"
  35.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  36.         class="color-dialog"
  37.         orient="vertical"
  38.         onload="init();">
  39.           
  40.   <script type="application/x-javascript" src="chrome://cookie/content/cookieOverlay.js"/>
  41.  
  42.   <script type="application/x-javascript">
  43.   <![CDATA[
  44.   
  45.   var _elementIDs = ["accOrgImages", "networkImageBehaviour", "networkImageWarnAboutImages", "imageLooping"];
  46.  
  47.   function init()
  48.   {
  49.     parent.initPanel('chrome://cookie/content/pref-images.xul');
  50.  
  51.     imageBlockingEnabled();
  52.  
  53.     var enabled = document.getElementById("networkImageBehaviour").value != "2";
  54.     setWarnAboutImagesEnabled(enabled);
  55.   }
  56.  
  57.   // Present finer control over image loading to the user.
  58.   // enable image blocker if "imageblocker.enabled" pref is true
  59.   function imageBlockingEnabled()
  60.   {
  61.     if (parent.hPrefWindow.getPref("bool", "imageblocker.enabled"))
  62.       document.getElementById("haveImageBlocking").removeAttribute("hidden");
  63.   }
  64.  
  65.   function setWarnAboutImagesEnabled(aEnabled)
  66.   {
  67.     var warnCheckbox = document.getElementById("networkImageWarnAboutImages");
  68.     warnCheckbox.disabled = !aEnabled;
  69.     if (parent.hPrefWindow.getPrefIsLocked(warnCheckbox.getAttribute("prefstring")) )
  70.       warnCheckbox.disabled = true;
  71.   }
  72.  
  73.   ]]>
  74.   </script>
  75.  
  76.   <broadcaster id="haveImageBlocking" hidden="true"/>
  77.  
  78.   <hbox class="box-smallheader" id="imagesHeader" title="&lHeader;"/>
  79.  
  80.   <groupbox orient="vertical" id="imagesArea">
  81.     <label value="&imageBlocking.label;"/>
  82.  
  83.     <html>&imageDetails;</html>
  84.  
  85.     <radiogroup id="networkImageBehaviour" orient="vertical" autostretch="never"
  86.                 pref="true" preftype="int" prefstring="network.image.imageBehavior"
  87.                 prefattribute="value">
  88.       <radio group="networkImageBehaviour" value="2" label="&disableImages.label;"
  89.              accesskey="&disableImages.accesskey;"
  90.              oncommand="setWarnAboutImagesEnabled(false);"/>
  91.       <radio group="networkImageBehaviour" value="1" label="&accOrgImagesRadio.label;"
  92.              accesskey="&accOrgImagesRadio.accesskey;"
  93.              id="accOrgImages" observes="haveImageBlocking"
  94.              oncommand="setWarnAboutImagesEnabled(true);"/>
  95.       <radio group="networkImageBehaviour" value="0" label="&accAllImagesRadio.label;"
  96.              accesskey="&accAllImagesRadio.accesskey;"
  97.              oncommand="setWarnAboutImagesEnabled(true);"/>
  98.     </radiogroup>
  99.  
  100.     <separator observes="haveImageBlocking"/>
  101.  
  102.     <hbox autostretch="never">
  103.       <checkbox id="networkImageWarnAboutImages" label="&warnAboutImages.label;"
  104.                 accesskey="&warnAboutImages.accesskey;" observes="haveImageBlocking"
  105.                 pref="true" preftype="bool" prefattribute="checked"
  106.                 prefstring="network.image.warnAboutImages"/>
  107.     </hbox>
  108.  
  109.     <separator observes="haveImageBlocking"/>
  110.  
  111.     <hbox pack="end">
  112.       <button class="dialog" id="viewImages" label="&viewImages.label;"
  113.               accesskey="&viewImages.accesskey;" oncommand="viewImages();"
  114.               observes="haveImageBlocking"
  115.               pref="true" preftype="bool"
  116.               prefstring="pref.advanced.images.disable_button.view_image" prefattribute="disabled"/>
  117.     </hbox>
  118.  
  119.   </groupbox>
  120.   <groupbox orient="vertical">
  121.     <label value="&animLoopingTitle.label;"/>
  122.     <radiogroup id="imageLooping" orient="vertical" autostretch="never"
  123.                 pref="true" preftype="string" prefstring="image.animation_mode"
  124.                 prefattribute="value">
  125.         <radio group="imageLooping" value="normal" label="&animLoopAsSpecified.label;"
  126.                accesskey="&animLoopAsSpecified.accesskey;"/>
  127.         <radio group="imageLooping" value="once" label="&animLoopOnce.label;"
  128.                accesskey="&animLoopOnce.accesskey;"/>
  129.         <radio group="imageLooping" value="none" label="&animLoopNever.label;"
  130.                accesskey="&animLoopNever.accesskey;"/>
  131.     </radiogroup>
  132.   </groupbox>
  133.  
  134. </window>
  135.