fixes for 13977 - make sure that 'Use Windows colors' shows up only on Windows, rather than on all platforms.

While we're at it, make the integration of winhooks and mousewheel a little cleaner.
This commit is contained in:
ben%netscape.com 2000-07-30 06:35:33 +00:00
Родитель c3810a01ce
Коммит cab0132da8
18 изменённых файлов: 270 добавлений и 38 удалений

Просмотреть файл

@ -26,6 +26,8 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = unix
CHROME_DIR = packages/core
CHROME_CONTENT_DIR = communicator/content/pref

Просмотреть файл

Просмотреть файл

@ -0,0 +1,34 @@
<?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):
Ben Goodger <ben@netscape.com>
-->
<overlay id="platformPreferencesOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- the poor macintosh doesnt support any of the extra goodies that unix and
windows do, so this file is blank. (that doesn't mean it's not required,
so don't remove it!) -->
</overlay>

Просмотреть файл

@ -21,6 +21,8 @@
DEPTH=..\..\..\..\..
DIRS= win
CHROME_DIR = packages\core
CHROME_CONTENT_DIR = communicator\content\pref

Просмотреть файл

@ -19,10 +19,12 @@
Rights Reserved.
Contributor(s):
Ben Goodger <ben@netscape.com>
-->
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/pref/platformPrefOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/pref-colors.dtd" >
@ -35,7 +37,7 @@
<script language="JavaScript">
<![CDATA[
_elementIDs = ["foregroundText", "background", "browserUseWindowsColors", "unvisitedLinks", "visitedLinks", "browserUnderlineAnchors", "browserUseDocumentColors"];
_elementIDs = ["foregroundText", "background", "unvisitedLinks", "visitedLinks", "browserUnderlineAnchors", "browserUseDocumentColors"];
]]>
</script>
@ -44,7 +46,7 @@
<box class="box-smallheader" title="&lHeader;"/>
<box>
<titledbox orient="vertical" flex="1">
<titledbox orient="vertical" flex="1" id="pageColours">
<title><text value="&color;"/></title>
<box>
<text class="label" value="&textColor.label;" accesskey="&textColor.accesskey;" for="foregroundtextmenu"/>
@ -70,8 +72,8 @@
</menu>
<data id="background" pref="true" preftype="color" prefstring="browser.display.background_color" prefattribute="value" wsm_attributes="value"/>
</box>
<checkbox id="browserUseWindowsColors" value="&useWindowsColors.label;" accesskey="&useWindowsColors.accesskey;"
pref="true" preftype="bool" prefstring="browser.display.wfe.use_windows_colors" prefattribute="checked"/>
<separator class="thin"/>
<box autostretch="never" id="useWindowsColoursBox"/>
</titledbox>
<titledbox orient="vertical" flex="1">
@ -100,8 +102,11 @@
</menu>
<data id="visitedLinks" pref="true" preftype="string" prefstring="browser.visited_color" prefattribute="value" wsm_attributes="value"/>
</box>
<checkbox id="browserUnderlineAnchors" value="&underlineLinks.label;" accesskey="&underlineLinks.accesskey;"
pref="true" preftype="bool" prefstring="browser.underline_anchors" prefattribute="checked"/>
<separator class="thin"/>
<box autostretch="never">
<checkbox id="browserUnderlineAnchors" value="&underlineLinks.label;" accesskey="&underlineLinks.accesskey;"
pref="true" preftype="bool" prefstring="browser.underline_anchors" prefattribute="checked"/>
</box>
</titledbox>
</box>

Просмотреть файл

@ -20,8 +20,10 @@
Rights Reserved.
Contributor(s):
Ben Goodger <ben@netscape.com>
-->
<?xul-overlay href="chrome://communicator/content/pref/platformPrefOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/preftree.dtd" >
@ -43,8 +45,6 @@
</treehead>
<treechildren id="panelChildren" flex="1">
<treeitem container="true" open="true" id="appearance">
<treerow>
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-appearance.xul" value="&appear.label;"/>
@ -137,21 +137,6 @@
</treerow>
</treeitem>
<!--
<treeitem open="true" id="offline">
<treerow>
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-offline.xul" value="&offline.label;"/>
</treerow>
<treechildren>
<treeitem>
<treerow>
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-download.xul" value="&down.label;"/>
</treerow>
</treeitem>
</treechildren>
</treeitem>
-->
<treeitem container="true" open="true" id="advancedItem">
<treerow>
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-advanced.xul" value="&advance.label;"/>
@ -179,17 +164,6 @@
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-proxies.xul" value="&proxies.label;"/>
</treerow>
</treeitem>
<treeitem id="mousewheelItem">
<treerow>
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-mousewheel.xul" value="&mousewheel.label;"/>
</treerow>
</treeitem>
<treeitem id="winhooks">
<treerow>
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-winhooks.xul" value="&winhooks.label;"/>
</treerow>
</treeitem>
</treechildren>
</treeitem>

Просмотреть файл

@ -0,0 +1,37 @@
#
# 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.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
CHROME_DIR = packages/core
CHROME_CONTENT_DIR = communicator/content/pref
CHROME_CONTENT = \
platformPrefOverlay.xul \
$(NULL)
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -0,0 +1,41 @@
<?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):
Ben Goodger <ben@netscape.com>
-->
<!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/platformPrefOverlay.dtd">
<overlay id="platformPreferencesOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- Mousewheel support is only enabled on Windows and Unix -->
<treechildren id="advancedChildren">
<treeitem id="mousewheelItem">
<treerow>
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-mousewheel.xul" value="&mousewheel.label;"/>
</treerow>
</treeitem>
</treechildren>
</overlay>

Просмотреть файл

Просмотреть файл

@ -0,0 +1,62 @@
<?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):
Ben Goodger <ben@netscape.com>
-->
<!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/platformPrefOverlay.dtd">
<overlay id="platformPreferencesOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script language="JavaScript">
<![CDATA[
dump("*** in platformPrefOverlay for windows\n");
if (_elementIDs != undefined)
_elementIDs.push("browserUseWindowsColors");
]]>
</script>
<!-- "Use Windows Colours" checkbox on colours panel applies only
to Windows! -->
<box id="useWindowsColoursBox">
<checkbox id="browserUseWindowsColors" value="&useWindowsColors.label;" accesskey="&useWindowsColors.accesskey;"
pref="true" preftype="bool" prefstring="browser.display.wfe.use_windows_colors" prefattribute="checked"/>
</box>
<!-- Mousewheel support is only enabled on Windows and Unix, and Windows
integration is (obviously) only applicable on Windows. -->
<treechildren id="advancedChildren">
<treeitem id="mousewheelItem">
<treerow>
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-mousewheel.xul" value="&mousewheel.label;"/>
</treerow>
</treeitem>
<treeitem id="winhooks">
<treerow>
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-winhooks.xul" value="&winhooks.label;"/>
</treerow>
</treeitem>
</treechildren>
</overlay>

Просмотреть файл

@ -26,6 +26,8 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = unix
CHROME_DIR = locales/en-US
CHROME_L10N_DIR = communicator/locale/pref

Просмотреть файл

@ -21,6 +21,8 @@
DEPTH=..\..\..\..\..\..
DIRS = win
CHROME_DIR = locales\en-US
CHROME_L10N_DIR = communicator\locale\pref

Просмотреть файл

@ -8,8 +8,6 @@
<!ENTITY textColor.accesskey "t">
<!ENTITY backgroundColor.label "Background:">
<!ENTITY backgroundColor.accesskey "b">
<!ENTITY useWindowsColors.label "Use Windows colors">
<!ENTITY useWindowsColors.accesskey "w">
<!ENTITY underlineLinks.label "Underline links">
<!ENTITY underlineLinks.accesskey "u">

Просмотреть файл

@ -26,7 +26,5 @@
<!ENTITY proxies.label "Proxies">
<!ENTITY smart.label "Software Installation">
<!ENTITY debug.label "Debug">
<!ENTITY mousewheel.label "Mouse Wheel">
<!ENTITY winhooks.label "Desktop Integration">
<!ENTITY search.label "Internet Search">
<!ENTITY policies.label "Security Policies">

Просмотреть файл

@ -0,0 +1,37 @@
#
# 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.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../../../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
CHROME_DIR = locales/en-US
CHROME_L10N_DIR = communicator/locale/pref
CHROME_L10N = \
platformPrefOverlay.dtd \
$(NULL)
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -0,0 +1 @@
<!ENTITY mousewheel.label "Mouse Wheel">

Просмотреть файл

@ -0,0 +1,32 @@
#!nmake
#
# 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.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
DEPTH=..\..\..\..\..\..\..
CHROME_DIR = locales\en-US
CHROME_L10N_DIR = communicator\locale\pref
CHROME_L10N = \
.\platformPrefOverlay.dtd \
$(NULL)
include <$(DEPTH)\config\rules.mak>

Просмотреть файл

@ -0,0 +1,5 @@
<!ENTITY useWindowsColors.label "Use Windows colors">
<!ENTITY useWindowsColors.accesskey "w">
<!ENTITY mousewheel.label "Mouse Wheel">
<!ENTITY winhooks.label "Desktop Integration">