1999-12-18 06:45:40 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
|
|
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):
|
2006-05-17 02:35:34 +00:00
|
|
|
bryner@brianryner.com
|
2006-05-17 02:28:51 +00:00
|
|
|
sspitzer@netscape.com
|
1999-12-18 06:45:40 +00:00
|
|
|
-->
|
|
|
|
|
2006-05-17 02:31:51 +00:00
|
|
|
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
|
2006-05-17 02:24:09 +00:00
|
|
|
|
2006-05-17 02:35:16 +00:00
|
|
|
<!DOCTYPE page [
|
2006-05-17 02:28:41 +00:00
|
|
|
<!ENTITY % platformDTD SYSTEM "chrome://global-platform/locale/platformDialogOverlay.dtd" >
|
2006-05-17 02:24:08 +00:00
|
|
|
%platformDTD;
|
2006-05-17 02:24:35 +00:00
|
|
|
<!ENTITY % prefMousewheelDTD SYSTEM "chrome://communicator/locale/pref/pref-mousewheel.dtd" >
|
2006-05-17 02:24:08 +00:00
|
|
|
%prefMousewheelDTD;
|
|
|
|
]>
|
|
|
|
|
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-mousewheel.xul');"
|
|
|
|
headertitle="&title.label;">
|
1999-12-18 06:45:40 +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:25:56 +00:00
|
|
|
var _elementIDs = ["mousewheelWithNoKeyAction", "mousewheelWithNoKeyNumlines", "mousewheelWithNoKeySysNumlines",
|
|
|
|
"mousewheelWithAltKeyAction", "mousewheelWithAltKeyNumlines", "mousewheelWithAltKeySysNumlines",
|
|
|
|
"mousewheelWithCtrlKeyAction", "mousewheelWithCtrlKeyNumlines", "mousewheelWithCtrlKeySysNumlines",
|
|
|
|
"mousewheelWithShiftKeyAction", "mousewheelWithShiftKeyNumlines", "mousewheelWithShiftKeySysNumlines"];
|
|
|
|
|
2006-05-17 02:24:52 +00:00
|
|
|
function switchPage( aElement )
|
|
|
|
{
|
|
|
|
var deck = document.getElementById( "modifierDeck" );
|
2006-05-17 02:31:24 +00:00
|
|
|
deck.setAttribute( "selectedIndex", aElement.selectedItem.value );
|
2006-05-17 02:24:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function doEnableElement( aEventTarget, aElementID )
|
|
|
|
{
|
|
|
|
var aElement = document.getElementById( aElementID );
|
|
|
|
if( aEventTarget.checked == true )
|
|
|
|
aElement.setAttribute( "disabled", "true" );
|
|
|
|
else
|
|
|
|
aElement.removeAttribute( "disabled" );
|
|
|
|
}
|
|
|
|
|
|
|
|
function Startup()
|
|
|
|
{
|
|
|
|
var fields = ["mousewheelWithNoKeyNumlines", "mousewheelWithAltKeyNumlines", "mousewheelWithCtrlKeyNumlines", "mousewheelWithShiftKeyNumlines"];
|
|
|
|
var checkboxes = ["mousewheelWithNoKeySysNumlines", "mousewheelWithAltKeySysNumlines", "mousewheelWithCtrlKeySysNumlines", "mousewheelWithShiftKeySysNumlines"];
|
|
|
|
for( var i = 0; i < checkboxes.length; i++ )
|
|
|
|
{
|
|
|
|
var currEl = document.getElementById( checkboxes[i] );
|
|
|
|
doEnableElement( currEl, fields[i] );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2006-05-17 02:35:33 +00:00
|
|
|
function enableField(aCheckbox, aNodeID, setFocus)
|
2006-05-17 02:25:56 +00:00
|
|
|
{
|
|
|
|
var el = document.getElementById(aNodeID);
|
|
|
|
if (aCheckbox.checked)
|
|
|
|
el.setAttribute("disabled", "true");
|
|
|
|
else
|
|
|
|
el.removeAttribute("disabled");
|
2006-05-17 02:35:30 +00:00
|
|
|
|
2006-05-17 02:35:33 +00:00
|
|
|
if (!el.disabled && setFocus)
|
2006-05-17 02:35:30 +00:00
|
|
|
el.focus();
|
2006-05-17 02:25:56 +00:00
|
|
|
}
|
|
|
|
|
2006-05-17 02:24:52 +00:00
|
|
|
]]>
|
|
|
|
</script>
|
2006-05-17 02:28:39 +00:00
|
|
|
|
2006-05-17 02:30:43 +00:00
|
|
|
<hbox align="center">
|
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
|
|
|
<label value="&mouseWheelPanel.label;" accesskey="&mouseWheelPanel.accesskey;"
|
|
|
|
control="mouseWheelMode"/>
|
2006-05-17 02:30:43 +00:00
|
|
|
</hbox>
|
2006-05-17 02:28:39 +00:00
|
|
|
|
|
|
|
<separator class="thin"/>
|
2006-05-17 02:23:10 +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>
|
2006-05-17 02:31:17 +00:00
|
|
|
<caption>
|
2006-05-17 02:30:33 +00:00
|
|
|
<hbox>
|
2006-05-17 02:29:28 +00:00
|
|
|
<menulist id="mouseWheelMode" oncommand="switchPage(this);"
|
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="bool" prefstring="pref.mousewheel.disable_button.modifier" prefattribute="disabled">
|
2006-05-17 02:28:39 +00:00
|
|
|
<menupopup>
|
2006-05-17 02:28:51 +00:00
|
|
|
<menuitem value="0" label="&usingJustTheWheel.label;"/>
|
|
|
|
<menuitem value="1" label="&usingWheelAndAlt.label;"/>
|
|
|
|
<menuitem value="2" label="&usingWheelAndCtrl.label;"/>
|
|
|
|
<menuitem value="3" label="&usingWheelAndShft.label;"/>
|
2006-05-17 02:28:39 +00:00
|
|
|
</menupopup>
|
|
|
|
</menulist>
|
2006-05-17 02:30:33 +00:00
|
|
|
</hbox>
|
2006-05-17 02:31:17 +00:00
|
|
|
</caption>
|
2006-05-17 02:28:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
<deck id="modifierDeck" class="indent">
|
2006-05-17 02:24:52 +00:00
|
|
|
|
|
|
|
<!-- no key modifiers -->
|
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
|
|
|
<radiogroup id="mousewheelWithNoKeyAction"
|
|
|
|
prefstring="mousewheel.withnokey.action">
|
2006-05-17 02:30:43 +00:00
|
|
|
<hbox align="start">
|
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
|
|
|
<radio value="0" label="&scroll.label;" accesskey="&scroll.accesskey;"/>
|
2006-05-17 02:30:43 +00:00
|
|
|
<vbox align="start">
|
|
|
|
<hbox align="center">
|
2006-05-17 02:28:45 +00:00
|
|
|
<textbox id="mousewheelWithNoKeyNumlines" size="3"
|
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="int" prefstring="mousewheel.withnokey.numlines"
|
2006-05-17 02:28:40 +00:00
|
|
|
prefattribute="value"/>
|
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
|
|
|
<label value="&scrollLines.label;"/>
|
2006-05-17 02:28:40 +00:00
|
|
|
</hbox>
|
2006-05-17 02:28:51 +00:00
|
|
|
<checkbox id="mousewheelWithNoKeySysNumlines" label="&useSystemDefault.label;" accesskey="&useSystemDefault.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="mousewheel.withnokey.sysnumlines"
|
2006-05-17 02:35:33 +00:00
|
|
|
oncommand="enableField(this, 'mousewheelWithNoKeyNumlines', true);"/>
|
2006-05-17 02:30:33 +00:00
|
|
|
</vbox>
|
|
|
|
</hbox>
|
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
|
|
|
<radio value="1" label="&scrollPgUpPgDn.label;" accesskey="&scrollPgUpPgDn.accesskey;"/>
|
|
|
|
<radio value="2" label="&history.label;" accesskey="&history.accesskey;"/>
|
|
|
|
<radio value="3" label="&textsize.label;" accesskey="&textsize.accesskey;"/>
|
2006-05-17 02:24:52 +00:00
|
|
|
</radiogroup>
|
|
|
|
|
|
|
|
<!-- alt modifiers -->
|
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
|
|
|
<radiogroup id="mousewheelWithAltKeyAction"
|
|
|
|
prefstring="mousewheel.withaltkey.action">
|
2006-05-17 02:30:43 +00:00
|
|
|
<hbox align="start">
|
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
|
|
|
<radio value="0" label="&scroll.label;" accesskey="&scroll.accesskey;"/>
|
2006-05-17 02:30:43 +00:00
|
|
|
<vbox align="start">
|
|
|
|
<hbox align="center">
|
2006-05-17 02:28:45 +00:00
|
|
|
<textbox id="mousewheelWithAltKeyNumlines" size="3"
|
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="int" prefstring="mousewheel.withaltkey.numlines"/>
|
|
|
|
<label value="&scrollLines.label;"/>
|
2006-05-17 02:28:40 +00:00
|
|
|
</hbox>
|
2006-05-17 02:28:51 +00:00
|
|
|
<checkbox id="mousewheelWithAltKeySysNumlines" label="&useSystemDefault.label;" accesskey="&useSystemDefault.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="mousewheel.withaltkey.sysnumlines"
|
2006-05-17 02:35:33 +00:00
|
|
|
oncommand="enableField(this, 'mousewheelWithAltKeyNumlines', true);"/>
|
2006-05-17 02:30:33 +00:00
|
|
|
</vbox>
|
|
|
|
</hbox>
|
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
|
|
|
<radio value="1" label="&scrollPgUpPgDn.label;" accesskey="&scrollPgUpPgDn.accesskey;"/>
|
|
|
|
<radio value="2" label="&history.label;" accesskey="&history.accesskey;"/>
|
|
|
|
<radio value="3" label="&textsize.label;" accesskey="&textsize.accesskey;"/>
|
2006-05-17 02:24:52 +00:00
|
|
|
</radiogroup>
|
|
|
|
|
|
|
|
<!-- ctrl modifiers -->
|
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
|
|
|
<radiogroup id="mousewheelWithCtrlKeyAction"
|
|
|
|
prefstring="mousewheel.withcontrolkey.action" >
|
2006-05-17 02:30:43 +00:00
|
|
|
<hbox align="start">
|
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
|
|
|
<radio value="0" label="&scroll.label;" accesskey="&scroll.accesskey;"/>
|
2006-05-17 02:30:43 +00:00
|
|
|
<vbox align="start">
|
|
|
|
<hbox align="center">
|
2006-05-17 02:28:45 +00:00
|
|
|
<textbox id="mousewheelWithCtrlKeyNumlines" size="3"
|
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="int" prefstring="mousewheel.withcontrolkey.numlines"/>
|
|
|
|
<label value="&scrollLines.label;"/>
|
2006-05-17 02:28:40 +00:00
|
|
|
</hbox>
|
2006-05-17 02:28:51 +00:00
|
|
|
<checkbox id="mousewheelWithCtrlKeySysNumlines" label="&useSystemDefault.label;" accesskey="&useSystemDefault.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="mousewheel.withcontrolkey.sysnumlines"
|
2006-05-17 02:35:33 +00:00
|
|
|
oncommand="enableField(this, 'mousewheelWithCtrlKeyNumlines', true);"/>
|
2006-05-17 02:30:33 +00:00
|
|
|
</vbox>
|
|
|
|
</hbox>
|
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
|
|
|
<radio value="1" label="&scrollPgUpPgDn.label;" accesskey="&scrollPgUpPgDn.accesskey;"/>
|
|
|
|
<radio value="2" label="&history.label;" accesskey="&history.accesskey;"/>
|
|
|
|
<radio value="3" label="&textsize.label;" accesskey="&textsize.accesskey;"/>
|
2006-05-17 02:24:52 +00:00
|
|
|
</radiogroup>
|
|
|
|
|
|
|
|
<!-- shift modifiers -->
|
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
|
|
|
<radiogroup id="mousewheelWithShiftKeyAction" prefstring="mousewheel.withshiftkey.action">
|
2006-05-17 02:30:43 +00:00
|
|
|
<hbox align="start">
|
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
|
|
|
<radio value="0" label="&scroll.label;" accesskey="&scroll.accesskey;"/>
|
2006-05-17 02:30:43 +00:00
|
|
|
<vbox align="start">
|
|
|
|
<hbox align="center">
|
2006-05-17 02:28:45 +00:00
|
|
|
<textbox id="mousewheelWithShiftKeyNumlines" size="3"
|
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="int" prefstring="mousewheel.withshiftkey.numlines"/>
|
|
|
|
<label value="&scrollLines.label;"/>
|
2006-05-17 02:28:40 +00:00
|
|
|
</hbox>
|
2006-05-17 02:28:51 +00:00
|
|
|
<checkbox id="mousewheelWithShiftKeySysNumlines" label="&useSystemDefault.label;" accesskey="&useSystemDefault.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="mousewheel.withshiftkey.sysnumlines"
|
2006-05-17 02:35:33 +00:00
|
|
|
oncommand="enableField(this, 'mousewheelWithShiftKeyNumlines', true);"/>
|
2006-05-17 02:30:33 +00:00
|
|
|
</vbox>
|
|
|
|
</hbox>
|
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
|
|
|
<radio value="1" label="&scrollPgUpPgDn.label;" accesskey="&scrollPgUpPgDn.accesskey;"/>
|
|
|
|
<radio value="2" label="&history.label;" accesskey="&history.accesskey;"/>
|
|
|
|
<radio value="3" label="&textsize.label;" accesskey="&textsize.accesskey;"/>
|
2006-05-17 02:24:52 +00:00
|
|
|
</radiogroup>
|
|
|
|
</deck>
|
2006-05-17 02:30:33 +00:00
|
|
|
</groupbox>
|
2006-05-17 02:31:24 +00:00
|
|
|
</page>
|
1999-12-18 06:45:40 +00:00
|
|
|
|