gecko-dev/suite/common/pref/pref-cache.xul

112 lines
4.3 KiB
Plaintext
Raw Normal View History

1999-06-04 23:28:56 +00:00
<?xml version="1.0"?>
1999-08-10 02:48:56 +00:00
<!--
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):
Diego Biurrun <diego@biurrun.de>
- added disk cache folder choice
1999-08-10 02:48:56 +00:00
-->
2006-05-17 02:24:52 +00:00
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<!DOCTYPE page [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
%brandDTD;
<!ENTITY % prefCacheDTD SYSTEM "chrome://communicator/locale/pref/pref-cache.dtd" >
%prefCacheDTD;
]>
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="parent.initPanel('chrome://communicator/content/pref/pref-cache.xul');"
headertitle="&lHeader;">
1999-06-04 23:28:56 +00:00
<script type="application/x-javascript">
2006-05-17 02:24:52 +00:00
<![CDATA[
var _elementIDs = ["browserCacheDiskCache", "browserCacheCheckDocFrequency", "enablePrefetch"];
function GetFields(pageData) {
// because the cache is in kilobytes, and the UI is in megabytes.
pageData.browserCacheDiskCache.value <<= 10;
return null;
}
function SetFields(pageData) {
pageData.browserCacheDiskCache.value >>= 10;
return true;
}
2006-05-17 02:24:52 +00:00
]]>
</script>
<stringbundle id="bundle_prefutilities"
src="chrome://communicator/locale/pref/prefutilities.properties"/>
<script type="application/x-javascript" src="chrome://communicator/content/pref/pref-cache.js"/>
1999-06-04 23:28:56 +00:00
<groupbox>
<caption label="&cacheTitle.label;"/>
<description>&cachePara;</description>
2006-05-17 02:24:09 +00:00
<hbox align="center">
<label value="&diskCache.label;" accesskey="&diskCache.accesskey;" control="browserCacheDiskCache"/>
<textbox id="browserCacheDiskCache" size="5" preftype="int"
prefstring="browser.cache.disk.capacity" prefattribute="value"/>
<label value="&mbytes;"/>
<button label="&clearDiskCache.label;" accesskey="&clearDiskCache.accesskey;"
oncommand="prefClearDiskAndMemCache();"
id="clearDiskCache"
prefstring="pref.advanced.cache.disable_button.clear_disk"/>
</hbox>
2006-05-17 02:24:52 +00:00
<vbox>
<label value="&diskCacheFolder.label;"/>
<hbox align="center">
<textbox id="browserCacheDiskCacheFolder" flex="1" readonly="true" class="uri-element"/>
<button label="&chooseDiskCacheFolder.label;" accesskey="&chooseDiskCacheFolder.accesskey;"
oncommand="prefCacheSelectFolder();" id="chooseDiskCacheFolder"/>
</hbox>
</vbox>
<description>&diskCacheFolderExplanation;</description>
2006-05-17 02:26:00 +00:00
<separator class="thin"/>
2006-05-17 02:24:52 +00:00
<description>&docCache;</description>
<hbox align="start">
<radiogroup id="browserCacheCheckDocFrequency" orient="horizontal" prefstring="browser.cache.check_doc_frequency">
<vbox flex="1">
<radio value="1" label="&everyTimeRadio.label;" accesskey="&everyTimeRadio.accesskey;"/>
<radio value="3" label="&autoRadio.label;" accesskey="&autoRadio.accesskey;"/>
</vbox>
<vbox flex="1">
<radio value="0" label="&oncePsessionRadio.label;" accesskey="&oncePsessionRadio.accesskey;"/>
<radio value="2" label="&neverRadio.label;" accesskey="&neverRadio.accesskey;"/>
</vbox>
</radiogroup>
</hbox>
</groupbox>
2006-05-17 02:24:09 +00:00
<groupbox id="prefetch">
<caption id="prefetchLabel" label="&prefetchTitle.label;"/>
<vbox id="prefetchBox" align="start">
<checkbox id="enablePrefetch" label="&enablePrefetch.label;" accesskey="&enablePrefetch.accesskey;"
prefstring="network.prefetch-next" />
<!-- <vbox class="indent" flex="1">
<description>&prefetchDesc.label;</description>
</vbox> -->
</vbox>
</groupbox>
</page>