home *** CD-ROM | disk | FTP | other *** search
/ Minami 80 / MINAMI80.iso / Extra / DivXInstaller.exe / $PLUGINSDIR / GoogleToolbarFirefox.msi / xpi / chrome / tb-amulet-of-protection / content / protection-preferences.xul < prev    next >
Extensible Markup Language  |  2006-05-15  |  3KB  |  96 lines

  1. <?xml version="1.0"?>
  2. <!--
  3. 12345678901234567890123456789012345678901234567890123456789012345678901234567890
  4. -->
  5.  
  6. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  7. <?xml-stylesheet 
  8.   href="chrome://tb-amulet-of-protection/content/protection-preferences.css" 
  9.   type="text/css" ?>
  10.  
  11. <!DOCTYPE window SYSTEM "chrome://google-toolbar/locale/google-toolbar.dtd">
  12.  
  13. <prefwindow id="amulet-preferences" buttons="accept,cancel"
  14.   type="child"
  15.   xmlns:html="http://www.w3.org/1999/xhtml"
  16.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  17.   pack="center" style="width: 35em; height: 23em;"
  18.   ondialogaccept="writeOurPreference()"
  19.   title="&amulet.preferences.title;" >
  20.  
  21. <script>
  22. <![CDATA[
  23.   // The preferences window can be opened from two places: the Tools menu
  24.   // (in which case this window's opener has the controller) or the extension
  25.   // manager dialog. In the extension manager dialog case, the main 
  26.   // toolbar options config dialog opens, then this window. So let's
  27.   // walk up the chain of openers until we find the controller.
  28.   
  29.   var controller = null;
  30.   var win = window;
  31.   while (win && !controller) {
  32.     if (win.PROTTB_controller)
  33.       controller = win.PROTTB_controller;
  34.     win = win.opener;
  35.   }
  36.  
  37.   function displayHomeLink() {
  38.     controller.commandController_.doCommand("amulet-preferences-home-link"); 
  39.   } 
  40.  
  41.   function displayPolicyLink() {
  42.     controller.commandController_.doCommand("amulet-preferences-policy-link");
  43.   }
  44.  
  45.   function writeOurPreference() {
  46.     var p = document.getElementById("amulet-preferences-general");
  47.     p.writePreferences(true);
  48.   }
  49. ]]>
  50. </script>
  51.  
  52.   <prefpane id="amulet-preferences-general"
  53.   label=""
  54.   flex="1">
  55.  
  56.   <preferences>
  57.     <preference id="pref-remote-check"
  58.       name="google.toolbar.button_option.safebrowsing.advancedprotection"
  59.       type="bool"
  60.       useDefault="true"
  61.       defaultValue="false" />
  62.   </preferences>
  63.  
  64.   <vbox flex="1" pack="center">
  65.  
  66.     <groupbox id="pref-groupbox" pack="start">
  67.       <caption label="&amulet.preferences.check.caption;" />
  68.  
  69.       <description class="amulet-preferences-paragraph">
  70.         &amulet.preferences.check.part1;
  71.         <html:a class="amulet-preferences-link"
  72.           onclick="displayHomeLink();" 
  73.           href="#">&amulet.preferences.check.link1;</html:a>
  74.         &amulet.preferences.check.part2;
  75.         <html:a onclick="displayPolicyLink();"
  76.           class="amulet-preferences-link"
  77.           href="#">&amulet.preferences.check.link2;</html:a>
  78.         &amulet.preferences.check.part3;
  79.       </description>
  80.  
  81.       <radiogroup align="start" preference="pref-remote-check">
  82.         <radio label="&amulet.preferences.check.enable;"
  83.           value="true"
  84.           tooltiptext="&amulet.preferences.check.enable.tooltip;"
  85.           accesskey="&amulet.preferences.check.enable.accesskey;" />
  86.         <radio label="&amulet.preferences.check.disable;"
  87.           value="false"
  88.           tooltiptext="&amulet.preferences.check.disable.tooltip;"
  89.           accesskey="&amulet.preferences.check.disable.accesskey;" />
  90.       </radiogroup>
  91.     </groupbox>
  92.  
  93.   </vbox>
  94.   </prefpane>
  95. </prefwindow>
  96.