mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 17:16:12 +00:00
212 lines
10 KiB
XML
212 lines
10 KiB
XML
<?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):
|
|
bryner@uiuc.edu
|
|
sspitzer@netscape.com
|
|
-->
|
|
|
|
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://communicator/skin/dialogOverlay.css" type="text/css"?>
|
|
|
|
|
|
<!DOCTYPE window [
|
|
<!ENTITY % platformDTD SYSTEM "chrome://global-platform/locale/platformDialogOverlay.dtd" >
|
|
%platformDTD;
|
|
<!ENTITY % prefMousewheelDTD SYSTEM "chrome://communicator/locale/pref/pref-mousewheel.dtd" >
|
|
%prefMousewheelDTD;
|
|
]>
|
|
|
|
<window xmlns:html="http://www.w3.org/1999/xhtml"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
class="color-dialog"
|
|
onload="parent.initPanel('chrome://communicator/content/pref/pref-mousewheel.xul');"
|
|
orient="vertical">
|
|
|
|
<script type="application/x-javascript">
|
|
<![CDATA[
|
|
var _elementIDs = ["mousewheelWithNoKeyAction", "mousewheelWithNoKeyNumlines", "mousewheelWithNoKeySysNumlines",
|
|
"mousewheelWithAltKeyAction", "mousewheelWithAltKeyNumlines", "mousewheelWithAltKeySysNumlines",
|
|
"mousewheelWithCtrlKeyAction", "mousewheelWithCtrlKeyNumlines", "mousewheelWithCtrlKeySysNumlines",
|
|
"mousewheelWithShiftKeyAction", "mousewheelWithShiftKeyNumlines", "mousewheelWithShiftKeySysNumlines"];
|
|
|
|
function switchPage( aElement )
|
|
{
|
|
var deck = document.getElementById( "modifierDeck" );
|
|
deck.setAttribute( "index", aElement.selectedItem.value );
|
|
}
|
|
|
|
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] );
|
|
}
|
|
}
|
|
|
|
function enableField(aCheckbox, aNodeID)
|
|
{
|
|
var el = document.getElementById(aNodeID);
|
|
if (aCheckbox.checked)
|
|
el.setAttribute("disabled", "true");
|
|
else
|
|
el.removeAttribute("disabled");
|
|
}
|
|
|
|
]]>
|
|
</script>
|
|
|
|
<hbox class="box-smallheader" title="&title.label;"/>
|
|
|
|
<hbox align="center">
|
|
<text class="label" value="&mouseWheelPanel.label;" accesskey="&mouseWheelPanel.accesskey;"
|
|
for="mouseWheelMode"/>
|
|
</hbox>
|
|
|
|
<separator class="thin"/>
|
|
|
|
<groupbox orient="vertical">
|
|
<label>
|
|
<hbox>
|
|
<menulist id="mouseWheelMode" oncommand="switchPage(this);"
|
|
pref="true" preftype="bool" prefstring="pref.mousewheel.disable_button.modifier" prefattribute="disabled">
|
|
<menupopup>
|
|
<menuitem value="0" label="&usingJustTheWheel.label;"/>
|
|
<menuitem value="1" label="&usingWheelAndAlt.label;"/>
|
|
<menuitem value="2" label="&usingWheelAndCtrl.label;"/>
|
|
<menuitem value="3" label="&usingWheelAndShft.label;"/>
|
|
</menupopup>
|
|
</menulist>
|
|
</hbox>
|
|
</label>
|
|
|
|
|
|
<deck id="modifierDeck" class="indent">
|
|
|
|
<!-- no key modifiers -->
|
|
<radiogroup id="mousewheelWithNoKeyAction" orient="vertical" align="start"
|
|
pref="true" preftype="int" prefstring="mousewheel.withnokey.action"
|
|
prefattribute="value">
|
|
<hbox align="start">
|
|
<radio group="mousewheelWithNoKeyAction" value="0" label="&scroll.label;" accesskey="&scroll.accesskey;"/>
|
|
<vbox align="start">
|
|
<hbox align="center">
|
|
<textbox id="mousewheelWithNoKeyNumlines" size="3"
|
|
pref="true" preftype="int" prefstring="mousewheel.withnokey.numlines"
|
|
prefattribute="value"/>
|
|
<text class="label" value="&scrollLines.label;"/>
|
|
</hbox>
|
|
<checkbox id="mousewheelWithNoKeySysNumlines" label="&useSystemDefault.label;" accesskey="&useSystemDefault.accesskey;"
|
|
pref="true" preftype="bool" prefstring="mousewheel.withnokey.sysnumlines"
|
|
prefattribute="checked" oncommand="enableField(this, 'mousewheelWithNoKeyNumlines');"/>
|
|
</vbox>
|
|
</hbox>
|
|
<radio group="mousewheelWithNoKeyAction" value="1" label="&scrollPgUpPgDn.label;" accesskey="&scrollPgUpPgDn.accesskey;"/>
|
|
<radio group="mousewheelWithNoKeyAction" value="2" label="&history.label;" accesskey="&history.accesskey;"/>
|
|
<radio group="mousewheelWithNoKeyAction" value="3" label="&textsize.label;" accesskey="&textsize.accesskey;"/>
|
|
</radiogroup>
|
|
|
|
<!-- alt modifiers -->
|
|
<radiogroup id="mousewheelWithAltKeyAction" orient="vertical" align="start"
|
|
pref="true" preftype="int" prefstring="mousewheel.withaltkey.action"
|
|
prefattribute="value">
|
|
<hbox align="start">
|
|
<radio group="mousewheelWithAltKeyAction" value="0" label="&scroll.label;" accesskey="&scroll.accesskey;"/>
|
|
<vbox align="start">
|
|
<hbox align="center">
|
|
<textbox id="mousewheelWithAltKeyNumlines" size="3"
|
|
pref="true" preftype="int" prefstring="mousewheel.withaltkey.numlines"
|
|
prefattribute="value"/>
|
|
<text class="label" value="&scrollLines.label;"/>
|
|
</hbox>
|
|
<checkbox id="mousewheelWithAltKeySysNumlines" label="&useSystemDefault.label;" accesskey="&useSystemDefault.accesskey;"
|
|
pref="true" preftype="bool" prefstring="mousewheel.withaltkey.sysnumlines"
|
|
prefattribute="checked" oncommand="enableField(this, 'mousewheelWithAltKeyNumlines');"/>
|
|
</vbox>
|
|
</hbox>
|
|
<radio group="mousewheelWithAltKeyAction" value="1" label="&scrollPgUpPgDn.label;" accesskey="&scrollPgUpPgDn.accesskey;"/>
|
|
<radio group="mousewheelWithAltKeyAction" value="2" label="&history.label;" accesskey="&history.accesskey;"/>
|
|
<radio group="mousewheelWithAltKeyAction" value="3" label="&textsize.label;" accesskey="&textsize.accesskey;"/>
|
|
</radiogroup>
|
|
|
|
<!-- ctrl modifiers -->
|
|
<radiogroup id="mousewheelWithCtrlKeyAction" orient="vertical" align="start"
|
|
pref="true" preftype="int" prefstring="mousewheel.withcontrolkey.action"
|
|
prefattribute="value">
|
|
<hbox align="start">
|
|
<radio group="mousewheelWithCtrlKeyAction" value="0" label="&scroll.label;" accesskey="&scroll.accesskey;"/>
|
|
<vbox align="start">
|
|
<hbox align="center">
|
|
<textbox id="mousewheelWithCtrlKeyNumlines" size="3"
|
|
pref="true" preftype="int" prefstring="mousewheel.withcontrolkey.numlines"
|
|
prefattribute="value"/>
|
|
<text class="label" value="&scrollLines.label;"/>
|
|
</hbox>
|
|
<checkbox id="mousewheelWithCtrlKeySysNumlines" label="&useSystemDefault.label;" accesskey="&useSystemDefault.accesskey;"
|
|
pref="true" preftype="bool" prefstring="mousewheel.withcontrolkey.sysnumlines"
|
|
prefattribute="checked" oncommand="enableField(this, 'mousewheelWithCtrlKeyNumlines');"/>
|
|
</vbox>
|
|
</hbox>
|
|
<radio group="mousewheelWithCtrlKeyAction" value="1" label="&scrollPgUpPgDn.label;" accesskey="&scrollPgUpPgDn.accesskey;"/>
|
|
<radio group="mousewheelWithCtrlKeyAction" value="2" label="&history.label;" accesskey="&history.accesskey;"/>
|
|
<radio group="mousewheelWithCtrlKeyAction" value="3" label="&textsize.label;" accesskey="&textsize.accesskey;"/>
|
|
</radiogroup>
|
|
|
|
<!-- shift modifiers -->
|
|
<radiogroup id="mousewheelWithShiftKeyAction" orient="vertical" align="start"
|
|
pref="true" preftype="int" prefstring="mousewheel.withshiftkey.action"
|
|
prefattribute="value">
|
|
<hbox align="start">
|
|
<radio group="mousewheelWithShiftKeyAction" value="0" label="&scroll.label;" accesskey="&scroll.accesskey;"/>
|
|
<vbox align="start">
|
|
<hbox align="center">
|
|
<textbox id="mousewheelWithShiftKeyNumlines" size="3"
|
|
pref="true" preftype="int" prefstring="mousewheel.withshiftkey.numlines"
|
|
prefattribute="value"/>
|
|
<text class="label" value="&scrollLines.label;"/>
|
|
</hbox>
|
|
<checkbox id="mousewheelWithShiftKeySysNumlines" label="&useSystemDefault.label;" accesskey="&useSystemDefault.accesskey;"
|
|
pref="true" preftype="bool" prefstring="mousewheel.withshiftkey.sysnumlines"
|
|
prefattribute="checked" oncommand="enableField(this, 'mousewheelWithShiftKeyNumlines');"/>
|
|
</vbox>
|
|
</hbox>
|
|
<radio group="mousewheelWithShiftKeyAction" value="1" label="&scrollPgUpPgDn.label;" accesskey="&scrollPgUpPgDn.accesskey;"/>
|
|
<radio group="mousewheelWithShiftKeyAction" value="2" label="&history.label;" accesskey="&history.accesskey;"/>
|
|
<radio group="mousewheelWithShiftKeyAction" value="3" label="&textsize.label;" accesskey="&textsize.accesskey;"/>
|
|
</radiogroup>
|
|
</deck>
|
|
</groupbox>
|
|
|
|
|
|
</window>
|
|
|