gecko-dev/suite/common/pref/pref.xul

84 строки
3.1 KiB
XML

<?xml version="1.0"?>
<!-- -*- Mode: HTML -*- -->
<!-- The contents of this file are subject to the Netscape Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/NPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is Mozilla Communicator client code, released
March 31, 1998.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
Contributor(s): ______________________________________. -->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<?xul-overlay href="chrome://pref/content/preftree.xul"?>
<?xul-overlay href="chrome://global/content/platformDialogOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref.dtd" >
<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="&prefWindow.title;"
align="vertical"
class="dialog"
onload="window.handle = new PrefWindow( 'panelFrame' );"
persist="width height"
width="620" height="470">
<html:script language="javascript" src="chrome://global/content/strres.js" />
<html:script language="javascript" src="chrome://global/content/dialogOverlay.js" />
<html:script language="javascript" src="chrome://global/content/widgetStateManager.js" />
<html:script language="javascript" src="chrome://pref/content/pref.js" />
<keyset id="keyset"/>
<spring style="height: 7px"/>
<box align="horizontal" flex="100%" style="width: 100%">
<!-- we may like to load this into a tabpanel set as per mpt's post -->
<spring style="width: 7px;"/>
<!-- tree sidebar -->
<tree id="prefsTree" class="inset"/>
<spring style="width: 10px;"/>
<!-- content frame -->
<html:iframe id="panelFrame" name="panelFrame" style="width:0px" flex="6"/>
<html: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] );
}
else {
dump("*** window.arguments not found, defaulting to navigator panel \n");
document.getElementById("panelFrame").setAttribute("src", "chrome://pref/content/pref-navigator.xul" );
}
]]>
</html:script>
<spring style="width: 7px;"/>
</box>
<html:div class="separator" align="horizontal" style="margin-bottom: -2px;"/>
<box align="horizontal">
<spring flex="100%"/>
<box id="okCancelButtons" style="margin-bottom: -2px;"/>
</box>
<spring style="height: 7px"/>
<keyset>
<key id="fooKey" key="p" xulkey="true" shift="true" onkeydown="foo()"/>
</keyset>
</window>