1999-06-04 23:28:56 +00:00
|
|
|
<?xml version="1.0"?>
|
1999-08-10 02:48:56 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
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/
|
|
|
|
|
|
|
|
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):
|
2006-05-17 02:32:27 +00:00
|
|
|
Mike Kowalski <mikejk@ameritech.net>
|
1999-08-10 02:48:56 +00:00
|
|
|
-->
|
2006-05-17 02:24:52 +00:00
|
|
|
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
|
1999-08-10 02:48:56 +00:00
|
|
|
|
2006-05-17 02:32:27 +00:00
|
|
|
<!DOCTYPE window [
|
|
|
|
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd">
|
|
|
|
%brandDTD;
|
|
|
|
<!ENTITY % prefAdvancedDTD SYSTEM "chrome://communicator/locale/pref/pref-advanced.dtd"> %prefAdvancedDTD;
|
|
|
|
]>
|
1999-06-04 23:28:56 +00:00
|
|
|
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 02:31:28 +00:00
|
|
|
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
2006-05-17 02:31:51 +00:00
|
|
|
onload="parent.initPanel('chrome://communicator/content/pref/pref-advanced.xul');"
|
|
|
|
headertitle="&lHeader;">
|
2006-05-17 02:24:52 +00:00
|
|
|
|
2006-05-17 02:28:42 +00:00
|
|
|
<script type="application/x-javascript">
|
2006-05-17 02:24:52 +00:00
|
|
|
<![CDATA[
|
2006-05-17 02:26:11 +00:00
|
|
|
var panel = "chrome://communicator/content/pref/pref-advanced.xul";
|
2006-05-17 02:32:06 +00:00
|
|
|
var _elementIDs = ["advancedJavaAllow", "advancedMailFTP", "advancedMailFTPAddress"];
|
2006-05-17 02:27:59 +00:00
|
|
|
|
2006-05-17 02:31:18 +00:00
|
|
|
function Startup() {
|
2006-05-17 02:27:59 +00:00
|
|
|
ftpCheck();
|
2006-05-17 02:31:18 +00:00
|
|
|
turboCheck();
|
2006-05-17 02:27:59 +00:00
|
|
|
}
|
|
|
|
|
2006-05-17 02:31:18 +00:00
|
|
|
function ftpCheck() {
|
2006-05-17 02:27:59 +00:00
|
|
|
var checked = document.getElementById("advancedMailFTP").checked;
|
|
|
|
var field = document.getElementById("advancedMailFTPAddress");
|
2006-05-17 02:29:14 +00:00
|
|
|
field.disabled = !checked;
|
2006-05-17 02:29:19 +00:00
|
|
|
if (checked)
|
|
|
|
field.focus();
|
2006-05-17 02:27:59 +00:00
|
|
|
}
|
Fix for http://bugzilla.mozilla.org/show_bug.cgi?id=84882. Add a entry, windows
only, the the advanced prefs panel. This is not a pref, but UI that has the
following semantics:
when the panel loads, if there is a shortcut in the windows startup folder for
turbo mode, the checkbox in the UI is set. Otherwise, it is clear,
when the user hits OK, if the checkbox is not set, the shortcut is removed, if
necessary. Otherwise, if the checkbox is set, the shortcut is added, if necessary.
r=ssu, sr=mscott, a=asa
2006-05-17 02:29:18 +00:00
|
|
|
|
2006-05-17 02:31:18 +00:00
|
|
|
/*
|
|
|
|
* Name: turboCheck()
|
|
|
|
*
|
|
|
|
* Arguments: none
|
|
|
|
*
|
|
|
|
* Description: This function is called when the root advanced prefs panel
|
|
|
|
* is loaded. The turbo mode setting is not exactly a preference -- setting
|
|
|
|
* the checkbox should (on leaving the prefs with an "Ok") result in a call
|
|
|
|
* to the backend to do the necessary win32 registry twiddling needed for
|
|
|
|
* turbo mode to go into effect. Clearing it should undo this work. We need
|
|
|
|
* to call the backend to determine if turbo mode is enabled (since we are
|
|
|
|
* required to check for it in a non-trivial way) and then explicitly set the
|
|
|
|
* checkbox here based on what we find. Finally, we have to hide the checkbox
|
|
|
|
* (and the group box that frames it) if we are not executing on a Win32
|
|
|
|
* platform.
|
|
|
|
*
|
|
|
|
* Return Value: void
|
|
|
|
*
|
|
|
|
* Original Code: syd@netscape.com 6/8/2001
|
|
|
|
*
|
|
|
|
*/
|
Fix for http://bugzilla.mozilla.org/show_bug.cgi?id=84882. Add a entry, windows
only, the the advanced prefs panel. This is not a pref, but UI that has the
following semantics:
when the panel loads, if there is a shortcut in the windows startup folder for
turbo mode, the checkbox in the UI is set. Otherwise, it is clear,
when the user hits OK, if the checkbox is not set, the shortcut is removed, if
necessary. Otherwise, if the checkbox is set, the shortcut is added, if necessary.
r=ssu, sr=mscott, a=asa
2006-05-17 02:29:18 +00:00
|
|
|
|
|
|
|
function turboCheck()
|
|
|
|
{
|
2006-05-17 02:30:51 +00:00
|
|
|
var frame = document.getElementById("perfSettings");
|
|
|
|
if (navigator.platform != "Win32") {
|
|
|
|
frame.setAttribute("hidden", "true");
|
|
|
|
return;
|
|
|
|
}
|
2006-05-17 02:31:19 +00:00
|
|
|
if (!("isTurboEnabled" in parent))
|
2006-05-17 02:31:20 +00:00
|
|
|
parent.isTurboEnabled = -1;
|
|
|
|
else {
|
2006-05-17 02:31:19 +00:00
|
|
|
document.getElementById("enableTurbo").checked = parent.isTurboEnabled;
|
|
|
|
return;
|
|
|
|
}
|
2006-05-17 02:31:18 +00:00
|
|
|
var winhooksService = Components.classes["@mozilla.org/winhooks;1"].getService(Components.interfaces.nsIWindowsHooks);
|
2006-05-17 02:31:19 +00:00
|
|
|
if (winhooksService) {
|
2006-05-17 02:32:07 +00:00
|
|
|
parent.isTurboEnabled = winhooksService.isOptionEnabled("-turbo");
|
2006-05-17 02:31:20 +00:00
|
|
|
document.getElementById("enableTurbo").checked = parent.isTurboEnabled;
|
2006-05-17 02:31:19 +00:00
|
|
|
}
|
2006-05-17 02:31:18 +00:00
|
|
|
|
2006-05-17 02:30:51 +00:00
|
|
|
parent.hPrefWindow.registerOKCallbackFunc( saveTurboSetting );
|
Fix for http://bugzilla.mozilla.org/show_bug.cgi?id=84882. Add a entry, windows
only, the the advanced prefs panel. This is not a pref, but UI that has the
following semantics:
when the panel loads, if there is a shortcut in the windows startup folder for
turbo mode, the checkbox in the UI is set. Otherwise, it is clear,
when the user hits OK, if the checkbox is not set, the shortcut is removed, if
necessary. Otherwise, if the checkbox is set, the shortcut is added, if necessary.
r=ssu, sr=mscott, a=asa
2006-05-17 02:29:18 +00:00
|
|
|
}
|
|
|
|
|
2006-05-17 02:31:18 +00:00
|
|
|
/*
|
|
|
|
* Name: saveTurboSetting()
|
|
|
|
*
|
|
|
|
* Arguments: none
|
|
|
|
*
|
|
|
|
* Description: This function is called when the user hits the OK button in
|
|
|
|
* the preferences panel. The function determines what the turbo "preference"
|
|
|
|
* setting is and performs the appropriate action to enable or disable turbo mode.
|
|
|
|
*
|
|
|
|
* Return Value: void
|
|
|
|
*
|
|
|
|
* Original Code: syd@netscape.com 6/9/2001
|
|
|
|
*
|
|
|
|
*/
|
Fix for http://bugzilla.mozilla.org/show_bug.cgi?id=84882. Add a entry, windows
only, the the advanced prefs panel. This is not a pref, but UI that has the
following semantics:
when the panel loads, if there is a shortcut in the windows startup folder for
turbo mode, the checkbox in the UI is set. Otherwise, it is clear,
when the user hits OK, if the checkbox is not set, the shortcut is removed, if
necessary. Otherwise, if the checkbox is set, the shortcut is added, if necessary.
r=ssu, sr=mscott, a=asa
2006-05-17 02:29:18 +00:00
|
|
|
|
2006-05-17 02:31:18 +00:00
|
|
|
function saveTurboSetting() {
|
|
|
|
if (navigator.platform != "Win32")
|
|
|
|
return;
|
Fix for http://bugzilla.mozilla.org/show_bug.cgi?id=84882. Add a entry, windows
only, the the advanced prefs panel. This is not a pref, but UI that has the
following semantics:
when the panel loads, if there is a shortcut in the windows startup folder for
turbo mode, the checkbox in the UI is set. Otherwise, it is clear,
when the user hits OK, if the checkbox is not set, the shortcut is removed, if
necessary. Otherwise, if the checkbox is set, the shortcut is added, if necessary.
r=ssu, sr=mscott, a=asa
2006-05-17 02:29:18 +00:00
|
|
|
|
2006-05-17 02:31:18 +00:00
|
|
|
var winhooksService = Components.classes["@mozilla.org/winhooks;1"].getService(Components.interfaces.nsIWindowsHooks);
|
2006-05-17 02:31:20 +00:00
|
|
|
if (winhooksService && parent.isTurboEnabled != -1) {
|
2006-05-17 02:31:19 +00:00
|
|
|
if (parent.isTurboEnabled)
|
2006-05-17 02:32:07 +00:00
|
|
|
winhooksService.startupAddOption("-turbo");
|
2006-05-17 02:31:18 +00:00
|
|
|
else
|
2006-05-17 02:32:07 +00:00
|
|
|
winhooksService.startupRemoveOption("-turbo");
|
2006-05-17 02:31:18 +00:00
|
|
|
var appShell = Components.classes['@mozilla.org/appshell/appShellService;1'].getService();
|
|
|
|
appShell = appShell.QueryInterface( Components.interfaces.nsIAppShellService );
|
|
|
|
var nativeAppSupport = null;
|
|
|
|
try {
|
|
|
|
nativeAppSupport = appShell.nativeAppSupport;
|
|
|
|
}
|
|
|
|
catch ( ex ) {
|
|
|
|
}
|
|
|
|
if (nativeAppSupport)
|
2006-05-17 02:31:19 +00:00
|
|
|
nativeAppSupport.isServerMode = parent.isTurboEnabled;
|
2006-05-17 02:31:18 +00:00
|
|
|
}
|
|
|
|
}
|
2006-05-17 02:24:52 +00:00
|
|
|
]]>
|
|
|
|
</script>
|
2006-05-17 02:27:14 +00:00
|
|
|
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 02:31:28 +00:00
|
|
|
<groupbox id="advancedSettings" align="start">
|
2006-05-17 02:31:17 +00:00
|
|
|
<caption label="&advancedTitle.label;"/>
|
2006-05-17 02:30:43 +00:00
|
|
|
<vbox align="start" id="contentEnablingBox">
|
2006-05-17 02:28:51 +00:00
|
|
|
<checkbox id="advancedJavaAllow" label="&enbJavaCheck.label;" accesskey="&enbJavaCheck.accesskey;"
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 02:31:28 +00:00
|
|
|
prefstring="security.enable_java"/>
|
2006-05-17 02:27:59 +00:00
|
|
|
</vbox>
|
2006-05-17 02:30:52 +00:00
|
|
|
<vbox>
|
2006-05-17 02:30:43 +00:00
|
|
|
<vbox align="start">
|
2006-05-17 02:28:51 +00:00
|
|
|
<checkbox id="advancedMailFTP" label="&sendAddFtpCheck.label;" accesskey="&sendAddFtpCheck.accesskey;"
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 02:31:28 +00:00
|
|
|
prefstring="advanced.mailftp"
|
|
|
|
oncommand="ftpCheck();"/>
|
2006-05-17 02:27:59 +00:00
|
|
|
</vbox>
|
|
|
|
<hbox class="indent">
|
2006-05-17 02:28:45 +00:00
|
|
|
<textbox id="advancedMailFTPAddress"
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 02:31:28 +00:00
|
|
|
preftype="string" prefstring="network.ftp.anonymous_password"
|
|
|
|
flex="2"/>
|
2006-05-17 02:27:59 +00:00
|
|
|
</hbox>
|
2006-05-17 02:30:52 +00:00
|
|
|
</vbox>
|
2006-05-17 02:27:59 +00:00
|
|
|
<separator/>
|
2006-05-17 02:30:33 +00:00
|
|
|
</groupbox>
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 02:31:28 +00:00
|
|
|
<groupbox id="perfSettings">
|
2006-05-17 02:31:17 +00:00
|
|
|
<caption id="perfLabel" label="&perfTitle.label;"/>
|
2006-05-17 02:30:43 +00:00
|
|
|
<vbox id="perfBox" align="start">
|
2006-05-17 02:31:19 +00:00
|
|
|
<checkbox id="enableTurbo" label="&enableTurbo.label;" accesskey="&enableTurboCheck.accesskey;"
|
|
|
|
oncommand="parent.isTurboEnabled = this.checked;"/>
|
2006-05-17 02:32:27 +00:00
|
|
|
<vbox class="indent" flex="1">
|
|
|
|
<description>&perfdescription.label;</description>
|
|
|
|
</vbox>
|
2006-05-17 02:30:33 +00:00
|
|
|
</vbox>
|
|
|
|
</groupbox>
|
Fix for http://bugzilla.mozilla.org/show_bug.cgi?id=84882. Add a entry, windows
only, the the advanced prefs panel. This is not a pref, but UI that has the
following semantics:
when the panel loads, if there is a shortcut in the windows startup folder for
turbo mode, the checkbox in the UI is set. Otherwise, it is clear,
when the user hits OK, if the checkbox is not set, the shortcut is removed, if
necessary. Otherwise, if the checkbox is set, the shortcut is added, if necessary.
r=ssu, sr=mscott, a=asa
2006-05-17 02:29:18 +00:00
|
|
|
|
2006-05-17 02:31:26 +00:00
|
|
|
</page>
|
2006-05-17 02:24:57 +00:00
|
|
|
|
1999-06-11 18:22:51 +00:00
|
|
|
|