gecko-dev/xpfe/components/prefwindow/resources/content/pref.xul

80 lines
2.7 KiB
Plaintext
Raw Normal View History

1999-06-04 23:28:56 +00:00
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
2000-04-25 02:17:38 +00:00
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
2000-04-19 21:42:30 +00:00
<?xul-overlay href="chrome://communicator/content/pref/preftree.xul"?>
2000-04-19 21:42:30 +00:00
<!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/pref.dtd" >
2000-04-25 02:17:38 +00:00
<window id="prefWindow"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="Foopy"
orient="vertical"
class="dialog"
persist="screenX screenY width height"
screenX="24" screenY="24"
2000-05-04 04:31:12 +00:00
onload="Startup();"
2000-04-25 02:17:38 +00:00
width="620" height="470">
2000-05-04 04:31:12 +00:00
<script>
<![CDATA[
var hPrefWindow = null;
/** General startup routine for preferences dialog.
* Place all necessary modifications to pref tree here.
**/
function Startup()
{
hPrefWindow = new nsPrefWindow('panelFrame');
if( !hPrefWindow )
throw "failed to create prefwindow";
// modify the cookie tree entry if imageblocking is disabled.
if( hPrefWindow.getPref( "bool", "imageblocker.enabled" ) )
{
dump("*** foopy = " + hPrefWindow.getPref( "bool", "imageblocker.enabled" ) + "\n");
var element = document.getElementById( "cookiesCell" );
element.setAttribute( "value", element.getAttribute( "valueWithImages" ) );
}
}
]]>
</script>
2000-04-25 02:17:38 +00:00
<script language="javascript" src="chrome://global/content/nsWidgetStateManager.js"></script>
<script language="javascript" src="chrome://communicator/content/pref/nsPrefWindow.js"></script>
<keyset id="keyset"/>
<box flex="1">
<!-- tree sidebar -->
2000-05-12 23:42:55 +00:00
<tree class="inset" id="prefsTree" flex="2" style="width: 170px;"/>
2000-05-05 00:57:51 +00:00
<iframe id="panelFrame" name="panelFrame" style="width:0px" flex="6"/>
2000-04-25 02:17:38 +00:00
<script language="JavaScript">
<![CDATA[
if( window.arguments && window.arguments[0] ) {
dump("*** panel to load is = " + window.arguments[0] + "\n");
document.getElementById("panelFrame").setAttribute("src", window.arguments[0] );
2000-04-25 02:17:38 +00:00
document.getElementById("panelFrame").setAttribute("tag", window.arguments[0] );
}
else {
dump("*** window.arguments not found, defaulting to navigator panel \n");
2000-04-19 21:42:30 +00:00
document.getElementById("panelFrame").setAttribute("src", "chrome://communicator/content/pref/pref-navigator.xul" );
2000-04-25 02:17:38 +00:00
document.getElementById("panelFrame").setAttribute("tag", "chrome://communicator/content/pref/pref-navigator.xul" );
}
]]>
</script>
</box>
<separator class="groove"/>
2000-04-25 02:17:38 +00:00
<box id="okCancelButtonsRight" />
</window>