3
The contents of this file are subject to the Netscape Public
4
License Version 1.1 (the "License"); you may not use this file
5
except in compliance with the License. You may obtain a copy of
6
the License at http://www.mozilla.org/NPL/
8
Software distributed under the License is distributed on an "AS
9
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
10
implied. See the License for the specific language governing
11
rights and limitations under the License.
13
The Original Code is Mozilla Communicator client code, released
16
The Initial Developer of the Original Code is Netscape
17
Communications Corporation. Portions created by Netscape are
18
Copyright (C) 1998-1999 Netscape Communications Corporation. All
22
Diego Biurrun <diego@biurrun.de>
23
- added disk cache folder choice
25
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
28
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
30
<!ENTITY % prefCacheDTD SYSTEM "chrome://communicator/locale/pref/pref-cache.dtd" >
34
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
35
onload="parent.initPanel('chrome://communicator/content/pref/pref-cache.xul');"
36
headertitle="&lHeader;">
38
<script type="application/x-javascript">
40
var _elementIDs = ["browserCacheDiskCache", "browserCacheCheckDocFrequency", "enablePrefetch"];
41
function GetFields(pageData) {
42
// because the cache is in kilobytes, and the UI is in megabytes.
43
pageData.browserCacheDiskCache.value <<= 10;
46
function SetFields(pageData) {
47
pageData.browserCacheDiskCache.value >>= 10;
53
<stringbundle id="bundle_prefutilities"
54
src="chrome://communicator/locale/pref/prefutilities.properties"/>
55
<script type="application/x-javascript" src="chrome://communicator/content/pref/pref-cache.js"/>
58
<caption label="&cacheTitle.label;"/>
60
<description>&cachePara;</description>
63
<label value="&diskCache.label;" accesskey="&diskCache.accesskey;" control="browserCacheDiskCache"/>
64
<textbox id="browserCacheDiskCache" size="5" preftype="int"
65
prefstring="browser.cache.disk.capacity" prefattribute="value"/>
66
<label value="&mbytes;"/>
67
<button label="&clearDiskCache.label;" accesskey="&clearDiskCache.accesskey;"
68
oncommand="prefClearDiskAndMemCache();"
70
prefstring="pref.advanced.cache.disable_button.clear_disk"/>
74
<label value="&diskCacheFolder.label;"/>
76
<textbox id="browserCacheDiskCacheFolder" flex="1" readonly="true" class="uri-element"/>
77
<button label="&chooseDiskCacheFolder.label;" accesskey="&chooseDiskCacheFolder.accesskey;"
78
oncommand="prefCacheSelectFolder();" id="chooseDiskCacheFolder"/>
81
<description>&diskCacheFolderExplanation;</description>
83
<separator class="thin"/>
85
<description>&docCache;</description>
87
<radiogroup id="browserCacheCheckDocFrequency" orient="horizontal" prefstring="browser.cache.check_doc_frequency">
89
<radio value="1" label="&everyTimeRadio.label;" accesskey="&everyTimeRadio.accesskey;"/>
90
<radio value="3" label="&autoRadio.label;" accesskey="&autoRadio.accesskey;"/>
93
<radio value="0" label="&oncePsessionRadio.label;" accesskey="&oncePsessionRadio.accesskey;"/>
94
<radio value="2" label="&neverRadio.label;" accesskey="&neverRadio.accesskey;"/>
101
<groupbox id="prefetch">
102
<caption id="prefetchLabel" label="&prefetchTitle.label;"/>
103
<vbox id="prefetchBox" align="start">
104
<checkbox id="enablePrefetch" label="&enablePrefetch.label;" accesskey="&enablePrefetch.accesskey;"
105
prefstring="network.prefetch-next" />
106
<!-- <vbox class="indent" flex="1">
107
<description>&prefetchDesc.label;</description>