mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 12:15:51 +00:00
76 lines
2.3 KiB
XML
76 lines
2.3 KiB
XML
<?xml version="1.0"?>
|
|
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
|
|
|
|
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
|
|
<?xul-overlay href="chrome://communicator/content/pref/preftree.xul"?>
|
|
|
|
<!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/pref.dtd" >
|
|
|
|
<window id="prefWindow"
|
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
title="&prefWindow.title;"
|
|
orient="vertical"
|
|
class="dialog"
|
|
persist="screenX screenY width height"
|
|
screenX="24" screenY="24"
|
|
onload="Startup();"
|
|
width="620" height="470">
|
|
|
|
<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";
|
|
|
|
hPrefWindow.init();
|
|
|
|
// If this call worked, we could center the window here:
|
|
// centerWindowOnScreen();
|
|
|
|
}
|
|
|
|
]]>
|
|
|
|
</script>
|
|
|
|
<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 -->
|
|
<tree class="inset" id="prefsTree" style="width: 0px" flex="3"/>
|
|
|
|
<iframe id="panelFrame" name="panelFrame" style="width:0px" flex="7"/>
|
|
<script language="JavaScript">
|
|
<![CDATA[
|
|
if( window.arguments && window.arguments[0] ) {
|
|
document.getElementById("panelFrame").setAttribute("src", window.arguments[0] );
|
|
document.getElementById("panelFrame").setAttribute("tag", window.arguments[0] );
|
|
}
|
|
else {
|
|
document.getElementById("panelFrame").setAttribute("src", "chrome://communicator/content/pref/pref-navigator.xul" );
|
|
document.getElementById("panelFrame").setAttribute("tag", "chrome://communicator/content/pref/pref-navigator.xul" );
|
|
}
|
|
]]>
|
|
</script>
|
|
</box>
|
|
|
|
<separator/>
|
|
|
|
<box id="okCancelButtonsRight" />
|
|
|
|
</window>
|