home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 March / PCWMAR06.iso / Software / FromTheMag / Noscript / noscript-1.1.3.5-fx+mz.xpi / chrome / noscript.jar / content / noscript / noscriptOptions.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-12-08  |  6.2 KB  |  165 lines

  1. <?xml version="1.0"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.     NoScript - a Firefox extension for whitelist driven safe JavaScript execution
  4.     Copyright (C) 2004-2005 Giorgio Maone - g.maone@informaction.com
  5.  
  6.     This program is free software; you can redistribute it and/or modify
  7.     it under the terms of the GNU General Public License as published by
  8.     the Free Software Foundation; either version 2 of the License, or
  9.     (at your option) any later version.
  10.  
  11.     This program is distributed in the hope that it will be useful,
  12.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.     GNU General Public License for more details.
  15.  
  16.     You should have received a copy of the GNU General Public License
  17.     along with this program; if not, write to the Free Software
  18.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  19.  
  20. ***** END LICENSE BLOCK ***** -->
  21. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  22.  
  23. <!DOCTYPE dialog [
  24. <!ENTITY % noscript SYSTEM "chrome://noscript/locale/noscript.dtd" >
  25. %noscript;
  26. <!ENTITY % noscriptFB  SYSTEM "chrome://noscript/content/en-US/noscript.dtd" >
  27. %noscriptFB;
  28. ]
  29. >
  30. <dialog id="noscriptOptions" 
  31.   onload="nso_init()"
  32.   ondialogaccept="nso_save()"
  33.   title="&noscriptOptionsLong;"
  34.     buttons="accept,cancel"
  35.   flex="1"
  36.   persist="screenX screenY"
  37.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  38.   
  39.   <stringbundleset id="stringbundleset">
  40.     <stringbundle id="noscript-strings" src="chrome://noscript/locale/noscript.properties" />
  41.     <stringbundle id="noscript-stringsFB" src="chrome://noscript/content/en-US/noscript.properties" />
  42.   </stringbundleset>
  43.   
  44.   <script type="application/x-javascript" src="noscript.js" />
  45.   <script type="application/x-javascript" src="noscriptOptions.js" />
  46.   
  47.   <tabbox >
  48.   <tabs>
  49.     <tab label="&noscriptGeneral;"/>
  50.     <tab label="&noscriptAppearance;"/>
  51.     <tab label="&noscriptAdvanced;"/>
  52.   </tabs>
  53.     <tabpanels>
  54.       <tabpanel>
  55.   
  56.   <vbox flex="1">
  57.   <hbox>
  58.   <description style="width: 400px; white-space: normal" id="permissionsText">&noscriptPermissionsText;</description>
  59.   </hbox>
  60.   <separator class="thin"/>
  61.   <label value="&noscriptWebAddress;"/>
  62.   <hbox align="start">
  63.     <textbox id="urlText" flex="1" oninput="nso_urlChanged()"/>
  64.   </hbox>
  65.   <hbox pack="end">
  66.     <button disabled="true" id="addButton" label="&noscriptAllow;" 
  67.       accesskey="&noscriptAllow.accesskey;" 
  68.       oncommand="nso_allow()"/>
  69.   </hbox>
  70.   <separator class="thin"/>
  71.   <listbox id="urlList" seltype="multiple" 
  72.     onselect="nso_urlListChanged()"
  73.     onkeyup="if(event.keyCode==event.DOM_VK_DELETE) nso_remove();"
  74.     flex="1"
  75.     rows="8"
  76.   >
  77.   <listitem id="fake_url_item" label=" " />
  78.   </listbox>
  79.   <separator class="thin"/>
  80.   <hbox>
  81.     <button id="removeButton" disabled="true" label="&noscriptRemoveSelected;" oncommand="nso_remove()"/>
  82.     <spacer flex="1" />
  83.     <button id="importButton" label="&noscriptImport;" accesskey="&noscriptImport.accesskey;" 
  84.       oncommand="nso_import()"/>
  85.     <button id="exportButton" label="&noscriptExport;" accesskey="&noscriptExport.accesskey;" 
  86.        oncommand="nso_export()"/>
  87.   </hbox>
  88.   <separator class="thin"/>
  89.   <checkbox id="jsglobal" label="&noscriptGloballyEnabled;" />
  90.   </vbox>
  91.   </tabpanel>
  92.   <tabpanel>
  93.   <vbox flex="1">
  94.   <hbox><description>&noscriptShow;</description></hbox>
  95.    <separator class="thin"/>
  96.     <checkbox id="opt-statusIcon" label="&noscriptStatusIcon;" />
  97.     <checkbox id="opt-statusLabel" label="&noscriptStatusLabel;" />
  98.     <checkbox id="opt-ctxMenu" label="&noscriptCtxMenu;" />
  99.     <separator class="thin"/>
  100.     <vbox style="margin-left: 23px">
  101.      <checkbox id="opt-showBaseDomain" label="&noscriptBaseDom;" />
  102.      <checkbox id="opt-showDomain" label="&noscriptFullDom;" />
  103.      <checkbox id="opt-showAddress" label="&noscriptFullAddr;" />
  104.      <checkbox id="opt-showTemp" label="&noscriptTempCmd;" />
  105.     </vbox>
  106.     <separator class="groove"/>
  107.     <checkbox id="opt-autoReload" label="&noscriptAutoReload;" />
  108.     <checkbox id="opt-sound" label="&noscriptSound;" />
  109.     <vbox style="margin-left: 24px">
  110.       <hbox>
  111.         <textbox id="sampleURL" readonly="true" flex="1" />
  112.         <button id="sampleChooseButton" label="&noscriptSound.choose;" accesskey="&noscriptSound.choose.accesskey;" 
  113.           oncommand="nso_chooseSample()" />
  114.       </hbox>
  115.       <hbox align="right">
  116.         <spacer flex="1" />
  117.         <button label="&noscriptSound.play;" accesskey="&noscriptSound.play.accesskey;"
  118.           oncommand="nso_play()" />
  119.         <button label="&noscriptSound.reset;" accesskey="&noscriptSound.reset.accesskey;"
  120.           oncommand="nso_setSample(null)" />
  121.       </hbox>
  122.     </vbox>
  123.     <vbox id="notifyOpts">
  124.       <checkbox id="opt-notify" label="&noscriptNotify;" />
  125.       <checkbox id="opt-notify.bottom" label="&noscriptNotify.bottom;" style="margin-left: 24px" />
  126.       <checkbox id="opt-notify.hide" label="" style="margin-left: 24px" />
  127.     </vbox>
  128.   </vbox>
  129.   </tabpanel>
  130.   
  131.   
  132.   <tabpanel>
  133.     <vbox flex="1">
  134.     
  135.     <label class="header" value="&noscriptAdditionalPermissions;" />
  136.     <vbox>
  137.       <checkbox id="opt-allowClipboard" label="&noscriptAllowClipboard;" />
  138.     </vbox>
  139.    
  140.    
  141.     <vbox id="contentOpts" flex="1">
  142.      <separator class="groove"/>
  143.     <label class="header" value="&noscriptAdditionalRestrictions;" />
  144.      <hbox><description style="width: 400px; white-space: normal">&noscriptReloadWarn;</description></hbox>
  145.     <vbox>
  146.       <checkbox id="opt-forbidJava" label="&noscriptForbidJava;" />
  147.       <checkbox id="opt-forbidFlash" label="&noscriptForbidFlash;" />
  148.       <checkbox id="opt-forbidPlugins" label="&noscriptForbidPlugins;" />
  149.       <separator class="thin"/>
  150.       <checkbox id="opt-showPlaceholder" label="&noscriptShowPlaceholder;" />
  151.       <separator class="thin"/>
  152.       <checkbox id="opt-forbidBookmarklets" label="&noscriptForbidBookmarklets;" />
  153.       <separator class="thin"/>
  154.       <checkbox id="opt-confirmUnblock" label="&noscriptConfirmUnblock;" />
  155.       <separator class="thin"/>
  156.       <checkbox id="opt-truncateTitle" label="&noscriptTruncateTitle;" />
  157.     </vbox>
  158.     </vbox>
  159.    </vbox>
  160.   </tabpanel>
  161.   
  162.   </tabpanels>
  163.   </tabbox>
  164. </dialog>
  165.