Includes patches for Bug #239929, #244800 and Bug #244134 git-svn-id: svn://10.0.0.236/trunk@158101 18797224-902f-48f8-a5cc-f745e15eee43
89 lines
3.6 KiB
XML
89 lines
3.6 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://communicator/skin/pref/pref.css"?>
|
|
|
|
<!DOCTYPE dialog SYSTEM "chrome://messenger/locale/mailPrefsOverlay.dtd" >
|
|
|
|
<dialog id="prefDialog"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
title="&prefWindow.title;"
|
|
style="&prefWindow.size;"
|
|
onload="Startup();"
|
|
windowtype="Mail:Options"
|
|
ondialogaccept="return hPrefWindow.onOK(event);"
|
|
ondialogcancel="return hPrefWindow.onCancel(event);"
|
|
persist="width height screenX screenY">
|
|
|
|
<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();
|
|
|
|
var url = "chrome://messenger/content/pref-mailnews.xul";
|
|
if(window.arguments && window.arguments[0])
|
|
url = window.arguments[0];
|
|
|
|
// now make sure the right button is higlighted
|
|
// loop through each child of prefCategories and look for a url match
|
|
var index = 0;
|
|
var prefsCategories = document.getElementById("prefsCategories");
|
|
for (var i = 0; i < prefsCategories.childNodes.length; i++)
|
|
if (url == prefsCategories.childNodes[i].getAttribute("url"))
|
|
{
|
|
index = i;
|
|
break;
|
|
}
|
|
|
|
var button = prefsCategories.childNodes[index];
|
|
button.click();
|
|
button.focus();
|
|
}
|
|
|
|
function switchPage(aEvent)
|
|
{
|
|
var newURL = aEvent.target.getAttribute("url");
|
|
var newTag = aEvent.target.getAttribute("tag");
|
|
if (hPrefWindow)
|
|
hPrefWindow.switchPage(newURL, newTag);
|
|
}
|
|
|
|
]]>
|
|
</script>
|
|
|
|
<stringbundle id="bundle_prefutilities"
|
|
src="chrome://communicator/locale/pref/prefutilities.properties"/>
|
|
<script type="application/x-javascript" src="chrome://global/content/nsWidgetStateManager.js"/>
|
|
<script type="application/x-javascript" src="chrome://communicator/content/pref/nsPrefWindow.js"/>
|
|
|
|
<hbox flex="1">
|
|
|
|
<vbox id="prefsCategories" class="listBox buttonBox" oncommand="switchPage(event);" orient="vertical" lastpanel="0" onmouseover="focus();">
|
|
<button id="mailnews" orient="vertical" class="buttonBoxButton" type="radio" group="categories" url="chrome://messenger/content/pref-mailnews.xul" label="&mailonly.label;"/>
|
|
<button id="display" orient="vertical" class="buttonBoxButton" type="radio" group="categories" url="chrome://messenger/content/pref-viewing_messages.xul" label="&viewingMessages.label;"/>
|
|
<button id="mailcomposepref" orient="vertical" class="buttonBoxButton" type="radio" group="categories" url="chrome://messenger/content/messengercompose/pref-composing_messages.xul" label="&composingMessages.label;"/>
|
|
<button id="attachments" orient="vertical" class="buttonBoxButton" type="radio" group="categories" url="chrome://mozapps/content/downloads/pref-downloads.xul" label="&attachments.label;"/>
|
|
<button id="fonts" orient="vertical" class="buttonBoxButton" type="radio" group="categories" url="chrome://communicator/content/pref/pref-fonts.xul" label="&fonts.label;"/>
|
|
<button id="advanced" orient="vertical" class="buttonBoxButton" type="radio" group="categories" url="chrome://messenger/content/pref-advanced.xul" label="&advanced.label;"/>
|
|
</vbox>
|
|
|
|
<vbox flex="1">
|
|
<dialogheader id="header"/>
|
|
<iframe id="panelFrame" name="panelFrame" flex="1"/>
|
|
</vbox>
|
|
</hbox>
|
|
|
|
</dialog>
|