~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/xpfe/components/prefwindow/resources/content/pref-cache.xul

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?> 
 
2
<!--
 
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/
 
7
    
 
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.
 
12
    
 
13
   The Original Code is Mozilla Communicator client code, released
 
14
   March 31, 1998.
 
15
   
 
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
 
19
   Rights Reserved.
 
20
   
 
21
   Contributor(s): 
 
22
        Diego Biurrun   <diego@biurrun.de>
 
23
                - added disk cache folder choice
 
24
  -->
 
25
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
 
26
 
 
27
<!DOCTYPE page [
 
28
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
 
29
%brandDTD;
 
30
<!ENTITY % prefCacheDTD SYSTEM "chrome://communicator/locale/pref/pref-cache.dtd" >
 
31
%prefCacheDTD;
 
32
]>
 
33
 
 
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;">
 
37
 
 
38
  <script type="application/x-javascript">
 
39
  <![CDATA[
 
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;
 
44
      return null;
 
45
    }
 
46
    function SetFields(pageData) {
 
47
      pageData.browserCacheDiskCache.value >>= 10;
 
48
      return true;
 
49
    }
 
50
  ]]>
 
51
  </script>
 
52
  
 
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"/>
 
56
 
 
57
  <groupbox>
 
58
    <caption label="&cacheTitle.label;"/>
 
59
    
 
60
    <description>&cachePara;</description>
 
61
 
 
62
    <hbox align="center">
 
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();"
 
69
              id="clearDiskCache"
 
70
              prefstring="pref.advanced.cache.disable_button.clear_disk"/>
 
71
    </hbox>
 
72
 
 
73
    <vbox>
 
74
      <label value="&diskCacheFolder.label;"/>
 
75
      <hbox align="center">
 
76
        <textbox id="browserCacheDiskCacheFolder" flex="1" readonly="true" class="uri-element"/>
 
77
        <button label="&chooseDiskCacheFolder.label;" accesskey="&chooseDiskCacheFolder.accesskey;"
 
78
              oncommand="prefCacheSelectFolder();" id="chooseDiskCacheFolder"/>
 
79
      </hbox>
 
80
    </vbox>
 
81
    <description>&diskCacheFolderExplanation;</description>
 
82
 
 
83
    <separator class="thin"/>
 
84
    
 
85
    <description>&docCache;</description>
 
86
    <hbox align="start">
 
87
      <radiogroup id="browserCacheCheckDocFrequency" orient="horizontal" prefstring="browser.cache.check_doc_frequency">
 
88
        <vbox flex="1">
 
89
          <radio value="1" label="&everyTimeRadio.label;" accesskey="&everyTimeRadio.accesskey;"/>
 
90
          <radio value="3" label="&autoRadio.label;" accesskey="&autoRadio.accesskey;"/>
 
91
        </vbox>
 
92
        <vbox flex="1">
 
93
          <radio value="0" label="&oncePsessionRadio.label;" accesskey="&oncePsessionRadio.accesskey;"/>
 
94
          <radio value="2" label="&neverRadio.label;" accesskey="&neverRadio.accesskey;"/>
 
95
        </vbox>
 
96
      </radiogroup>
 
97
    </hbox>
 
98
 
 
99
  </groupbox>
 
100
 
 
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>
 
108
      </vbox> -->
 
109
    </vbox>
 
110
  </groupbox>
 
111
</page>