RetroZilla/xpfe/components/prefwindow/resources/content/pref-mousewheel.xul
2015-10-20 23:03:22 -04:00

314 lines
16 KiB
XML

<?xml version="1.0"?>
<!-- ***** BEGIN LICENSE BLOCK *****
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla 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/MPL/
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 the Initial Developer are Copyright (C) 1998-1999
the Initial Developer. All Rights Reserved.
Contributor(s):
bryner@brianryner.com
sspitzer@netscape.com
Peter Weilbacher <mozilla@weilbacher.org>
Ian Neal <bugzilla@arlen.demon.co.uk>
Alternatively, the contents of this file may be used under the terms of
either of the GNU General Public License Version 2 or later (the "GPL"),
or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
in which case the provisions of the GPL or the LGPL are applicable instead
of those above. If you wish to allow use of your version of this file only
under the terms of either the GPL or the LGPL, and not to allow others to
use your version of this file under the terms of the MPL, indicate your
decision by deleting the provisions above and replace them with the notice
and other provisions required by the GPL or the LGPL. If you do not delete
the provisions above, a recipient may use your version of this file under
the terms of any one of the MPL, the GPL or the LGPL.
***** END LICENSE BLOCK ***** -->
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<!DOCTYPE page [
<!ENTITY % platformDTD SYSTEM "chrome://global-platform/locale/platformDialogOverlay.dtd" >
%platformDTD;
<!ENTITY % prefMousewheelDTD SYSTEM "chrome://communicator/locale/pref/pref-mousewheel.dtd" >
%prefMousewheelDTD;
]>
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="parent.initPanel('chrome://communicator/content/pref/pref-mousewheel.xul');"
headertitle="&pref.mouseWheel.title;">
<script type="application/x-javascript">
<![CDATA[
var _elementIDs = ["mousewheelWithNoKeyAction", "mousewheelWithNoKeyNumlines", "mousewheelWithNoKeySysNumlines",
"mousewheelWithAltKeyAction", "mousewheelWithAltKeyNumlines", "mousewheelWithAltKeySysNumlines",
"mousewheelWithCtrlKeyAction", "mousewheelWithCtrlKeyNumlines", "mousewheelWithCtrlKeySysNumlines",
"mousewheelWithShiftKeyAction", "mousewheelWithShiftKeyNumlines", "mousewheelWithShiftKeySysNumlines",
"mousewheelHorizWithNoKeyAction", "mousewheelWithNoKeyNumchars", "mousewheelWithNoKeySysNumchars",
"mousewheelHorizWithAltKeyAction", "mousewheelWithAltKeyNumchars", "mousewheelWithAltKeySysNumchars",
"mousewheelHorizWithCtrlKeyAction", "mousewheelWithCtrlKeyNumchars", "mousewheelWithCtrlKeySysNumchars",
"mousewheelHorizWithShiftKeyAction", "mousewheelWithShiftKeyNumchars", "mousewheelWithShiftKeySysNumchars"];
function switchPage( aElement )
{
var deck = document.getElementById( "modifierDeck" );
deck.setAttribute( "selectedIndex", aElement.selectedItem.value );
}
function Startup()
{
var fields = ["mousewheelWithNoKeyNumlines", "mousewheelWithAltKeyNumlines", "mousewheelWithCtrlKeyNumlines", "mousewheelWithShiftKeyNumlines",
"mousewheelWithNoKeyNumchars", "mousewheelWithAltKeyNumchars", "mousewheelWithCtrlKeyNumchars", "mousewheelWithShiftKeyNumchars"];
var checkboxes = ["mousewheelWithNoKeySysNumlines", "mousewheelWithAltKeySysNumlines", "mousewheelWithCtrlKeySysNumlines", "mousewheelWithShiftKeySysNumlines",
"mousewheelWithNoKeySysNumchars", "mousewheelWithAltKeySysNumchars", "mousewheelWithCtrlKeySysNumchars", "mousewheelWithShiftKeySysNumchars"];
for (var i = 0; i < checkboxes.length; i++)
enableField(document.getElementById(checkboxes[i]), fields[i], false);
}
function enableField(aCheckbox, aNodeID, setFocus)
{
var el = document.getElementById(aNodeID);
el.disabled = aCheckbox.checked || parent.hPrefWindow.getPrefIsLocked(el.getAttribute("prefstring"));
if (!el.disabled && setFocus)
el.focus();
}
]]>
</script>
<description>&mouseWheelPanel.label;</description>
<separator class="thin"/>
<tabbox class="indent">
<tabs>
<tab label="&usingJustTheWheel.label;"/>
<tab label="&usingWheelAndAlt.label;"/>
<tab label="&usingWheelAndCtrl.label;"/>
<tab label="&usingWheelAndShft.label;"/>
</tabs>
<tabpanels>
<!-- no key modifiers -->
<vbox>
<groupbox>
<caption label="&mousewheelGroup.label;"/>
<radiogroup id="mousewheelWithNoKeyAction"
prefstring="mousewheel.withnokey.action">
<hbox align="start">
<radio value="0" label="&scroll.label;" accesskey="&scroll.accesskey;"/>
<vbox align="start">
<hbox align="center">
<textbox id="mousewheelWithNoKeyNumlines" size="3"
preftype="int" prefstring="mousewheel.withnokey.numlines"
prefattribute="value"/>
<label value="&scrollLines.label;"/>
</hbox>
<checkbox id="mousewheelWithNoKeySysNumlines" label="&useSystemDefault.label;"
accesskey="&useSystemDefault.accesskey;"
prefstring="mousewheel.withnokey.sysnumlines"
oncommand="enableField(this, 'mousewheelWithNoKeyNumlines', true);"/>
</vbox>
</hbox>
<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;"/>
</radiogroup>
</groupbox>
<groupbox>
<caption label="&mousewheelHorizGroup.label;"/>
<radiogroup id="mousewheelHorizWithNoKeyAction"
prefstring="mousewheel.horizscroll.withnokey.action">
<hbox align="start">
<radio value="0" label="&scroll.label;" accesskey="&scrollHoriz.accesskey;"/>
<vbox align="start">
<hbox align="center">
<textbox id="mousewheelWithNoKeyNumchars" size="3"
preftype="int" prefstring="mousewheel.horizscroll.withnokey.numlines"
prefattribute="value"/>
<label value="&scrollChars.label;"/>
</hbox>
<checkbox id="mousewheelWithNoKeySysNumchars" label="&useSystemDefault.label;"
accesskey="&useSystemDefaultHoriz.accesskey;"
prefstring="mousewheel.horizscroll.withnokey.sysnumlines"
oncommand="enableField(this, 'mousewheelWithNoKeyNumchars', true);"/>
</vbox>
</hbox>
<radio value="1" label="&scrollPgLtPgRt.label;" accesskey="&scrollPgLtPgRt.accesskey;"/>
<radio value="2" label="&history.label;" accesskey="&historyHoriz.accesskey;"/>
<radio value="3" label="&textsize.label;" accesskey="&textsizeHoriz.accesskey;"/>
</radiogroup>
</groupbox>
</vbox>
<!-- alt modifiers -->
<vbox>
<groupbox>
<caption label="&mousewheelGroup.label;"/>
<radiogroup id="mousewheelWithAltKeyAction"
prefstring="mousewheel.withaltkey.action">
<hbox align="start">
<radio value="0" label="&scroll.label;" accesskey="&scroll.accesskey;"/>
<vbox align="start">
<hbox align="center">
<textbox id="mousewheelWithAltKeyNumlines" size="3"
preftype="int" prefstring="mousewheel.withaltkey.numlines"/>
<label value="&scrollLines.label;"/>
</hbox>
<checkbox id="mousewheelWithAltKeySysNumlines" label="&useSystemDefault.label;"
accesskey="&useSystemDefault.accesskey;"
prefstring="mousewheel.withaltkey.sysnumlines"
oncommand="enableField(this, 'mousewheelWithAltKeyNumlines', true);"/>
</vbox>
</hbox>
<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;"/>
</radiogroup>
</groupbox>
<groupbox>
<caption label="&mousewheelHorizGroup.label;"/>
<radiogroup id="mousewheelHorizWithAltKeyAction"
prefstring="mousewheel.horizscroll.withaltkey.action">
<hbox align="start">
<radio value="0" label="&scroll.label;" accesskey="&scrollHoriz.accesskey;"/>
<vbox align="start">
<hbox align="center">
<textbox id="mousewheelWithAltKeyNumchars" size="3"
preftype="int" prefstring="mousewheel.horizscroll.withaltkey.numlines"/>
<label value="&scrollChars.label;"/>
</hbox>
<checkbox id="mousewheelWithAltKeySysNumchars" label="&useSystemDefault.label;"
accesskey="&useSystemDefaultHoriz.accesskey;"
prefstring="mousewheel.horizscroll.withaltkey.sysnumlines"
oncommand="enableField(this, 'mousewheelWithAltKeyNumchars', true);"/>
</vbox>
</hbox>
<radio value="1" label="&scrollPgLtPgRt.label;" accesskey="&scrollPgLtPgRt.accesskey;"/>
<radio value="2" label="&history.label;" accesskey="&historyHoriz.accesskey;"/>
<radio value="3" label="&textsize.label;" accesskey="&textsizeHoriz.accesskey;"/>
</radiogroup>
</groupbox>
</vbox>
<!-- ctrl modifiers -->
<vbox>
<groupbox>
<caption label="&mousewheelGroup.label;"/>
<radiogroup id="mousewheelWithCtrlKeyAction"
prefstring="mousewheel.withcontrolkey.action" >
<hbox align="start">
<radio value="0" label="&scroll.label;" accesskey="&scroll.accesskey;"/>
<vbox align="start">
<hbox align="center">
<textbox id="mousewheelWithCtrlKeyNumlines" size="3"
preftype="int" prefstring="mousewheel.withcontrolkey.numlines"/>
<label value="&scrollLines.label;"/>
</hbox>
<checkbox id="mousewheelWithCtrlKeySysNumlines" label="&useSystemDefault.label;"
accesskey="&useSystemDefault.accesskey;"
prefstring="mousewheel.withcontrolkey.sysnumlines"
oncommand="enableField(this, 'mousewheelWithCtrlKeyNumlines', true);"/>
</vbox>
</hbox>
<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;"/>
</radiogroup>
</groupbox>
<groupbox>
<caption label="&mousewheelHorizGroup.label;"/>
<radiogroup id="mousewheelHorizWithCtrlKeyAction"
prefstring="mousewheel.horizscroll.withcontrolkey.action" >
<hbox align="start">
<radio value="0" label="&scroll.label;" accesskey="&scrollHoriz.accesskey;"/>
<vbox align="start">
<hbox align="center">
<textbox id="mousewheelWithCtrlKeyNumchars" size="3"
preftype="int" prefstring="mousewheel.horizscroll.withcontrolkey.numlines"/>
<label value="&scrollChars.label;"/>
</hbox>
<checkbox id="mousewheelWithCtrlKeySysNumchars" label="&useSystemDefault.label;"
accesskey="&useSystemDefaultHoriz.accesskey;"
prefstring="mousewheel.horizscroll.withcontrolkey.sysnumlines"
oncommand="enableField(this, 'mousewheelWithCtrlKeyNumchars', true);"/>
</vbox>
</hbox>
<radio value="1" label="&scrollPgLtPgRt.label;" accesskey="&scrollPgLtPgRt.accesskey;"/>
<radio value="2" label="&history.label;" accesskey="&historyHoriz.accesskey;"/>
<radio value="3" label="&textsize.label;" accesskey="&textsizeHoriz.accesskey;"/>
</radiogroup>
</groupbox>
</vbox>
<!-- shift modifiers -->
<vbox>
<groupbox>
<caption label="&mousewheelGroup.label;"/>
<radiogroup id="mousewheelWithShiftKeyAction"
prefstring="mousewheel.withshiftkey.action">
<hbox align="start">
<radio value="0" label="&scroll.label;" accesskey="&scroll.accesskey;"/>
<vbox align="start">
<hbox align="center">
<textbox id="mousewheelWithShiftKeyNumlines" size="3"
preftype="int" prefstring="mousewheel.withshiftkey.numlines"/>
<label value="&scrollLines.label;"/>
</hbox>
<checkbox id="mousewheelWithShiftKeySysNumlines" label="&useSystemDefault.label;"
accesskey="&useSystemDefault.accesskey;"
prefstring="mousewheel.withshiftkey.sysnumlines"
oncommand="enableField(this, 'mousewheelWithShiftKeyNumlines', true);"/>
</vbox>
</hbox>
<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;"/>
</radiogroup>
</groupbox>
<groupbox>
<caption label="&mousewheelHorizGroup.label;"/>
<radiogroup id="mousewheelHorizWithShiftKeyAction"
prefstring="mousewheel.horizscroll.withshiftkey.action">
<hbox align="start">
<radio value="0" label="&scroll.label;" accesskey="&scrollHoriz.accesskey;"/>
<vbox align="start">
<hbox align="center">
<textbox id="mousewheelWithShiftKeyNumchars" size="3"
preftype="int" prefstring="mousewheel.horizscroll.withshiftkey.numlines"/>
<label value="&scrollChars.label;"/>
</hbox>
<checkbox id="mousewheelWithShiftKeySysNumchars" label="&useSystemDefault.label;"
accesskey="&useSystemDefaultHoriz.accesskey;"
prefstring="mousewheel.horizscroll.withshiftkey.sysnumlines"
oncommand="enableField(this, 'mousewheelWithShiftKeyNumchars', true);"/>
</vbox>
</hbox>
<radio value="1" label="&scrollPgLtPgRt.label;" accesskey="&scrollPgLtPgRt.accesskey;"/>
<radio value="2" label="&history.label;" accesskey="&historyHoriz.accesskey;"/>
<radio value="3" label="&textsize.label;" accesskey="&textsizeHoriz.accesskey;"/>
</radiogroup>
</groupbox>
</vbox>
</tabpanels>
</tabbox>
</page>