This commit is contained in:
blakeross%telocity.com 2002-10-11 01:48:46 +00:00
Родитель e630d7921a
Коммит 31c4d48ac1
9 изменённых файлов: 0 добавлений и 336 удалений

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 158 B

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 100 B

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 158 B

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

@ -1,118 +0,0 @@
<?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):
Joe Hewitt <hewitt@netscape.com>
-->
<!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/pref-smart_browsing.dtd" >
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://communicator/skin/prefpanels.css" type="text/css"?>
<dialog id="pref-smart_browsing-ac" title="&autoCompleteAdvanced.title;"
ondialogaccept="return onAccept();"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript"><![CDATA[
window.onload = function()
{
setCheck("cbxAutoFill", window.arguments[0]);
setCheck("cbxShowPopup", window.arguments[1]);
setCheck("cbxShowSearch", window.arguments[2]);
setCheck("cbxMatchOnlyTyped", window.arguments[3]);
updateImage("AutoFill");
updateImage("ShowPopup");
updateImage("ShowSearch");
updateShowPopup();
}
function onAccept()
{
window.opener.receiveACPrefs(getCheck("cbxAutoFill"),
getCheck("cbxShowPopup"),
getCheck("cbxShowSearch"),
getCheck("cbxMatchOnlyTyped"));
return true;
}
function getCheck(aName)
{
return document.getElementById(aName).checked;
}
function setCheck(aName, aTruth)
{
if (aTruth == "true")
document.getElementById(aName).setAttribute("checked", "true");
else
document.getElementById(aName).removeAttribute("checked");
}
function updateImage(aImg)
{
var img = document.getElementById("img"+aImg);
var checked = document.getElementById("cbx"+aImg).checked;
if (aImg == "AutoFill") {
img.setAttribute("src", "chrome://communicator/content/pref/autocomplete-autofill-"+(checked?"on":"off")+".gif");
} else if (aImg == "ShowPopup") {
img.setAttribute("hidden", !checked);
updateImage("ShowSearch");
} else if (aImg == "ShowSearch") {
var checked2 = document.getElementById("cbxShowPopup").checked;
img.setAttribute("hidden", !checked2 || !checked);
}
}
function updateShowPopup()
{
var spChecked = document.getElementById("cbxShowPopup").checked;
var showSearch = document.getElementById("cbxShowSearch");
showSearch.disabled = !spChecked;
}
]]></script>
<groupbox>
<caption label="&autoCompleteAdvanced.title;"/>
<vbox>
<checkbox id="cbxAutoFill" label="&autoCompleteAutoFill.label;"
oncommand="updateImage('AutoFill')"/>
<checkbox id="cbxShowPopup" label="&autoCompleteShowPopup.label;"
oncommand="updateShowPopup(); updateImage('ShowPopup')"/>
<checkbox id="cbxShowSearch" label="&autoCompleteShowSearch.label;"
oncommand="updateImage('ShowSearch')"/>
<checkbox id="cbxMatchOnlyTyped" label="&autoCompleteMatchOnlyTyped.label;"/>
</vbox>
</groupbox>
<label value="&autocompletePreview.label;"/>
<dialogheader>
<vbox height="159">
<image id="imgAutoFill" style="min-width: 401px;"/>
<image id="imgShowPopup" src="chrome://communicator/content/pref/autocomplete-showpopup.gif"/>
<image id="imgShowSearch" src="chrome://communicator/content/pref/autocomplete-showsearch.gif"/>
</vbox>
</dialogheader>
</dialog>

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

@ -1,74 +0,0 @@
/*
* 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
* August 15, 2001.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corp. Portions created by Netscape Communications
* Corp. are Copyright (C) 2001, Netscape Communications Corp. All
* Rights Reserved.
*
* Contributor(s):
* Diego Biurrun <diego@biurrun.de>
*/
function moreInfo()
{
var browserURL = null;
var regionBundle = document.getElementById("bundle_region");
var smartBrowsingURL = regionBundle.getString("smartBrowsingURL");
if (smartBrowsingURL) {
try {
var prefs = Components.classes["@mozilla.org/preferences;1"];
if (prefs) {
prefs = prefs.getService();
if (prefs)
prefs = prefs.QueryInterface(Components.interfaces.nsIPref);
}
if (prefs) {
var url = prefs.CopyCharPref("browser.chromeURL");
if (url)
browserURL = url;
}
} catch(e) {
}
if (browserURL == null)
browserURL = "chrome://navigator/content/navigator.xul";
window.openDialog( browserURL, "_blank", "chrome,all,dialog=no", smartBrowsingURL );
}
}
function showACAdvanced()
{
window.openDialog("chrome://communicator/content/pref/pref-smart_browsing-ac.xul", "",
"modal=yes,chrome,resizable=no",
document.getElementById("browserUrlbarAutoFill").getAttribute("value"),
document.getElementById("browserUrlbarShowPopup").getAttribute("value"),
document.getElementById("browserUrlbarShowSearch").getAttribute("value"),
document.getElementById("browserUrlbarMatchOnlyTyped").getAttribute("value"));
}
function receiveACPrefs(aAutoFill, aShowPopup, aShowSearch, aAutoType)
{
document.getElementById("browserUrlbarAutoFill").setAttribute("value", aAutoFill);
document.getElementById("browserUrlbarShowPopup").setAttribute("value", aShowPopup);
document.getElementById("browserUrlbarShowSearch").setAttribute("value", aShowSearch);
document.getElementById("browserUrlbarMatchOnlyTyped").setAttribute("value", aAutoType);
}
function toggleAutoCompleteAdvancedButton()
{
var browserAutoCompleteEnabled = document.getElementById("browserAutoCompleteEnabled");
var autoCompleteAdvancedButton = document.getElementById("autoCompleteAdvancedButton");
autoCompleteAdvancedButton.disabled = !browserAutoCompleteEnabled.checked;
}

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

@ -1,89 +0,0 @@
<?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):
Blake Ross <blakeross@telocity.com>
Diego Biurrun <diego@biurrun.de>
-->
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://communicator/skin/prefpanels.css" type="text/css"?>
<!DOCTYPE window [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
%brandDTD;
<!ENTITY % prefSmartBrowsingDTD SYSTEM "chrome://communicator/locale/pref/pref-smart_browsing.dtd" >
%prefSmartBrowsingDTD;
]>
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="parent.initPanel('chrome://communicator/content/pref/pref-smart_browsing.xul');"
headertitle="&lHeader;">
<stringbundle id="bundle_region"
src="chrome://global-region/locale/region.properties"/>
<script type="application/x-javascript" src="chrome://communicator/content/pref/pref-smart_browsing.js"/>
<script type="application/x-javascript">
<![CDATA[
var _elementIDs = ["browserGoBrowsingEnabled", "browserAutoCompleteEnabled",
"browserUrlbarAutoFill", "browserUrlbarShowPopup", "browserUrlbarShowSearch",
"browserUrlbarMatchOnlyTyped"];
]]>
</script>
<groupbox>
<caption label="&internetKeywordsHeader.label;"/>
<description>&internetKeywordsDescription.label;</description>
<hbox align="center">
<checkbox id="browserGoBrowsingEnabled" label="&keywordsEnabled.label;" accesskey="&keywordsEnabled.accesskey;"
prefstring="keyword.enabled"/>
<spacer flex="1"/>
<button label="&moreInformation.label;" accesskey="&moreInformation.accesskey;" oncommand="moreInfo();"
id="moreInformationButton"
prefstring="pref.browser.smartbrowsing.disable_button.more_info"/>
</hbox>
</groupbox>
<groupbox>
<caption label="&autoCompleteHeader.label;"/>
<hbox align="center">
<checkbox id="browserAutoCompleteEnabled" label="&autoCompleteEnabled.label;"
accesskey="&autoCompleteEnabled.accesskey;"
prefstring="browser.urlbar.autocomplete.enabled"
oncommand="toggleAutoCompleteAdvancedButton()" flex="1"/>
<button label="&autoCompleteAdvanced.label;" oncommand="showACAdvanced()" id="autoCompleteAdvancedButton"/>
<data id="browserUrlbarAutoFill" preftype="bool" prefattribute="value"
prefstring="browser.urlbar.autoFill"/>
<data id="browserUrlbarShowPopup" preftype="bool" prefattribute="value"
prefstring="browser.urlbar.showPopup"/>
<data id="browserUrlbarShowSearch" preftype="bool" prefattribute="value"
prefstring="browser.urlbar.showSearch"/>
<data id="browserUrlbarMatchOnlyTyped" preftype="bool" prefattribute="value"
prefstring="browser.urlbar.matchOnlyTyped"/>
</hbox>
</groupbox>
</page>

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

@ -20,16 +20,9 @@ browser.jar:
* content/browser/pref/pref-scripts.js (content/pref-scripts.js)
* content/browser/pref/pref-privacy.xul (content/pref-privacy.xul)
* content/browser/pref/pref-popups.xul (content/pref-popups.xul)
content/browser/pref/pref-smart_browsing.xul (content/pref-smart_browsing.xul)
content/browser/pref/pref-smart_browsing.js (content/pref-smart_browsing.js)
content/browser/pref/pref-smart_browsing-ac.xul (content/pref-smart_browsing-ac.xul)
content/browser/pref/pref.xul (content/pref.xul)
content/browser/pref/nsPrefWindow.js (content/nsPrefWindow.js)
* content/browser/pref/preftree.xul (content/preftree.xul)
content/browser/pref/autocomplete-autofill-on.gif (content/autocomplete-autofill-on.gif)
content/browser/pref/autocomplete-autofill-off.gif (content/autocomplete-autofill-off.gif)
content/browser/pref/autocomplete-showpopup.gif (content/autocomplete-showpopup.gif)
content/browser/pref/autocomplete-showsearch.gif (content/autocomplete-showsearch.gif)
* content/browser/pref/pref-winhooks.xul (content/pref-winhooks.xul)
* content/browser/pref/pref-winhooks.js (content/pref-winhooks.js)
* content/browser/pref/pref-tabs.xul (content/pref-tabs.xul)
@ -47,7 +40,6 @@ en-US.jar:
locale/en-US/browser/pref/pref-scripts.dtd (locale/pref-scripts.dtd)
locale/en-US/browser/pref/pref-privacy.dtd (locale/pref-privacy.dtd)
locale/en-US/browser/pref/pref-popups.dtd (locale/pref-popups.dtd)
locale/en-US/browser/pref/pref-smart_browsing.dtd (locale/pref-smart_browsing.dtd)
locale/en-US/browser/pref/prefutilities.properties (locale/prefutilities.properties)
locale/en-US/browser/pref/preftree.dtd (locale/preftree.dtd)
locale/en-US/browser/pref/pref.dtd (locale/pref.dtd)

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

@ -1,20 +0,0 @@
<!ENTITY lHeader "Security Policies">
<!ENTITY rHeader "(text here)">
<!ENTITY zoneIntro.label "&brandShortName; allows you to create policies that determine what access certain websites have to various functionality, including aspects of scripting and Java.">
<!ENTITY policies.label "Policies:">
<!ENTITY default.label "Default Policy">
<!ENTITY allWebsites.label "All Websites">
<!ENTITY trusted.label "Trusted Sites">
<!ENTITY annoyances.label "Common Annoyances">
<!ENTITY restricted.label "Restricted Sites">
<!ENTITY addSite.label "Add Site...">
<!ENTITY addSite.accesskey "a">
<!ENTITY settings.label "Settings for ">
<!ENTITY settings.accesskey "s">
<!ENTITY description.label "Policy Description:">

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

@ -1,27 +0,0 @@
<!-- extracted from content/pref-smart_browsing.xul -->
<!--LOCALIZATION NOTE : FILE The SmartBrowsing prefs dialog -->
<!ENTITY lHeader "Smart Browsing">
<!--LOCALIZATION NOTE (internetKeywordsHeader.label): DONT_TRANSLATE -->
<!ENTITY internetKeywordsHeader.label "Internet Keywords">
<!ENTITY internetKeywordsDescription.label "&brandShortName; Internet Keywords enables fast access to services such as stock quotes, search and other information from the Location bar.">
<!ENTITY moreInformation.label "More Information...">
<!ENTITY moreInformation.accesskey "m">
<!--LOCALIZATION NOTE (enableKeyCheck.label): Do not translate 'Internet Keywords' -->
<!ENTITY keywordsEnabled.label "Enable Internet Keywords">
<!ENTITY keywordsEnabled.accesskey "k">
<!ENTITY autoCompleteHeader.label "Location Bar Autocomplete">
<!ENTITY autoCompleteEnabled.label "Automatically complete text typed into Location bar.">
<!ENTITY autoCompleteEnabled.accesskey "l">
<!ENTITY autoCompleteAdvanced.label "Advanced...">
<!ENTITY autoCompleteAdvanced.title "Autocomplete Preferences">
<!ENTITY autoCompleteAutoFill.label "Autocomplete best match as you type">
<!ENTITY autoCompleteShowPopup.label "Show list of matching results">
<!ENTITY autoCompleteShowSearch.label "Show internet search engine">
<!ENTITY autoCompleteMatchOnlyTyped.label "Match only websites you've typed previously">
<!ENTITY autocompletePreview.label "Preview">