This commit is contained in:
rgoodger%ihug.co.nz 2000-01-07 06:52:11 +00:00
Родитель 711b7e4ffa
Коммит f6a9b8b8dc
33 изменённых файлов: 1693 добавлений и 1019 удалений

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

@ -1,16 +1,22 @@
pref-advanced.xul
pref-appearance.xul
pref-applications.xul
pref-cache.js
pref-cache.xul
pref-colors.js
pref-colors.xul
pref-themes.xul
pref-composer.js
pref-composer.xul
pref-cookies.xul
pref-debug.xul
pref-download.xul
pref-fonts.xul
pref-languages.xul
pref-navigator.js
pref-navigator.xul
pref-offline.xul
pref-proxies.js
pref-proxies.xul
pref-proxy-manual.xul
pref-publish.xul
@ -19,7 +25,10 @@ pref-search.xul
pref-smart_browsing.xul
pref-smartupdate.xul
PrefsWindow.js
pref.js
pref.xul
preftree.xul
pref-mousewheel.xul
fontScalingOverlay.xul
pref-wallet.xul
prefutilities.js

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

@ -28,28 +28,37 @@ include $(DEPTH)/config/autoconf.mk
EXPORT_RESOURCE_CONTENT = \
$(srcdir)/PrefsWindow.js \
$(srcdir)/pref.js \
$(srcdir)/pref.xul \
$(srcdir)/pref-advanced.xul \
$(srcdir)/pref-appearance.xul \
$(srcdir)/pref-applications.xul \
$(srcdir)/pref-cache.xul \
$(srcdir)/pref-cache.js \
$(srcdir)/pref-colors.xul \
$(srcdir)/pref-colors.js \
$(srcdir)/pref-themes.xul \
$(srcdir)/pref-composer.xul \
$(srcdir)/pref-composer.js \
$(srcdir)/pref-debug.xul \
$(srcdir)/pref-download.xul \
$(srcdir)/pref-fonts.xul \
$(srcdir)/pref-languages.xul \
$(srcdir)/pref-navigator.xul \
$(srcdir)/pref-navigator.js \
$(srcdir)/pref-offline.xul \
$(srcdir)/pref-proxies.js \
$(srcdir)/pref-proxies.xul \
$(srcdir)/pref-proxy-manual.xul \
$(srcdir)/pref-publish.xul \
$(srcdir)/pref-mousewheel.xul \
$(srcdir)/pref-cookies.xul \
$(srcdir)/pref-wallet.xul \
$(srcdir)/pref-search.js \
$(srcdir)/pref-search.xul \
$(srcdir)/pref-smart_browsing.xul \
$(srcdir)/pref-smartupdate.xul \
$(srcdir)/prefutilities.js \
$(srcdir)/fontScalingOverlay.xul \
$(srcdir)/preftree.xul \
$(NULL)

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

@ -34,8 +34,9 @@ Contributor(s): ______________________________________. -->
<html:div>&fontScalingIntro;</html:div>
<spring style="height: 10px;"/>
<box align="horizontal" style="width: 100%" flex="100%">
<html:label for="">&resolution;</html:label>
<html:input type="text" id="pref:string:browser.screen_resolution" size="3" value="&defaultScaling;"/>
<html:label for="browserScreenResolution">&resolution;</html:label>
<html:input type="text" id="browserScreenResolution" pref="true" preftype="string"
prefstring="browser.screen_resolution" value="&defaultScaling;" size="3"/>
<html:label>&fontScalingExample;</html:label>
</box>
</html:fieldset>

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

@ -27,16 +27,22 @@ install::
$(MAKE_INSTALL) pref-advanced.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-appearance.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-applications.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-cache.js $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-cache.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-colors.js $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-colors.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-themes.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-composer.js $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-composer.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-cookies.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-debug.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-download.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-fonts.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-languages.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-navigator.js $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-navigator.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-offline.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-proxies.js $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-proxies.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-proxy-manual.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-publish.xul $(DIST)\bin\chrome\pref\content\default
@ -44,11 +50,14 @@ install::
$(MAKE_INSTALL) pref-search.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-smart_browsing.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-smartupdate.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-wallet.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) PrefsWindow.js $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref.js $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) preftree.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-mousewheel.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) fontScalingOverlay.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) prefutilities.js $(DIST)\bin\chrome\pref\content\default
clobber::
rm -f $(DIST)\bin\chrome\pref\content\default\*.*

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

@ -21,115 +21,77 @@
-->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-advanced.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="return StartUp('Advanced');"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
align="vertical" title="&window.title;"
debug="false">
onload="if( parent.handle ) parent.handle.onpageload( 'pref-advanced' ); else parent.queuedTag = 'pref-advanced';">
<html:script language="javascript" src="chrome://pref/content/PrefsWindow.js"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
</box>
</box>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:div>
<html:input type="checkbox" id="pref:0:bool:advanced.always_load_images" />
<html:label for="pref:0:bool:advanced.always_load_images" accesskey="i" tabindex="0">
&autoLoadImgCheck.label;
</html:label>
<html:input type="checkbox" id="advancedAlwaysLoadImages"
prefdefval="true"
pref="true" preftype="bool" prefstring="advanced.always_load_images"/>
<html:label for="advancedAlwaysLoadImages" accesskey="i" tabindex="0">
&autoLoadImgCheck.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:advanced.java.allow" />
<html:label for="pref:0:bool:advanced.java.allow" accesskey="j" tabindex="0">
<html:input type="checkbox" id="advancedJavaAllow"
prefdefval="true"
pref="true" preftype="bool" prefstring="advanced.java.allow"/>
<html:label for="advancedJavaAllow" accesskey="j" tabindex="0">
&enbJavaCheck.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:javascript.enabled" />
<html:label for="pref:0:bool:javascript.enabled" accesskey="r" tabindex="0">
<html:input type="checkbox" id="javascriptEnabled"
prefdefval="true"
pref="true" preftype="bool" prefstring="javascript.enabled"/>
<html:label for="javascriptEnabled" accesskey="r" tabindex="0">
&enbJsCheck.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:javascript.allow.mailnews" />
<html:label for="pref:0:bool:javascript.allow.mailnews" accesskey="m" tabindex="0">
<html:input type="checkbox" id="javascriptAllowMailNews"
prefdefval="true"
pref="true" preftype="bool" prefstring="javascript.allow.mailnews" />
<html:label for="javascriptAllowMailNews" accesskey="m" tabindex="0">
&enbJsCheck.labelforMailNNews;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:css.allow" />
<html:label for="pref:0:bool:css.allow" accesskey="s" tabindex="0">
<html:input type="checkbox" id="CSSAllow"
prefdefval="true"
pref="true" preftype="bool" prefstring="css.allow" />
<html:label for="CSSAllow" accesskey="s" tabindex="0">
&enbCssCheck.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:advanced.mailftp" />
<html:label for="pref:0:bool:advanced.mailftp" accesskey="e" tabindex="0">
<html:input type="checkbox" id="advancedMailFTP"
prefdefval="true"
pref="true" preftype="bool" prefstring="advanced.mailftp"/>
<html:label for="advancedMailFTP" accesskey="e" tabindex="0">
&sendAddFtpCheck.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:signon.rememberSignons" />
<html:label for="pref:0:bool:signon.rememberSignons" accesskey="r" tabindex="0">
<html:input type="checkbox" id="signonRememberSignons"
prefdefval="true"
pref="true" preftype="bool" prefstring="signon.rememberSignons" />
<html:label for="signonRememberSignons" accesskey="r" tabindex="0">
&remSignCheck.label;
</html:label>
</html:div>
</html:fieldset>
</box>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:div>
<html:label for="pref:string:wallet.Server" accesskey="c" tabindex="0">
&server.label;
</html:label>
<html:input name="Wallet Server:" type="text" id="pref:string:wallet.Server" size="25" />
</html:div>
</html:fieldset>
</box>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">
<html:div>&cookies;</html:div>
</html:legend>
<html:div>
<html:input name="cookies" type="radio" id="pref:0:int:network.cookie.cookieBehavior" />
<html:label for="pref:2:int:network.cookie.cookieBehavior" accesskey="a" tabindex="0">
&accAllCookiesRadio.label;
</html:label>
</html:div>
<html:div>
<html:input type="radio" name="cookies" id="pref:1:int:network.cookie.cookieBehavior" />
<html:label for="pref:0:int:network.cookie.cookieBehavior" accesskey="o" tabindex="0">
&accpOrgCookiesRadio.label;
</html:label>
</html:div>
<html:div>
<html:input type="radio" name="cookies" id="pref:2:int:network.cookie.cookieBehavior" />
<html:label for="pref:1:int:network.cookie.cookieBehavior" accesskey="d" tabindex="0">
&disCookRadio.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:network.cookie.warnAboutCookies" />
<html:label for="pref:0:bool:network.cookie.warnAboutCookies" accesskey="w" tabindex="0">
&warnCookCheck.label;
</html:label>
</html:div>
</html:fieldset>
</box>
</window>

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

@ -25,75 +25,76 @@
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-appearance.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
onload="StartUp('Appearance')"
align="vertical">
align="vertical"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-appearance' ); else parent.queuedTag = 'pref-appearance';">
<html:script language="javascript" src="chrome://pref/content/PrefsWindow.js"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
</box>
<html:fieldset style="width: 100%;">
<html:legend align="left">&onStartLegend.label;</html:legend>
<html:div>
<html:input type="checkbox" pref="true" preftype="bool"
prefstring="general.startup.browser" id="generalStartupBrowser"/>
<html:label for="generalStartupBrowser" accesskey="n" tabindex="0">
&navCheck.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" pref="true" preftype="bool"
prefstring="general.startup.mail" id="generalStartupMail"/>
<html:label for="generalStartupMail" accesskey="m" tabindex="0">
&mesCheck.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" pref="true" preftype="bool"
prefstring="general.startup.editor" id="generalStartupEditor"/>
<html:label for="generalStartupEditor" accesskey="c" tabindex="0">
&compCheck.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" pref="true" preftype="bool"
prefstring="general.startup.calendar" id="generalStartupCalendar"/>
<html:label for="generalStartupCalendar" accesskey="a" tabindex="0">
&calCheck.label;
</html:label>
</html:div>
</html:fieldset>
<html:fieldset>
<html:legend align="left">
<html:div>&onStartLegend.label;</html:div>
</html:legend>
<html:div>
<html:input type="checkbox" id="pref:0:bool:general.startup.browser" />
<html:label for="pref:0:bool:general.startup.browser" accesskey="n" tabindex="0">
&navCheck.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:general.startup.mail" />
<html:label for="pref:0:bool:general.startup.mail" accesskey="m" tabindex="0">
&mesCheck.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:general.startup.editor" />
<html:label for="pref:0:bool:general.startup.editor" accesskey="c" tabindex="0">
&compCheck.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="ref:0:bool:general.startup.calendar" />
<html:label for="pref:0:bool:general.startup.calendar" accesskey="a" tabindex="0">
&calCheck.label;
</html:label>
</html:div>
</html:fieldset>
<html:fieldset>
<html:legend align="left">
<html:div>&showToolsLegend.label;</html:div>
</html:legend>
<html:div>
<html:input name="showtoolbar" type="radio" id="pref:2:int:browser.chrome.toolbar_style" />
<html:label for="pref:2:int:browser.chrome.toolbar_style" accesskey="p" tabindex="0">
&picsNtextRadio.label;
</html:label>
</html:div>
<html:div>
<html:input name="showtoolbar" type="radio" id="pref:0:int:browser.chrome.toolbar_style" />
<html:label for="pref:0:int:browser.chrome.toolbar_style" accesskey="o" tabindex="0">
&picsOnlyRadio.label;
</html:label>
</html:div>
<html:div>
<html:input name="showtoolbar" type="radio" id="pref:1:int:browser.chrome.toolbar_style" />
<html:label for="pref:1:int:browser.chrome.toolbar_style" accesskey="t" tabindex="0">
&textonlyRadio.label;
</html:label>
</html:div>
</html:fieldset>
<html:fieldset style="width: 100%;">
<html:legend align="left">&showToolsLegend.label;</html:legend>
<html:div>
<html:input name="showtoolbar" type="radio" pref="true" preftype="int"
prefindex="2" prefstring="browser.chrome.toolbar_style"
id="browserChromeToolbarStyle2"/>
<html:label for="browserChromeToolbarStyle2" accesskey="p" tabindex="0">
&picsNtextRadio.label;
</html:label>
</html:div>
<html:div>
<html:input name="showtoolbar" type="radio" pref="true" preftype="int"
prefindex="0" prefstring="browser.chrome.toolbar_style"
id="browserChromeToolbarStyle0"/>
<html:label for="browserChromeToolbarStyle0" accesskey="o" tabindex="0">
&picsOnlyRadio.label;
</html:label>
</html:div>
<html:div>
<html:input name="showtoolbar" type="radio" pref="true" preftype="int"
prefindex="1" prefstring="browser.chrome.toolbar_style"
id="browserChromeToolbarStyle1"/>
<html:label for="browserChromeToolbarStyle1" accesskey="t" tabindex="0">
&textonlyRadio.label;
</html:label>
</html:div>
</html:fieldset>
<spring flex="100%"/>
</window>

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

@ -26,46 +26,44 @@
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-applications.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
onload="return StartUp('Applications');" title="&window.title;"
align="vertical">
title="&window.title;" align="vertical"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-applications' ); else parent.queuedTag = 'pref-applications';">
<html:script language="javascript" src="chrome://pref/content/PrefsWindow.js"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
<!-- NOTE to owner of this panel
- this panel is quite complex. It will probably require a getfields
and setfields function for getting and setting appropriate data.
you will need to write some JS to get the correct names and values
from the list as appropriate to pass to the Data Manager
-->
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
</box>
<html:fieldset>
<html:legend align="left">
<html:div>&descript;</html:div>
</html:legend>
<box style="width: 100%; height: 100%">
<html:select flex="1" name="textstyle" size="5" >
<html:option>
&aimLaunchSelect.label;</html:option>
</html:select>
<box align="vertical">
<titledbutton class="dialog push" id="newTypeButton" value="&newTypeButton.label;" />
<titledbutton class="dialog push" id="editButton" value="&editButton.label;" />
<titledbutton class="dialog push" id="removeButton" value="&removeButton.label;" />
</box>
</box>
</html:fieldset>
<html:fieldset>
<html:legend align="left">
<html:div>&file;</html:div>
</html:legend>
<html:div>&exten;</html:div>
<html:div>&mimeType;</html:div>
<html:div>&handle;</html:div>
</html:fieldset>
<html:fieldset>
<html:legend align="left">&descript;</html:legend>
<box style="width: 100%; height: 100%">
<html:select flex="1" name="textstyle" size="5" >
<html:option>&aimLaunchSelect.label;</html:option>
</html:select>
<box align="vertical">
<titledbutton class="dialog push" id="newTypeButton" value="&newTypeButton.label;" />
<titledbutton class="dialog push" id="editButton" value="&editButton.label;" />
<titledbutton class="dialog push" id="removeButton" value="&removeButton.label;" />
</box>
</box>
</html:fieldset>
<html:fieldset>
<html:legend align="left">&file;</html:legend>
<html:div>&exten;</html:div>
<html:div>&mimeType;</html:div>
<html:div>&handle;</html:div>
</html:fieldset>
</window>

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

@ -0,0 +1,9 @@
function prefCacheSelectFolder()
{
bundle = srGetStrBundle("chrome://pref/locale/prefutilities.properties");
var folderField = document.getElementById("browserCacheDirectory");
var url = getFileOrFolderURL( bundle.GetStringFromName("cachefolder"), true );
if( url != -1 )
folderField.value = url;
}

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

@ -20,96 +20,103 @@
Contributor(s):
-->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-cache.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
onload="return StartUp('Cache');"
align="vertical" title="&title.label;"
debug="false">
align="vertical" title="&title.label;"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-cache' ); else parent.queuedTag = 'pref-cache';">
<html:script language="javascript" src="chrome://pref/content/PrefsWindow.js"/>
<html:script language="javascript" src="chrome://global/content/strres.js" />
<html:script language="javascript" src="chrome://pref/content/prefutilities.js"/>
<html:script language="javascript" src="chrome://pref/content/pref-cache.js"/>
<box class="header" style="width:100%" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
</box>
<box align="vertical" style="width: 100%;">
<html:div>&cachePara;</html:div><spring flex="100%"/>
<html:div></html:div>
<html:table>
<html:tr>
<html:td>
<html:div>&memCache;</html:div>
</html:td>
<html:td>
<box align="horizontal" style="width: 100%;">
<html:input name="disk" type="text" size="3" id="pref:string:browser.cache.memory_cache_size" />
<html:div>&kbyes;</html:div>
</box>
</html:td>
<html:td>
<titledbutton class="dialog push" name="clearm" value="&clearMemcacheButton.label;" />
</html:td>
</html:tr>
<html:tr>
<html:td>
<html:div>&diskCache;</html:div>
</html:td>
<html:td>
<box align="horizontal" style="width: 100%;">
<html:input name="disk" type="text" size="3" id="pref:string:browser.cache.disk_cache_size" />
<html:div>&kbyes;</html:div>
</box>
</html:td>
<html:td>
<titledbutton class="dialog push" name="clearm" value="&clearDiskcacheButton.label;" />
</html:td>
</html:tr>
</html:table>
<box align="horizontal" style="width: 100%;">
<html:div>&diskCacheFolder;</html:div>
<html:input name="disk" type="text" size="20" id="pref:string:browser.cache.directory" />
<html:div>
<titledbutton class="dialog push" value="&chooseFolder;" align="left" onclick="PrefCacheSelectFolder()"/>
<html:fieldset style="width: 100%">
<box align="vertical" style="width: 100%;" flex="100%">
<html:div>&cachePara;</html:div>
<spring style="height: 15px;"/>
<box align="horizontal" flex="100%">
<box align="vertical">
<box align="horizontal">
<spring flex="100%"/>
<html:div class="spreadlabel" style="padding-top: 2px; padding-bottom: 9px;">&memCache;</html:div>
</box>
<box align="horizontal">
<spring flex="100%"/>
<html:div class="spreadlabel" style="padding-top: 2px; padding-bottom: 9px;">&diskCache;</html:div>
</box>
<box align="horizontal">
<spring flex="100%"/>
<html:div class="spreadlabel" style="padding-top: 2px; padding-bottom: 9px;">&diskCacheFolder;</html:div>
</box>
</box>
<box align="vertical" flex="100%">
<box align="horizontal">
<html:div>
<html:input name="disk" type="text" size="5" id="browserCacheMemoryCacheSize"
pref="true" preftype="int" prefstring="browser.cache.memory_cache_size"/>
</html:div>
<html:div>&kbyes;</html:div>
<spring flex="100%"/>
<titledbutton class="dialog push" name="clearm" value="&clearMemcacheButton.label;" />
</box>
<box align="horizontal">
<html:div>
<html:input name="disk" type="text" size="5" id="browserCacheDiskCacheSize"
pref="true" preftype="int" prefstring="browser.cache.disk_cache_size" />
</html:div>
<html:div>&kbyes;</html:div>
<spring flex="100%"/>
<titledbutton class="dialog push" name="clearm" value="&clearDiskcacheButton.label;" />
</box>
<box align="vertical" flex="100%">
<html:input name="disk" type="text" id="browserCacheDirectory"
pref="true" preftype="string" prefstring="browser.cache.directory" flex="100%"/>
</box>
<box align="horizontal">
<spring flex="100%"/>
<titledbutton class="dialog push" value="&chooseFolder;" align="left" onclick="prefCacheSelectFolder()"/>
</box>
</box>
</box>
</box>
<spring style="height: 45px;"/>
</html:fieldset>
<html:fieldset>
<box align="vertical" style="width: 100%;">
<html:div>&docCache;</html:div>
<html:div>
<html:input name="cacheDocFreq" type="radio" id="browserCacheCheckDocFrequency0"
pref="true" preftype="int" prefindex="0" prefstring="browser.cache.check_doc_frequency"/>
<html:label for="browserCacheCheckDocFrequency0" accesskey="o" tabindex="0">
&oncePsessionRadio.label;
</html:label>
</html:div>
<html:div>
<html:input name="cacheDocFreq" type="radio" id="browserCacheCheckDocFrequency1"
pref="true" preftype="int" prefindex="1" prefstring="browser.cache.check_doc_frequency"/>
<html:label for="browserCacheCheckDocFrequency1" accesskey="e" tabindex="0">
&everyTimeRadio.label;
</html:label>
</html:div>
<html:div>
<html:input name="cacheDocFreq" type="radio" id="browserCacheCheckDocFrequency2"
pref="true" preftype="int" prefinex="1" prefstring="browser.cache.check_doc_frequency"/>
<html:label for="browserCacheCheckDocFrequency2" accesskey="n" tabindex="0">
&neverRadio.label;
</html:label>
</html:div>
</box>
</box>
<box align="vertical" style="width: 100%;">
<html:div>&docCache;</html:div>
<html:div>
<html:input name="cacheDocFreq" type="radio" id="pref:0:int:browser.cache.check_doc_frequency" />
<html:label for="pref:0:int:browser.cache.check_doc_frequency" accesskey="o" tabindex="0">
&oncePsessionRadio.label;
</html:label>
</html:div>
<html:div>
<html:input name="cacheDocFreq" type="radio" id="pref:1:int:browser.cache.check_doc_frequency" />
<html:label for="pref:1:int:browser.cache.check_doc_frequency" accesskey="e" tabindex="0">
&everyTimeRadio.label;
</html:label>
</html:div>
<html:div>
<html:input name="cacheDocFreq" type="radio" id="pref:2:int:browser.cache.check_doc_frequency" />
<html:label for="pref:2:int:browser.cache.check_doc_frequency" accesskey="n" tabindex="0">
&neverRadio.label;
</html:label>
</html:div>
</box>
</html:fieldset>
</window>

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

@ -0,0 +1,41 @@
function setColorWell(menu,otherId,setbackground)
{
// Find the colorWell and colorPicker in the hierarchy.
var colorWell = menu.firstChild;
var colorPicker = menu.firstChild.nextSibling.nextSibling.firstChild;
var colorRef = menu.nextSibling; // colour value is held here
// Extract color from colorPicker and assign to colorWell.
var color = colorPicker.getAttribute('color');
// set colour values in the display
setColorFromPicker( colorWell, color );
// set the colour value internally for use in prefwindow
colorRef.setAttribute( "value", color );
}
function getColorFromWellAndSetValue( menuid )
{
var menu = document.getElementById(menuid); // picker container
var colorWell = menu.firstChild; // display for picker colour
var colorRef = menu.nextSibling; // prefs JS sets this.
colorWell.style.backgroundColor = colorRef.value; // set the well from prefs.
var color = colorWell.style.backgroundColor;
setColorFromPicker( null, color );
}
function setColorFromPicker(colorWell,color )
{
if (colorWell) {
colorWell.style.backgroundColor = color;
}
}
function InitColors()
{
getColorFromWellAndSetValue("foregroundtextmenu");
getColorFromWellAndSetValue("backgroundmenu");
getColorFromWellAndSetValue("unvisitedlinkmenu");
getColorFromWellAndSetValue("visitedlinkmenu");
return true;
}

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

@ -25,97 +25,106 @@
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-colors.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
onload="StartUp('Colors')" title="&window.title;" align="vertical">
title="&window.title;" align="vertical"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-colors' ); else parent.queuedTag = 'pref-colors'; InitColors();">
<html:script language="JavaScript" src="chrome://pref/content/PrefsWindow.js"/>
<html:script language="JavaScript" src="chrome://pref/content/pref-colors.js"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
</box>
<box align="horizontal">
<html:fieldset flex="1">
<html:legend align="left">
<html:div>
&color;
</html:div>
</html:legend>
<html:div>
<menu>
<titledbutton value="&text;" class="popup" align="right"/>
<html:div id="pref:#000000:color:browser.foreground_color" style="width:30px; background-color:white"/>
<menupopup>
<colorpicker palettename="standard" onclick="setColorWell(this.parentNode.parentNode,null,false);"/>
</menupopup>
</menu>
</html:div>
<html:div>
<menu>
<titledbutton value="&background;" class="popup" align="right"/>
<html:div id="pref:#000000:color:browser.background_color" style="width:30px; background-color:white"/>
<menupopup>
<colorpicker palettename="standard" onclick="setColorWell(this.parentNode.parentNode,null,false);"/>
</menupopup>
</menu>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:browser.wfe.use_windows_colors"
val="checked" />
<html:label for="pref:0:bool:browser.wfe.use_windows_colors" accesskey="w" tabindex="0">
&useWinColorsCheck.label;
</html:label>
</html:div>
</html:fieldset>
<html:fieldset flex="100%" style="width: 100%">
<html:legend align="left"> &color;</html:legend>
<box style="width: 100%">
<html:label>&text;</html:label>
<spring flex="100%"/>
<menu id="foregroundtextmenu" allowevents="true" class="colorpicker">
<html:div id="browserForegroundColorDiv" style="width:30px; background-color:white"/>
<titledbutton class="popup" align="right"/>
<menupopup id="foregroundMenuPopup">
<colorpicker allowevents="true" id="foregroundColorpicker" palettename="standard" onclick="setColorWell(this.parentNode.parentNode, 'foregroundtext', false);"/>
</menupopup>
</menu>
<html:input type="hidden" id="foregroundText"
pref="true" preftype="string" prefstring="browser.foreground_color"/>
</box>
<box style="width: 100%">
<html:label>&background;</html:label>
<spring flex="100%"/>
<menu id="backgroundmenu" allowevents="true" class="colorpicker">
<html:div id="browserBackgroundColorDiv" style="width:30px; background-color:white"/>
<spring flex="100%"/>
<titledbutton class="popup" align="right"/>
<menupopup id="backgroundMenuPopup">
<colorpicker allowevents="true" id="backgroundColorpicker" palettename="standard" onclick="setColorWell(this.parentNode.parentNode, 'background', false);"/>
</menupopup>
</menu>
<html:input type="hidden" id="background"
pref="true" preftype="string" prefstring="browser.background_color"/>
</box>
<html:div>
<html:input type="checkbox" id="browserWFEUseWindowsColors"
pref="true" preftype="bool" prefstring="browser.wfe.use_windows_colors"/>
<html:label for="browserWFEUseWindowsColors" accesskey="w" tabindex="0">
&useWinColorsCheck.label;
</html:label>
</html:div>
</html:fieldset>
<html:fieldset flex="1">
<html:legend align="left">
<html:div>&links;</html:div>
</html:legend>
<html:div>
<menu>
<titledbutton value="&unvisit;" class="popup" align="right"/>
<html:div id="pref:#000000:color:browser.anchor_color" style="width:30px; background-color:white"/>
<menupopup>
<colorpicker palettename="standard" onclick="setColorWell(this.parentNode.parentNode,null,false);"/>
</menupopup>
</menu>
</html:div>
<html:div>
<menu>
<titledbutton value="&visit;" class="popup" align="right"/>
<html:div id="pref:#000000:color:browser.visited_color" style="width:30px; background-color:white"/>
<menupopup>
<colorpicker palettename="standard" onclick="setColorWell(this.parentNode.parentNode,null,false);"/>
</menupopup>
</menu>
</html:div>
<html:div><html:input type="checkbox" id="pref:0:bool:browser.underline_anchors" val="checked" />
<html:label for="pref:0:bool:browser.underline_anchors" accesskey="u" tabindex="0">
&underLinksCheck.label;
</html:label>
</html:div>
</html:fieldset>
</box>
<html:legend align="left">&links;</html:legend>
<box style="width: 100%">
<html:label>&unvisit;</html:label>
<spring flex="100%"/>
<menu id="unvisitedlinkmenu" allowevents="true" class="colorpicker">
<html:div id="browserUnvisitedLinksColorDiv" style="width:30px; background-color:white"/>
<spring flex="100%"/>
<titledbutton class="popup" align="right" flex="100%"/>
<menupopup id="unvisitedLinksMenuPopup">
<colorpicker allowevents="true" id="unvisitedLinksColorpicker" palettename="standard" onclick="setColorWell(this.parentNode.parentNode, 'background', false);"/>
</menupopup>
</menu>
<html:input type="hidden" id="unvisitedLinks"
pref="true" preftype="string" prefstring="browser.anchor_color"/>
</box>
<box style="width: 100%">
<html:label>&visit;</html:label>
<spring flex="100%"/>
<menu id="visitedlinkmenu" allowevents="true" class="colorpicker">
<html:div id="browserVisitedLinksColorDiv" style="width:30px; background-color:white"/>
<spring flex="100%"/>
<titledbutton class="popup" align="right"/>
<menupopup id="visitedLinksMenuPopup">
<colorpicker allowevents="true" id="visitedLinksColorpicker" palettename="standard" onclick="setColorWell(this.parentNode.parentNode, 'background', false);"/>
</menupopup>
</menu>
<html:input type="hidden" id="visitedLinks"
pref="true" preftype="string" prefstring="browser.visited_color"/>
</box>
<html:div>
<html:input type="checkbox" id="browserUnderlineAnchors" pref="true"
preftype="bool" prefstring="browser.underline_anchors"/>
<html:label for="browserUnderlineAnchors" accesskey="u" tabindex="0">
&underLinksCheck.label;
</html:label>
</html:div>
</html:fieldset>
</box>
<html:fieldset>
<html:legend align="left">
<html:div></html:div>
</html:legend>
<html:fieldset>
<html:div>&someProvColors;</html:div>
<html:div>
&someProvColors;
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:browser.use_document_colors" />
<html:label for="pref:0:bool:browser.use_document_colors" accesskey="a" tabindex="0">
&alwaysOverCheck.label;
</html:label>
<html:input type="checkbox" id="browserUseDocumentColors"
pref="true" preftype="bool" prefstring="browser.use_document_colors"/>
<html:label for="browserUseDocumentColors" accesskey="a" tabindex="0">
&alwaysOverCheck.label;
</html:label>
</html:div>
</html:fieldset>
</window>

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

@ -0,0 +1,54 @@
function setColorWell(menu,otherId,setbackground)
{
// Find the colorWell and colorPicker in the hierarchy.
var colorWell = menu.firstChild;
var colorPicker = menu.firstChild.nextSibling.nextSibling.firstChild;
var colorRef = menu.nextSibling; // colour value is held here
// Extract color from colorPicker and assign to colorWell.
var color = colorPicker.getAttribute('color');
// set colour values in the display
setColorFromPicker(colorWell,color,otherId,setbackground);
// set the colour value internally for use in prefwindow
dump("*** setting value of internal field to : " + color + "\n");
colorRef.setAttribute( "value", color );
}
function getColorFromWellAndSetValue(menuid,otherId,setbackground)
{
var menu = document.getElementById(menuid); // picker container
var colorWell = menu.firstChild; // display for picker colour
var colorRef = menu.nextSibling; // prefs JS sets this.
colorWell.style.backgroundColor = colorRef.value; // set the well from prefs.
var color = colorWell.style.backgroundColor;
setColorFromPicker(null,color,otherId,setbackground);
}
function setColorFromPicker(colorWell,color,otherId,setbackground)
{
if (colorWell) {
colorWell.style.backgroundColor = color;
}
if (otherId) {
otherElement=document.getElementById(otherId);
if (setbackground) {
var basestyle = otherElement.getAttribute('basestyle');
var newstyle = basestyle + "background-color:" + color + ";";
otherElement.setAttribute('style',newstyle);
}
else {
otherElement.style.color = color;
}
}
}
function InitColors()
{
getColorFromWellAndSetValue('normaltextmenu','normaltext',false);
getColorFromWellAndSetValue('linktextmenu','linktext',false);
getColorFromWellAndSetValue('activelinktextmenu','activelinktext',false);
getColorFromWellAndSetValue('followedlinktextmenu','followedlinktext',false);
getColorFromWellAndSetValue('colorpreviewmenu','colorpreview',true);
return true;
}

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

@ -28,31 +28,11 @@
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
onload="StartUp('Composer'); return InitColors();" align="vertical" title="&title.label;">
align="vertical" title="&title.label;"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-composer' ); else parent.queuedTag = 'pref-composer'; InitColors();">
<html:script language="javascript" src="chrome://pref/content/PrefsWindow.js"/>
<html:script language="JavaScript" src="chrome://pref/content/pref-composer.js"/>
<html:script language="javascript">
function getColorFromWellAndSetValue(menuid,otherId,setbackground)
{
var menu=document.getElementById(menuid);
var colorWell = menu.firstChild.nextSibling;
var color=colorWell.style.backgroundColor;
setColorFromPicker(null,color,otherId,setbackground);
}
function InitColors()
{
getColorFromWellAndSetValue('normaltextmenu','normaltext',false);
getColorFromWellAndSetValue('linktextmenu','linktext',false);
getColorFromWellAndSetValue('activelinktextmenu','activelinktext',false);
getColorFromWellAndSetValue('followedlinktextmenu','followedlinktext',false);
getColorFromWellAndSetValue('colorpreviewmenu','colorpreview',true);
return true;
}
</html:script>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
@ -63,7 +43,8 @@ function InitColors()
<html:fieldset>
<html:div>
&authorName;
<html:input name="author" type="text" id="pref:string:editor.author" />
<html:input name="author" type="text" id="editorAuthor"
pref="true" preftype="string" prefstring="editor.author"/>
</html:div>
<!-- Take out Auto-Save; not supported at this time
<html:div>
@ -110,98 +91,109 @@ function InitColors()
<html:div>&pageColorHeader;</html:div>
</html:legend>
<html:div>
<html:input name="color" type="radio" id="pref:0:int:editor.use_custom_colors" checked="true" />
<html:label for="pref:0:int:editor.unknown" tabindex="0">
<html:input name="color" type="radio" id="editorUseCustomColors0"
pref="true" preftype="int" prefindex="0" prefstring="editor.use_custom_colors"/>
<html:label for="editorUseCustomColors" tabindex="0">
&UseNavigatorColor.label;
</html:label>
</html:div>
<html:div>
<html:input name="color" type="radio" id="pref:1:int:editor.use_custom_colors" />
<html:label for="pref:1:int:editor.unknown" tabindex="0">
<html:input name="color" type="radio" id="editorUseCustomColors1"
pref="true" preftype="int" prefindex="1" prefstring="editor.use_custom_colors"/>
<html:label for="editorUseCustomColors1" tabindex="0">
&UseCustomColors.label;
</html:label>
</html:div>
<spring style="height: 7px;"/>
<box align="horizontal" style="width: 100%; height: 100%">
<box align="vertical" flex="1">
<box>
<html:div>
<html:label for="pref:#000000:color:editor.text_color" accesskey="t" tabindex="0">
</html:label>
</html:div>
<menu id="normaltextmenu">
<titledbutton id="normalTitledButton" value="&NormalText.label;" class="popup" align="right"/>
<!-- need to do something BETTER here to accomodate indentation -->
<spring style="width: 21px"/>
<box align="vertical" flex="100%">
<box flex="100%">
<html:label>
&NormalText.label;
</html:label>
<spring flex="100%"/>
<menu id="normaltextmenu" allowevents="true" class="colorpicker">
<html:div id="pref:#000000:color:editor.text_color" style="width:30px; background-color:white"/>
<titledbutton class="popup" align="right" flex="100%"/>
<menupopup id="normalMenuPopup">
<colorpicker id="normalColorpicker" palettename="standard" onclick="setColorWell(this.parentNode.parentNode, 'normaltext', false);"/>
<colorpicker allowevents="true" id="normalColorpicker" palettename="standard" onclick="setColorWell(this.parentNode.parentNode, 'normaltext', false);"/>
</menupopup>
</menu>
<html:input type="hidden" id="normalText"
pref="true" preftype="string" prefstring="editor.text_color"/>
</box>
<box>
<html:div>
<html:label for="pref:#000000:color:editor.link_color" accesskey="l" tabindex="0">
</html:label>
</html:div>
<menu id="linktextmenu">
<titledbutton value="&LinkText.label;" class="popup" align="right"/>
<html:label>
&LinkText.label;
</html:label>
<spring flex="100%"/>
<menu id="linktextmenu" class="colorpicker">
<html:div id="pref:#000000:color:editor.link_color" style="width:30px; background-color:white"/>
<titledbutton class="popup" align="right" flex="100%"/>
<menupopup>
<colorpicker palettename="standard" onclick="setColorWell(this.parentNode.parentNode,'linktext',false);"/>
</menupopup>
</menu>
<html:input type="hidden" id="linkText"
pref="true" preftype="string" prefstring="editor.link_color"/>
</box>
<box>
<html:div>
<html:label for="pref:#000000:color:editor.active_link_color" accesskey="c" tabindex="0">
</html:label>
</html:div>
<menu id="activelinktextmenu">
<titledbutton value="&ActiveLinkText.label;" class="popup" align="right"/>
<html:label>
&ActiveLinkText.label;
</html:label>
<spring flex="100%"/>
<menu id="activelinktextmenu" class="colorpicker">
<html:div id="pref:#000000:color:editor.active_link_color" style="width:30px; background-color:white"/>
<titledbutton class="popup" align="right" flex="100%"/>
<menupopup>
<colorpicker palettename="standard" onclick="setColorWell(this.parentNode.parentNode,'activelinktext',false);"/>
</menupopup>
</menu>
<html:input type="hidden" id="activeLinkText"
pref="true" preftype="string" prefstring="editor.active_link_color"/>
</box>
<box>
<html:div>
<html:label for="pref:#000000:color:editor.followed_link_color" accesskey="f" tabindex="0">
</html:label>
</html:div>
<menu id="followedlinktextmenu">
<titledbutton value="&FollowedLinkText.label;" class="popup" align="right"/>
<html:label>
&FollowedLinkText.label;
</html:label>
<spring flex="100%"/>
<menu id="followedlinktextmenu" class="colorpicker">
<html:div id="pref:#000000:color:editor.followed_link_color" style="width:30px; background-color:white"/>
<titledbutton class="popup" align="right" flex="100%"/>
<menupopup>
<colorpicker palettename="standard" onclick="setColorWell(this.parentNode.parentNode,'followedlinktext',false);"/>
</menupopup>
</menu>
<html:input type="hidden" id="followedLinkText"
pref="true" preftype="string" prefstring="editor.followed_link_color"/>
</box>
<box>
<html:div>
<html:label for="pref:#000000:color:editor.background_color" accesskey="b" tabindex="0">
</html:label>
</html:div>
&colorPick; &BackgroundColor.label;
<menu id="colorpreviewmenu">
<titledbutton value="&BackgroundColor.label;" class="popup" align="right"/>
<html:label>
&BackgroundColor.label;
</html:label>
<spring flex="100%"/>
<menu id="colorpreviewmenu" class="colorpicker">
<html:div id="pref:#000000:color:editor.background_color" style="width:30px; background-color:white"/>
<titledbutton class="popup" align="right" flex="100%"/>
<menupopup>
<colorpicker palettename="standard" onclick="setColorWell(this.parentNode.parentNode,'colorpreview',true);"/>
</menupopup>
</menu>
<html:input type="hidden" id="backgroundColor"
pref="true" preftype="string" prefstring="editor.background_color"/>
</box>
</box>
<box align="vertical" flex="1" id="colorpreview" basestyle="min-width:100px; min-height:50px;" style="min-width:100px; min-height:50px;">
<spring style="width: 7px;"/>
<box align="vertical" flex="100%" id="colorpreview" basestyle="min-width:135px; min-height:50px; width: 100%; border: 1px inset #CCCCCC; padding: 5px; " style="min-width:100px; min-height:50px; width: 100%; border: 1px inset #CCCCCC; padding: 5px; ">
<html:div id="normaltext"> &NormalText.label; </html:div>
<html:div id="linktext"> &LinkText.label; </html:div>
<html:div id="activelinktext"> &ActiveLinkText.label; </html:div>

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

@ -0,0 +1,110 @@
<?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/
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):
-->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-cookies.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
align="vertical" title="&window.title;"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-cookies' ); else parent.queuedTag = 'pref-cookies';">
<html:script language="JavaScript">
function viewCookies()
{
window.openDialog("chrome://wallet/content/CookieViewer.xul","","chrome, resizable=no");
}
</html:script>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
</box>
<html:fieldset>
<html:legend align="left">
<html:div>&cookies;</html:div>
</html:legend>
<html:table width="100%" cellpadding="0" cellspacing="0">
<html:tr>
<html:td colspan="2">
<html:div>
&cookieDetails;
</html:div>
<html:br/>
</html:td>
</html:tr>
<html:tr>
<html:td>
<html:input name="cookies" type="radio" id="networkCookieBehaviour0"
pref="true" preftype="int" prefindex="0" prefstring="network.cookie.cookieBehaviour"/>
</html:td>
<html:td>
<html:label for="networkCookieBehaviour0" accesskey="a" tabindex="0">
<html:div>&accAllCookiesRadio.label;</html:div>
</html:label>
</html:td>
</html:tr>
<html:tr>
<html:td>
<html:input type="radio" name="cookies" id="networkCookieBehaviour1"
pref="true" preftype="int" prefindex="1" prefstring="network.cookie.cookieBehaviour"/>
</html:td>
<html:td>
<html:label for="networkCookieBehaviour1" accesskey="o" tabindex="0">
<html:div>&accpOrgCookiesRadio.label;</html:div>
</html:label>
</html:td>
</html:tr>
<html:tr>
<html:td>
<html:input type="radio" name="cookies" id="networkCookieBehaviour2"
pref="true" preftype="int" prefindex="2" prefstring="network.cookie.cookieBehaviour"/>
</html:td>
<html:td>
<html:label for="networkCookieBehaviour2" accesskey="d" tabindex="0">
<html:div>&disCookRadio.label;</html:div>
</html:label>
</html:td>
</html:tr>
<html:tr>
<html:td/>
<html:td>
<html:input type="checkbox" id="networkCookieWarnAboutCookies"
pref="true" preftype="bool" prefstring="network.cookie.warnAboutCookies"/>
<html:label for="networkCookieWarnAboutCookies" accesskey="w" tabindex="0">
<html:div>&warnCookCheck.label;</html:div>
</html:label>
</html:td>
</html:tr>
</html:table>
<box align="horizontal" flex="100%" style="width: 100%">
<spring flex="100%"/>
<titledbutton value="&viewCookies.label;" class="dialog push" onclick="viewCookies();"/>
</box>
<spring style="height: 40px;"/>
</html:fieldset>
</window>

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

@ -20,123 +20,134 @@
Contributor(s):
-->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-debug.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
onload="return StartUp('Debug');"
align="vertical" title="&window.title;"
debug="false">
align="vertical" title="&window.title;"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-debug' ); else parent.queuedTag = 'pref-debug';">
<html:script language="javascript" src="chrome://pref/content/PrefsWindow.js"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
</box>
</box>
<!-- Temporary hack to turn on gfx-rendered widgets -->
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">&widgetRendering.label;</html:legend>
<box align="horizontal">
<html:div>
<html:input name="widgetRendering" type="radio" id="nglayoutWidgetMode0"
pref="true" preftype="int" prefindex="0" prefstring="nglayout.widget.mode"/>
<html:label for="nglayoutWidgetMode0" accesskey="n" tabindex="0">
&nativeWidgets.label;
</html:label>
</html:div>
<html:div>
<html:input name="widgetRendering" type="radio" id="nglayoutWidgetMode1"
pref="true" preftype="int" prefindex="1" prefstring="nglayout.widget.mode"/>
<html:label for="nglayoutWidgetMode1" accesskey="n" tabindex="0">
&partialGfxWidgets.label;
</html:label>
</html:div>
<html:div>
<html:input name="widgetRendering" type="radio" id="nglayoutWidgetMode2"
pref="true" preftype="int" prefindex="2" prefstring="nglayout.widget.mode"/>
<html:label for="nglayoutWidgetMode2" accesskey="g" tabindex="0">
&gfxWidgets.label;
</html:label>
</html:div>
</box>
<!-- Temporary hack to turn on gfx-rendered widgets -->
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">
<html:div>&widgetRendering.label;</html:div>
</html:legend>
<html:div>
<html:input type="checkbox" id="pref:0:bool:nglayout.widget.gfxscrollbars" />
<html:label for="pref:0:bool:nglayout.widget.gfxscrollbars" accesskey="n" tabindex="0">
&gfxScrollbars.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:nglayout.widget.debugWindow" />
<html:label for="pref:0:bool:nglayout.widget.debugWindow" accesskey="n" tabindex="0">
&debugWindow.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="nglayoutWidgetGFXScrollbars"
pref="true" preftype="bool" prefstring="nglayout.widget.gfxscrollbars"/>
<html:label for="nglayoutGFXScrollbars" accesskey="n" tabindex="0">
&gfxScrollbars.label;
</html:label>
</html:div>
</html:fieldset>
</box>
</html:fieldset>
</box>
<!-- Event Debugging -->
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">
<html:div>&debugEventDebugging.label;</html:div>
</html:legend>
<html:div>
<html:input type="checkbox" id="pref:0:bool:nglayout.debug.paint_flashing" />
<html:label for="pref:0:bool:nglayout.debug.paint_flashing" accesskey="n" tabindex="0">
&debugPaintFlashing.label;
</html:label>
</html:div>
<!-- Event Debugging -->
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">&debugEventDebugging.label;</html:legend>
<html:div>
<html:input type="checkbox" id="nglayoutDebugPaintFlashing"
pref="true" preftype="bool" prefstring="nglayout.debug.paint_flashing"/>
<html:label for="nglayoutDebugPaintFlashing" accesskey="n" tabindex="0">
&debugPaintFlashing.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:nglayout.debug.paint_dumping" />
<html:label for="pref:0:bool:nglayout.debug.paint_dumping" accesskey="n" tabindex="0">
&debugPaintDumping.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="nglayoutDebugPaintDumping"
pref="true" preftype="bool" prefstring="nglayout.debug.paint_dumping"/>
<html:label for="nglayoutDebugPaintDumping" accesskey="n" tabindex="0">
&debugPaintDumping.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:nglayout.debug.invalidate_dumping" />
<html:label for="pref:0:bool:nglayout.debug.invalidate_dumping" accesskey="n" tabindex="0">
&debugInvalidateDumping.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="nglayoutDebugInvalidateDumping"
pref="true" preftype="bool" prefstring="nglayout.debug.invalidate_dumping"/>
<html:label for="nglayoutDebugInvaliateDumping" accesskey="n" tabindex="0">
&debugInvalidateDumping.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:nglayout.debug.event_dumping" />
<html:label for="pref:0:bool:nglayout.debug.event_dumping" accesskey="n" tabindex="0">
&debugEventDumping.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="nglayoutDebugEventDumping"
pref="true" preftype="bool" prefstring="nglayout.debug.invalidate_dumping"/>
<html:label for="nglayoutDebugEventDumping" accesskey="n" tabindex="0">
&debugEventDumping.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:nglayout.debug.motion_event_dumping" />
<html:label for="pref:0:bool:nglayout.debug.motion_event_dumping" accesskey="n" tabindex="0">
&debugMotionEventDumping.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="nglayoutDebugMotionEventDumping"
pref="true" preftype="bool" prefstring="nglayout.debug.motion_event_dumping"/>
<html:label for="nglayoutDebugMotionEventDumping" accesskey="n" tabindex="0">
&debugMotionEventDumping.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="nglayoutDebugCrossingEventDumping"
pref="true" preftype="bool" prefstring="nglayout.debug.motion_event_dumping"/>
<html:label for="nglayoutDebugCrossingEventDumping" accesskey="n" tabindex="0">
&debugCrossingEventDumping.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:nglayout.debug.crossing_event_dumping" />
<html:label for="pref:0:bool:nglayout.debug.crossing_event_dumping" accesskey="n" tabindex="0">
&debugCrossingEventDumping.label;
</html:label>
</html:div>
</html:fieldset>
</box>
</html:fieldset>
</box>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">
<html:div>&debugMiscellaneous.label;</html:div>
</html:legend>
<html:div>
<html:input type="checkbox" id="pref:0:bool:nglayout.debug.disable_xul_cache" />
<html:label for="pref:0:bool:nglayout.debug.disable_xul_cache" accesskey="n" tabindex="0">
&debugDisableXULCache.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:browser.cache.enable" />
<html:label for="pref:0:bool:browser.cache.enable" accesskey="n" tabindex="0">
&debugEnableMemCache.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:nglayout.debug.enable_xpcom_refcnt_log" />
<html:label for="pref:0:bool:nglayout.debug.enable_xpcom_refcnt_log" accesskey="n" tabindex="0">
&debugEnableXPCOMRefcntLog.label;
</html:label>
</html:div>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">&debugMiscellaneous.label;</html:legend>
<html:div>
<html:input type="checkbox" id="nglayoutDebugDisableXULCache"
pref="true" preftype="bool" prefstring="nglayout.debug.disable_xul_cache"/>
<html:label for="nglayoutDebugDisableXULCache" accesskey="n" tabindex="0">
&debugDisableXULCache.label;
</html:label>
<html:input type="checkbox" id="nglayoutDebugEnableXPCOMRefcntLog"
pref="true" preftype="bool" prefstring="nglayout.debug.enable_xpcom_refcnt_log"/>
<html:label for="nglayoutDebugEnableXPCOMRefcntLog" accesskey="n" tabindex="0">
&debugEnableXPCOMRefcntLog.label;
</html:label>
</html:div>
</html:fieldset>
</box>
</box>
</window>

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

@ -20,16 +20,17 @@
Contributor(s):
-->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-download.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
onload="return StartUp('Composer');" align="vertical" title="&title.label;">
align="vertical" title="&title.label;"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-download' ); else parent.queuedTag = 'pref-download';">
<html:script language="javascript" src="chrome://pref/content/PrefsWindow.js"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
@ -42,24 +43,28 @@
<html:div>&newmes;</html:div>
</html:legend>
<html:div>
<html:input type="checkbox" id="pref:0:bool:offline.news.download.unread_only" />
<html:label for="pref:0:bool:offline.news.download.unread_only" accesskey="" tabindex="0">
<html:input type="checkbox" id="offlineNewsDownloadUnreadOnly"
pref="true" preftype="bool" prefstring="offline.news.download.unread_only"/>
<html:label for="offlineNewsDownloadUnreadOnly" accesskey="" tabindex="0">
&downOnlyCheck;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:offline.news.download.by_date" />
<html:label for="pref:0:bool:offline.news.download.by_date" accesskey="" tabindex="0">
<html:input type="checkbox" id="offlineNewsDownloadByDate"
pref="true" preftype="bool" prefstring="offline.news.download.by_date"/>
<html:label for="offlineNewsDownloadByDate" accesskey="" tabindex="0">
&downDateCheck;
</html:label>
</html:div>
<html:p>
<html:div>
<html:input type="radio" name="offline" id="pref:0:bool:offline.news.download.use_days" checked="true" />
<html:label for="pref:0:bool:offline.news.download.use_days" accesskey="f" tabindex="0">
<html:input type="radio" name="offline" id="offlineNewsDownloadUseDays0"
pref="true" preftype="int" prefindex="0" prefstring="offline.news.download.use_days"/>
<html:label for="offlineNewsDownloadUseDays0" accesskey="f" tabindex="0">
&fromRadio.label;
</html:label>
<html:select id="pref:int:offline.news.download.increments">
<html:select id="offlineNewsDownloadIncrements"
pref="true" preftype="string" prefstring="offline.news.download.increments">
<html:option value="0">&yesterday.select;</html:option>
<html:option value="1">&oneW.select;</html:option>
<html:option value="2">&twoW.select;</html:option>
@ -69,11 +74,14 @@
</html:select>
</html:div>
<html:div>
<html:input type="radio" name="offline" id="pref:1:bool:offline.news.download.use_days" />
<html:label for="pref:1:bool:offline.news.download.use_days" accesskey="s" tabindex="0">
<html:input type="radio" name="offline" id="offlineNewsDownloadUseDays1"
pref="true" preftype="int" prefindex="1" prefstring="offline.news.download.use_days"/>
<html:label for="offlineNewsDownloadUseDays1" accesskey="s" tabindex="0">
&sinceRadio.label;
</html:label>
<html:input type="text" size="5" id="pref:30:char:offline.news.download.days" />&daysAgo;
<html:input type="text" size="5" id="offlineNewsDownloadDays"
pref="true" preftype="string" prefstring="offline.news.download.days"/>
&daysAgo;
</html:div>
</html:p>
</html:fieldset>

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

@ -21,15 +21,13 @@
Contributor(s):
-->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<?xul-overlay href="chrome://pref/content/fontScalingOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-fonts.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
id="fontPanel"
onload="StartUp('Fonts')" title="&window.title;"
align="vertical">
title="&window.title;" align="vertical"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-fonts' ); else parent.queuedTag = 'pref-fonts';">
<html:script language="javascript" src="PrefsWindow.js"/>
<box class="header" align="horizontal">
@ -67,8 +65,11 @@
</html:td>
<html:td>
<html:select>
<html:option>&encod1.option;</html:option>
<html:select id="fontVarSelect"
pref="true" preftype="string" prefstring="layout.variable_font">
<html:option value="0">Font</html:option>
<html:option value="1">Foo</html:option>
<html:option value="2">Bar</html:option>
</html:select>
</html:td>
@ -112,26 +113,28 @@
&header2;
</html:div>
<html:div>
<html:input name="fonts" type="radio" id="pref:0:int:browser.use_document_fonts" val="checked" />
<html:label for="pref:0:int:browser.use_document_fonts" accesskey="t" tabindex="0">
<html:input name="fonts" type="radio" id="browserUseDocumentFonts0"
pref="true" preftype="int" prefindex="0" prefstring="browser.use_document_fonts"/>
<html:label for="browserUseDocumentFonts0" accesskey="t" tabindex="0">
&useDefaultFont;
</html:label>
</html:div>
<html:div>
<html:input name="fonts" type="radio" id="pref:1:int:browser.use_document_fonts" val="checked" />
<html:label for="pref:1:int:browser.use_document_fonts" accesskey="t" tabindex="0">
<html:input name="fonts" type="radio" id="browserUseDocumentFonts1"
pref="true" preftype="int" prefindex="1" prefstring="browser.use_document_fonts"/>
<html:label for="browserUseDocumentFonts1" accesskey="t" tabindex="0">
&useDocFontNonDynamic;
</html:label>
</html:div>
<html:div>
<html:input name="fonts" type="radio" id="pref:2:int:browser.use_document_fonts" val="checked" />
<html:input name="fonts" type="radio" id="browserUseDocumentFonts2"
pref="true" preftype="int" prefindex="2" prefstring="browser.use_document_fonts"/>
<html:label for="pref:2:int:browser.use_document_fonts" accesskey="t" tabindex="0">
&useDocFontDynamic;
</html:label>
</html:div>
</html:fieldset>
<!--
<html:table>
<html:tr>

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

@ -26,35 +26,32 @@
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
align="vertical"
onload = "return StartUp('Languages')"
title="window.title">
align="vertical" title="window.title"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-languages' ); else parent.queuedTag = 'pref-languages';">
<html:script language="javascript" src="PrefsWindow.js"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
</box>
</box>
<html:table>
<html:tr><html:td>&prefLangDecript;</html:td></html:tr>
<html:tr>
<html:td>
<html:select name="textstyle" size="5">
<html:fieldset style="width: 100%">
<html:div>&prefLangDecript;</html:div>
<spring style="height: 10px;"/>
<box align="horizontal" flex="100%" style="width: 100%">
<box align="vertical" flex="100%">
<html:select name="textstyle" size="5" id="intlAcceptLanguages"
pref="true" preftype="string" prefstring="intl.accept_languages" flex="100%">
<html:optgroup>
<html:option value="0" id="pref:string:intl.accept_languages">
&engOption.label;
</html:option>
<html:option value="0">&engOption.label;</html:option>
</html:optgroup>
</html:select>
</html:td>
</html:tr>
<html:tr>
<html:td><html:input name="choose" type="button" value="&addButton.label;" /></html:td>
<html:td>
<html:input name="choose" type="button" value="&deleteButton.label;"/>
</html:td>
</html:tr>
</html:table>
</box>
<box align="vertical">
<titledbutton class="dialog push" value="&addButton.label;"/>
<titledbutton class="dialog push" value="&deleteButton.label;"/>
</box>
</box>
<spring style="height: 37px;"/>
</html:fieldset>
</window>

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

@ -0,0 +1,19 @@
function prefNavSelectFile()
{
bundle = srGetStrBundle("chrome://pref/locale/prefutilities.properties");
var folderField = document.getElementById("browserStartupHomepage");
var url = getFileOrFolderURL( bundle.GetStringFromName("choosehomepage"), false );
if( url != -1 )
folderField.value = url;
}
function setHomePageToCurrentPage()
{
if( !parent.opener.appCore )
return false;
var homePageField = document.getElementById("browserStartupHomepage");
var url = parent.opener.content.location.href;
if( url )
homePageField = url;
}

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

@ -26,11 +26,15 @@
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-navigator.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
onload="return StartUp('Navigator');" align="vertical" title="&title.label;">
align="vertical" title="&title.label;"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-navigator' ); else parent.queuedTag = 'pref-navigator';">
<html:script language="javascript" src="chrome://global/content/strres.js" />
<html:script language="javascript" src="chrome://pref/content/prefutilities.js"/>
<html:script language="javascript" src="chrome://pref/content/pref-navigator.js"/>
<html:script language="javascript" src="chrome://pref/content/PrefsWindow.js"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
@ -43,20 +47,23 @@
<html:div>&navRadio;</html:div>
</html:legend>
<html:div>
<html:input name="starts" type="radio" id="pref:0:int:browser.startup.page" />
<html:label for="pref:0:int:browser.startup.page" accesskey="" tabindex="0">
<html:input name="starts" type="radio" id="browserStartupPage0"
pref="true" preftype="int" prefindex="0" prefstring="browser.startup.page"/>
<html:label for="browserStartupPage0" accesskey="" tabindex="0">
&blankRadio;
</html:label>
</html:div>
<html:div>
<html:input name="starts" type="radio" id="pref:1:int:browser.startup.page" />
<html:label for="pref:1:int:browser.startup.page" accesskey="" tabindex="0">
<html:input name="starts" type="radio" id="browserStartupPage1"
pref="true" preftype="int" prefindex="1" prefstring="browser.startup.page"/>
<html:label for="browserStartupPage1" accesskey="" tabindex="0">
&header2.label;
</html:label>
</html:div>
<html:div>
<html:input name="starts" type="radio" id="pref:2:int:browser.startup.page" />
<html:label for="pref:2:int:browser.startup.page" accesskey="" tabindex="0">
<html:input name="starts" type="radio" id="browserStartupPage2"
pref="true" preftype="int" prefindex="2" prefstring="browser.startup.page"/>
<html:label for="browserStartupPage2" accesskey="" tabindex="0">
&lastPageRadio;
</html:label>
</html:div>
@ -68,11 +75,12 @@
</html:legend>
<html:div>&clickRadio;</html:div>
&location;
<html:input name="homepage" type="text" id="pref:string:browser.startup.homepage" size="30" />
<html:input name="homepage" type="text" id="browserStartupHomepage"
pref="true" preftype="string" prefstring="browser.startup.homepage" size="30"/>
<html:div>
<spring flex="100%"/>
<titledbutton class="dialog push" name="starts" type="button" value="&useCurrent;" onclick="SetPrefToCurrentPage('pref:string:browser.startup.homepage');" />
<titledbutton class="dialog push" name="browse" type="button" value="&browseFile;" onclick="PrefNavSelectFile('pref:string:browser.startup.homepage')"/>
<titledbutton class="dialog push" name="starts" type="button" value="&useCurrent;" onclick="setHomePageToCurrentPage();" />
<titledbutton class="dialog push" name="browse" type="button" value="&browseFile;" onclick="prefNavSelectFile()"/>
</html:div>
</html:fieldset>

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

@ -21,91 +21,74 @@
Contributor(s):
-->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-offline.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
onload="return StartUp('offline');"
align="vertical" title="&title.label;"
debug="false">
title="&title.label;"
align="vertical"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-offline' ); else parent.queuedTag = 'pref-offline';">
<html:script language="javascript" src="PrefsWindow.js"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
</box>
</box>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">
<html:div>&header1;</html:div>
</html:legend>
<html:div>
<html:label>
<html:input name="state" type="radio" id="pref:0:int:offline.startup_state" />&prevRadio.label;
<html:br />&communRemember;
</html:label>
</html:div>
<html:div>
<html:label>
<html:input name="state" type="radio" id="pref:1:int:offline.startup_state" />&askOfflineRadio.label;
<html:br />&offlineStartAskEach;
</html:label>
</html:div>
</html:fieldset>
</box>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">
<html:div>&header2;</html:div>
</html:legend>
<html:div>
<html:label>
<html:input name="offmail" type="radio" id="pref:0:int:offline.send.unsent_messages" />&unsentAskRadio.label;
</html:label>
</html:div>
<html:div>
<html:label>
<html:input name="offmail" type="radio" id="pref:1:int:offline.send.unsent_messages" />&unsentAutoRadio.label;
</html:label>
</html:div>
<html:div>
<html:label>
<html:input name="offmail" type="radio" id="pref:2:int:offline.send.unsent_messages" />&unsentDoNotRadio.label;
</html:label>
</html:div>
</html:fieldset>
</box>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">
<html:div>&header3;</html:div>
</html:legend>
<html:div>
<html:label>
<html:input type="checkbox" id="pref:0:bool:offline.prompt_synch_on_exit" />&promptSynchCheck.label;
</html:label>
</html:div>
</html:fieldset>
</box>
<html:fieldset>
<html:div>&descipt1;</html:div>
<spring style="height: 10px"/>
<box align="horizontal">
<html:div>
<html:input name="state" type="radio" id="offlineStartupState0"
pref="true" preftype="int" prefindex="0" prefstring="offline.startup_state"/>
</html:div>
<html:label for="offlineStartupState0">&prevRadio.label;</html:label>
</box>
<box align="horizontal">
<html:div>
<html:input name="state" type="radio" id="offlineStartupState1"
pref="true" preftype="int" prefindex="0" prefstring="offline.startup_state"/>
</html:div>
<html:label for="offlineStartupState1">&askOfflineRadio.label;</html:label>
</box>
<spring style="height: 30px;"/>
</html:fieldset>
<html:fieldset>
<html:legend>&header2;</html:legend>
<box align="horizontal">
<html:div>
<html:input name="offmail" type="radio" id="offlineSendUnsentMessages0"
pref="true" preftype="int" prefindex="0" prefstring="offline.send.unsent_messages"/>
</html:div>
<html:label for="offlineSendUnsentMessages0">&unsentAskRadio.label;</html:label>
</box>
<box align="horizontal">
<html:div>
<html:input name="offmail" type="radio" id="offlineSendUnsentMessages1"
pref="true" preftype="int" prefindex="1" prefstring="offline.send.unsent_messages"/>
</html:div>
<html:label for="offlineSendUnsentMessages1">&unsentAutoRadio.label;</html:label>
</box>
<box align="horizontal">
<html:div>
<html:input name="offmail" type="radio" id="offlineSendUnsentMessages2"
pref="true" preftype="int" prefindex="2" prefstring="offline.send.unsent_messages"/>
</html:div>
<html:label for="offlineSendUnsentMessages2">&unsentDoNotRadio.label;</html:label>
</box>
</html:fieldset>
<html:fieldset>
<html:legend>&header3;</html:legend>
<box align="horizontal">
<html:div>
<html:input type="checkbox" id="offlinePromptSynchOnExit"
pref="true" preftype="bool" prefstring="offline.prompt_synch_on_exit"/>
</html:div>
<html:label for="offlinePromptSynchOnExit">&promptSynchCheck.label;</html:label>
</box>
</html:fieldset>
</window>

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

@ -0,0 +1,14 @@
function showManualProxyConfig()
{
var manualRow = document.getElementById("manual-proxy");
bundle = srGetStrBundle("chrome://pref/locale/prefutilities.properties");
var viewHideButton = document.getElementById("viewhideManual");
if( manualRow.style.display == "none" ) {
viewHideButton.value = bundle.GetStringFromName("hiderow");
manualRow.style.display = "inherit";
}
else {
viewHideButton.value = bundle.GetStringFromName("viewrow");
manualRow.style.display = "none"
}
}

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

@ -24,141 +24,131 @@
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-proxies.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
onload="manualSelected();return StartUp('Proxies');"
align="vertical" title="Sample Prefs Panel"
debug="false">
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog" title="Sample Prefs Panel"
align="vertical"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-proxies' ); else parent.queuedTag = 'pref-proxies';">
<html:script language="javascript" src="PrefsWindow.js"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<html:script language="javascript" src="chrome://global/content/strres.js" />
<html:script language="javascript" src="chrome://pref/content/prefutilities.js"/>
<html:script language="JavaScript" src="chrome://pref/content/pref-proxies.js"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
</box>
</box>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<!-- &networkHeader.label; Bug in boxes-->
<html:div>
<html:input name="directManualOrAuto" type="radio" id="pref:0:int:network.proxy.type" />
<html:label for="pref:0:int:network.proxy.type" accesskey="d" tabindex="0">
&directTypeRadio.label;
</html:label>
</html:div>
<html:div>
<html:input name="directManualOrAuto" type="radio" id="pref:1:int:network.proxy.type" />
<html:label for="pref:1:int:network.proxy.type" accesskey="m" tabindex="0">
&manualTypeRadio.label;
</html:label>
<titledbutton class="dialog push" value="&view.label;" align="left" onclick="openit();"/>
</html:div>
<html:div id="manual-proxy" style="display: none">
<html:table width="100%">
<html:tr>
<html:td>
&ftp.label;
</html:td>
<html:td>
<html:input name="ftpproxy" type="text" id="pref:string:network.proxy.ftp" size="20" />
</html:td>
<html:td>
&port.label;
</html:td>
<html:td>
<html:input name="ftpproxyport" type="text" id="pref:0:int:network.proxy.ftp_port" size="5" />
</html:td>
</html:tr>
<html:tr>
<html:td>
&http.label;
</html:td>
<html:td>
<html:input name="httpproxy" type="text" id="pref:string:network.proxy.http" size="20" />
</html:td>
<html:td>
&port.label;
</html:td>
<html:td>
<html:input name="httpproxyport" type="text" id="pref:0:int:network.proxy.http_port" size="5" />
</html:td>
</html:tr>
<html:tr>
<html:td>
&noproxy.label;
</html:td>
<html:td>
<html:input name="noproxy" type="text" id="pref:string:network.proxy.none" size="20" />
</html:td>
</html:tr>
</html:table>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<!-- &networkHeader.label; Bug in boxes-->
<box>
<html:div>
<html:input name="directManualOrAuto" type="radio" id="networkProxyType0"
pref="true" preftype="int" prefindex="0" prefstring="network.proxy.type"/>
</html:div>
<html:label for="networkProxyType0" accesskey="d" tabindex="0">
&directTypeRadio.label;
</html:label>
</box>
<box align="horizontal" flex="100%" style="width: 100%">
<html:div>
<html:input name="directManualOrAuto" type="radio" id="networkProxyType1"
pref="true" preftype="int" prefindex="1" prefstring="network.proxy.type"/>
</html:div>
<html:label for="networkProxyType1" accesskey="m" tabindex="0">
&manualTypeRadio.label;
</html:label>
<spring flex="100%"/>
<titledbutton id="viewhideManual" class="dialog push" value="&view.label;" onclick="showManualProxyConfig();"/>
</box>
<html:div align="horizontal" id="manual-proxy" style="display: block; padding-left: 21px">
<html:table width="100%">
<html:tr>
<html:td>&ftp.label;</html:td>
<html:td>
<html:input name="ftpproxy" type="text" id="networkProxyFTP"
pref="true" preftype="string" prefstring="network.proxy.ftp" size="20"/>
</html:td>
<html:td>&port.label;</html:td>
<html:td>
<html:input name="ftpproxyport" type="text" id="networkProxyFTP_Port"
pref="true" preftype="int" prefstring="network.proxy.ftp_port" size="5"/>
</html:td>
</html:tr>
<html:tr>
<html:td>&http.label;</html:td>
<html:td>
<html:input name="httpproxy" type="text" id="networkProxyHTTP"
pref="true" preftype="string" prefstring="network.proxy.http" size="20"/>
</html:td>
<html:td>&port.label;</html:td>
<html:td>
<html:input name="httpproxyport" type="text" id="networkProxyHTTP_Port"
pref="true" preftype="int" prefstring="network.proxy.http_port" size="5"/>
</html:td>
</html:tr>
<html:tr>
<html:td>&noproxy.label;</html:td>
<html:td>
<html:input name="noproxy" type="text" id="networkProxyNone"
pref="true" preftype="int" prefstring="network.proxy.none" size="20"/>
</html:td>
</html:tr>
</html:table>
</html:div>
<!-- Not supporting gopher -->
<!--
<box align="horizontal">
<html:div>&gopher.label;</html:div>
<html:div>&port.label;</html:div>
<html:input name="gopherproxyport" type="text" id="pref:string:network.proxy.gopher_port" size="5" />
</box>
-->
<!-- Not supporting wais right now -->
<!--
<box align="horizontal">
<html:div>&wais.label;</html:div>
<html:input name="waisproxy" type="text" id="pref:string:network.proxy.wais" size="20" />
<spring flex="100%"/>
<html:div>&port.label;</html:div>
<html:input name="waisproxyport" type="text" id="pref:string:network.proxy.wais_port" size="5" />
</box>
-->
<!--
<box align="put name="gopherproxy" type="text" id="pref:string:network.proxy.gopher" size="20" />
<spring flex="100%"/>
<html:div>&direct.label;</html:div>
</box>
-->
<!-- No supporting at this point -->
<!--
<box align="horizontal">
<html:div>&sockhost.label;</html:div>
<html:input name="sockshost" type="text" id="pref:string:network.socks.host" size="20" />
<spring flex="100%"/>
<html:div>&port.label;</html:div>
<html:input name="socksport" type="text" id="pref:string:network.socks.port" size="5" />
</box>
-->
<box align="horizontal">
<html:div>
<html:input name="directManualOrAuto" type="radio" id="networkProxyType"
pref="true" preftype="int" prefindex="2" prefstring="network.proxy.type"/>
</html:div>
<html:label for="networkProxyType" accesskey="a" tabindex="0">&autoTypeRadio.label;</html:label>
</box>
<box align="horizontal">
&configAutoconfigText.label;
</box>
<box align="horizontal" flex="100%" style="width: 100%;">
<spring flex="25%"/>
<html:input name="" type="text" flex="100%" id="networkProxyAutoconfigURL"
pref="true" preftype="string" prefstring="network.proxy.autoconfig_url"/>
<titledbutton class="dialog push" value="&reload.label;"/>
</box>
</html:fieldset>
</box>
<!-- Not supporting gopher -->
<!--
<box align="horizontal">
<html:div>
&gopher.label;
</html:div>
<html:inv>
&port.label;
</html:div>
<html:input name="gopherproxyport" type="text" id="pref:string:network.proxy.gopher_port" size="5" />
</box> -->
<!-- Not supporting wais right now -->
<!--
<box align="horizontal">
<html:div>
&wais.label;
</html:div>
<html:input name="waisproxy" type="text" id="pref:string:network.proxy.wais" size="20" />
<spring flex="100%"/>
<html:div>
&port.label;
</html:div>
<html:input name="waisproxyport" type="text" id="pref:string:network.proxy.wais_port" size="5" />
</box> -->
<!--
<box align="put name="gopherproxy" type="text" id="pref:string:network.proxy.gopher" size="20" />
<spring flex="100%"/>
<html:dihorizontal">
<html:div>
&direct.label;
</html:div>
</box> -->
<!-- No supporting at this point -->
<!--
<box align="horizontal">
<html:div>
&sockhost.label;
</html:div>
<html:input name="sockshost" type="text" id="pref:string:network.socks.host" size="20" />
<spring flex="100%"/>
<html:div>
&port.label;
</html:div>
<html:input name="socksport" type="text" id="pref:string:network.socks.port" size="5" />
</box> -->
</html:div>
<html:div>
<html:input name="directManualOrAuto" type="radio" id="pref:2:int:network.proxy.type" />
<html:label for="pref:2:int:network.proxy.type" accesskey="a" tabindex="0">
&autoTypeRadio.label;
</html:label>
</html:div>
<html:div>
&configAutoconfigText.label;
<html:input name="" type="text" size="15" id="pref:0:string:network.proxy.autoconfig_url" />
</html:div>
<spring flex="1"/><titledbutton class="dialog push" value="&reload.label;" align="right"/>
</html:fieldset>
</box>
</window>

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

@ -21,15 +21,14 @@
Contributor(s):
-->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-proxy-manual.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="&window.title;"
class="dialog"
align="vertical">
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="&window.title;"
class="dialog" align="vertical"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-proxy-manual' ); else parent.queuedTag = 'pref-proxy-manual';">
<keyset id="keyset"/>
@ -44,45 +43,53 @@
<html:div>
&ftp.label;
</html:div>
<html:input name="ftpproxy" type="text" id="pref:string:string:network.proxy.http" size="30" />
<html:input name="ftpproxy" type="text" id="networkProxyHTTP"
pref="true" preftype="string" prefstring="network.proxy.http" size="30"/>
<spring flex="100%"/>
<html:div>
&port.label;
</html:div>
<html:input name="ftpproxyport" type="text" id="pref:string:string:network.proxy.http_port" size="5" />
<html:input name="ftpproxyport" type="text" id="networkProxyHTTPPort"
pref="true" preftype="string" prefstring="network.proxy.http_port" size="5"/>
</box>
<box align="horizontal">
<html:div>
&gopher.label;
</html:div>
<html:input name="gopherproxy" type="text" id="pref:string:string:network.proxy.gopher" size="30" />
<html:input name="gopherproxy" type="text" id="networkProxyGopher"
pref="true" preftype="string" prefstring="network.proxy.gopher" size="30"/>
<spring flex="100%"/>
<html:div>
&port.label;
</html:div>
<html:input name="gopherproxyport" type="text" id="pref:string:string:network.proxy.gopher_port" size="5" />
<html:input name="gopherproxyport" type="text" id="networkProxyGopherPort"
pref="true" preftype="string" prefstring="network.proxy.gopher_port" size="5"/>
</box>
<box align="horizontal">
<html:div>
&http.label;
</html:div>
<html:input name="httpproxy" type="text" id="pref:string:string:network.proxy.http" size="30" />
<html:input name="httpproxy" type="text" id="networkProxyHTTP"
pref="true" preftype="string" prefstring="network.proxy.http" size="30"/>
<spring flex="100%"/>
<html:div>
&port.label;
</html:div>
<html:input name="httpproxyport" type="text" id="pref:string:string:network.proxy.http_port" size="5" />
<html:input name="httpproxyport" type="text" id="networkProxyHTTPPort"
pref="true" preftype="string" prefstring="network.proxy.http_port" size="5"/>
</box>
<box align="horizontal">
<html:div>
&wais.label;
</html:div>
<html:input name="waisproxy" type="text" id="pref:string:string:network.proxy.wais" size="30" />
<html:input name="waisproxy" type="text" id="networkProxyWAIS"
pref="true" preftype="string" prefstring="network.proxy.wais" size="30"/>
<spring flex="100%"/>
<html:div>
&port.label;
</html:div>
<html:input name="waisproxyport" type="text" id="pref:string:string:network.proxy.wais_port" size="5" />
<html:input name="waisproxyport" type="text" id="networkProxyWAISPort"
pref="true" preftype="string" prefstring="network.proxy.wais_port" size="5"/>
</box>
<box align="horizontal">
<html:div>
@ -93,18 +100,21 @@
<html:div>
&noproxy.label;
</html:div>
<html:input name="noproxy" type="text" id="pref:string:string:network.proxy.none" size="60" />
<html:input name="noproxy" type="text" id="networProxyNone"
pref="true" preftype="string" prefstring="network.proxy.none" size="60"/>
</box>
<box align="horizontal">
<html:div>
&sockhost.label;
</html:div>
<html:input name="sockshost" type="text" id="pref:string:string:network.socks.host" size="30" />
<html:input name="sockshost" type="text" id="networkSocksHost"
pref="true" preftype="string" prefstring="network.socks.host" size="30"/>
<spring flex="100%"/>
<html:div>
&port.label;
</html:div>
<html:input name="socksport" type="text" id="pref:string:string:network.socks.port" size="5" />
<html:input name="socksport" type="text" id="networkSocksPort"
pref="true" preftype="string" prefstring="network.socks.port" size="5"/>
</box>
<box id="okCancelButtons"/>
</box>

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

@ -21,49 +21,58 @@
Contributor(s):
-->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-publish.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="return StartUp('Publish');" title="&window.title;">
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="&window.title;"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-publish' ); else parent.queuedTag = 'pref-publish';">
<html:script language="javascript" src="PrefsWindow.js"/>
<html:div flex="100%">
<html:DIV ID="top">
<html:SPAN ID="lefttext">&composerHeader.label;</html:SPAN>
</html:DIV>
<html:div id="top">
<html:span id="lefttext">&composerHeader.label;</html:span>
</html:div>
<html:table>
<html:tr><html:td>
<html:input name="author" type="checkbox" id="pref:0:bool:editor.publish_keep_images" />&maintainCheckbox.label;
<html:br />&adjustDesc.label;
</html:td></html:tr>
<html:tr><html:td>
<html:input name="autosave" type="checkbox" id="pref:1:bool:bool:ceditor.publish_keep_links" />&keepCheck.label;
<html:br />&saveDesc.label;
</html:td></html:tr>
&tip.label;
<html:tr>
<html:td>
<html:input name="author" type="checkbox" id="editorPublishKeepImages"
pref="true" preftype="bool" prefstring="editor.publish_keep_images" />
<html:label for="editorPublishKeepImages">&maintainCheckbox.label;</html:label>
<html:br />&adjustDesc.label;
</html:td>
</html:tr>
<html:tr>
<html:td>
<html:input name="autosave" type="checkbox" id="editorPublishKeepLinks"
pref="true" preftype="bool" prefstring="editor.publish_keep_links"/>
<html:label for="editorPublishKeepLinks">&keepCheck.label;</html:label>
<html:br />&saveDesc.label;
</html:td>
</html:tr>
&tip.label;
</html:table>
&defaultHeader.label;
<html:table>
<html:tr><html:td>
&publishFtp.label;
</html:td></html:tr>
<html:tr><html:td>
<html:input name="autosave" type="text" id="pref:string:composer.publish" size="30" />
</html:td></html:tr>
<html:tr><html:td>
&publishhtp.label;
</html:td></html:tr>
<html:tr><html:td>
<html:input name="autosave" type="text" id="pref:string:string:composer.browse" size="30" />
</html:td></html:tr>
<html:tr>
<html:td>&publishFtp.label;</html:td>
</html:tr>
<html:tr>
<html:td>
<html:input name="autosave" type="text" id="composerPublish"
pref="true" preftype="string" prefstring="composer.publish" size="30"/>
</html:td>
</html:tr>
<html:tr>
<html:td>&publishhtp.label;</html:td>
</html:tr>
<html:tr>
<html:td>
<html:input name="autosave" type="text" id="composerBrowse"
pref="true" preftype="string" prefstring="composer.browse" size="30"/>
</html:td>
</html:tr>
</html:table>
</html:div>
</window>

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

@ -26,14 +26,13 @@
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-search.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
class="dialog"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="InitSingleEngineList(); return StartUp('search');" title="&title.label;"
align="vertical">
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-colors' ); else parent.queuedTag = 'pref-colors'; InitSingleEngineList(); " title="&title.label;"
align="vertical">
<html:script language="javascript" src="chrome://pref/content/PrefsWindow.js"/>
<html:script language="javascript" src="chrome://pref/content/pref-search.js"/>
<box class="header" align="horizontal">
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
@ -47,8 +46,9 @@
</html:legend>
<html:div>
<html:input name="powermode" type="radio" id="pref:0:int:browser.search.powermode" val="checked" />
<html:label for="pref:0:int:browser.search.powermode" accesskey="t" tabindex="0">
<html:input name="powermode" type="radio" id="browserSearchPowermode0"
pref="true" preftype="int" prefindex="0" prefstring="browser.search.powermode"/>
<html:label for="browserSearchPowermode0" accesskey="t" tabindex="0">
&browserSearchButtonText.label;
</html:label>
@ -72,16 +72,18 @@
</html:div>
<html:div>
<html:input name="powermode" type="radio" id="pref:1:int:browser.search.powermode" val="checked" />
<html:label for="pref:1:int:browser.search.powermode" accesskey="t" tabindex="1">
<html:input name="powermode" type="radio" id="browserSearchPowermode1"
pref="true" preftype="int" prefindex="1" prefstring="browser.search.powermode"/>
<html:label for="browserSearchPowermode1" accesskey="t" tabindex="1">
&enablePowerSearch.label;
</html:label>
</html:div>
</html:fieldset>
<html:div>
<html:input name="opensearchpanel" type="checkbox" id="pref:0:bool:browser.search.opensidebarsearchpanel" val="checked" />
<html:label for="pref:0:bool:browser.search.opensidebarsearchpanel" accesskey="t" tabindex="2">
<html:input name="opensearchpanel" type="checkbox" id="browserSearchOpenSidebarSearchPanel"
pref="true" preftype="bool" prefstring="browser.search.opensidebarsearchpanel"/>
<html:label for="browserSearchOpenSidebarSearchPanel" accesskey="t" tabindex="2">
&openSidebarSearchPanel.label;
</html:label>
</html:div>

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

@ -26,11 +26,9 @@
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-smart_browsing.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
class="dialog"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="return StartUp('smart_browsing');" title="&title.label;"
align="vertical">
<html:script language="javascript" src="chrome://pref/content/PrefsWindow.js"/>
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="&title.label;" align="vertical"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-smart_browsing' ); else parent.queuedTag = 'pref-smart_browsing';">
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
@ -44,38 +42,42 @@
<html:legend align="left">
<html:div>&lHeader;</html:div>
</html:legend>
<!-- rjc: comment out Related Links preferences from 4.x that aren't used in 5.x
<html:div>
<html:input name="related" type="checkbox" id="pref:0:bool:browser.related.enabled"/>
<html:label for="pref:0:bool:browser.related.enabled" accesskey="n" tabindex="0">
<html:input name="related" type="checkbox" id="browserRelatedEnabled"
pref="true" preftype="bool" prefstring="browser.related.enabled"/>
<html:label for="browserRelatedEnabled" accesskey="n" tabindex="0">
&enableRelatedRadio.label;
</html:label>
</html:div>
&autoDecp.label;
<html:div>
<html:input name="related" type="radio" id="pref:0:int:browser.related.autoload" />
<html:label for="pref:0:int:browser.related.autoload" accesskey="n" tabindex="0">
<html:input name="related" type="radio" id="browserRelatedAutoLoad0"
pref="true" preftype="int" prefindex="0" prefstring="browser.related.autoload"/>
<html:label for="browserRelatedAutoLoad0" accesskey="n" tabindex="0">
&neverRadio;
</html:label>
</html:div>
<html:div>
<html:input name="related" type="radio" id="pref:1:int:browser.related.autoload" />
<html:label for="pref:1:int:browser.related.autoload" accesskey="n" tabindex="0">
<html:input name="related" type="radio" id="browserRelatedAutoLoad1"
pref="true" preftype="int" prefindex="1" prefstring="browser.related.autoload"/>
<html:label for="browserRelatedAutoLoad1" accesskey="n" tabindex="0">
&afterAutoloadFirstRadio;
</html:label>
</html:div>
<html:div>
<html:input name="related" type="radio" id="pref:2:int:browser.related.autoload" />
<html:label for="pref:2:int:browser.related.autoload" accesskey="n" tabindex="0">
<html:input name="related" type="radio" id="browserRelatedAutoLoad2"
pref="true" preftype="int" prefindex="2" prefstring="browser.related.autoload"/>
<html:label for="browserRelatedAutoLoad2" accesskey="n" tabindex="0">
&afterAutoloadAlwaysRadio;
</html:label>
</html:div>
-->
<html:div>
&doNotDecp.label;
</html:div>
<html:div>
<html:input name="textstyle" id="pref:string:browser.related.disabledForDomains" />
<html:textarea name="textstyle" ROWS="2" COLS="30" id="browserRelatedDisabledForDomains"
pref="true" preftype="string" prefstring="browser.related.disabledForDomains">
</html:textarea>
</html:div>
</html:fieldset>
</box>
@ -86,8 +88,9 @@
<html:div>&internetKeywordsHeader.label;</html:div>
</html:legend>
<html:div>
<html:input name="keyword" type="checkbox" id="pref:0:bool:browser.goBrowsing.enabled" />
<html:label for="pref:0:bool:browser.goBrowsing.enabled" accesskey="n" tabindex="0">
<html:input name="keyword" type="checkbox" id="browserGoBrowsingEnabled"
pref="true" preftype="bool" prefstring="browser.goBrowsing.enabled"/>
<html:label for="browserGoBrowsingEnabled" accesskey="n" tabindex="0">
&enableKeyCheck.label;
</html:label>
</html:div>

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

@ -1,63 +1,51 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-smartupdate.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="return StartUp('smartupdate');"
class="dialog"
align="vertical"
title="&title.label;">
title="&title.label;"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-smartupdate' ); else parent.queuedTag = 'pref-smartupdate';">
<html:script language="JavaScript" src="chrome://pref/content/PrefsWindow.js">
</html:script>
<box align="vertical">
<box id="header" align="horizontal">
<spring style="width:20px"/>
<html:div style="vertical-align: middle;">
<html:B>&header;</html:B>
</html:div>
<spring flex="100%"/><spring style="width:60px"/>
<html:div ></html:div><spring style="width:5px"/>
</box>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
</box>
<box align="vertical">
<html:fieldset style="width: 100%;">
<html:div>
<html:input type="checkbox" id="pref:0:bool:xpinstall.enabled" />
<html:label for="pref:0:bool:xpinstall.enabled">
&enableSU.label;
</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="pref:0:bool:xpinstall.notifications.enabled" />
<html:label for="pref:0:bool:xpinstall.notifications.enabled">
&enableNotification.label;
</html:label>
</html:div>
<html:fieldset style="width: 100%;">
<html:div>
<html:input type="checkbox" id="XPInstallEnabled"
pref="true" preftype="bool" prefstring="xpinstall.enabled" />
<html:label for="XPInstallEnabled">&enableSU.label;</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="XPInstallNotificationsEnabled"
pref="true" preftype="bool" prefstring="xpinstall.notifications.enabled"/>
<html:label for="XPInstallNotificationsEnabled">&enableNotification.label;</html:label>
</html:div>
<html:div>
<html:input type="checkbox" id="XPInstallManualConfirm"
pref="true" preftype="bool" prefstring="xpinstall.manual_confirm"/>
<html:label for="XPInstallManualConfirm">&requireConfirmation.label;</html:label>
</html:div>
</html:fieldset>
<html:div>
<html:input type="checkbox" id="pref:0:bool:xpinstall.manual_confirm" />
<html:label for="pref:0:bool:xpinstall.manual_confirm">
&requireConfirmation.label;
</html:label>
</html:div>
</html:fieldset>
<html:fieldset style="width: 100%;">
<box align="horizontal">
&selectUninstall.label;
<html:textarea name="textstyle" ROWS="40" COLS="30" id="pref:string:browser.related.disabledForDomains">
</html:textarea>
<spring flex="15%"/>
<titledbutton class="dialog push" id="pref:0:bool:smartupdate" value="&uninstallButton.label;" flex="1" style="max-height:13px;"/>
</box>
</html:fieldset>
</box>
</box>
<html:fieldset style="width: 100%;">
<html:div>&selectUninstall.label;</html:div>
<spring style="height: 10px;"/>
<html:select id="smartUpdatePackages" style="width: 100%; height: 100%" flex="100%" size="4">
<html:option/>
</html:select>
<spring flex="15%"/>
<box align="horizontal" style="width: 100%">
<spring flex="100%"/>
<titledbutton class="dialog push" id="pref:0:bool:smartupdate" value="&uninstallButton.label;"/>
</box>
<spring style="height: 18px;"/>
</html:fieldset>
</window>

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

@ -0,0 +1,85 @@
<?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/
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):
-->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-wallet.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
align="vertical" title="&window.title;"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-wallet' ); else parent.queuedTag = 'pref-wallet';">
<html:script language="JavaScript">
function viewSignons()
{
window.openDialog("chrome://wallet/content/SignonViewer.xul","","chrome, resizable=no");
}
function viewWallet()
{
window.openDialog("chrome://wallet/content/WalletEditor.xul","","chrome, resizable=no");
}
</html:script>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
</box>
<html:fieldset>
<html:legend>
&walletHeader;
</html:legend>
<html:div>
&walletDetails;
</html:div>
<spring style="height: 10px;"/>
<box align="horizontal" style="width: 100%;" flex="100%">
<html:label for="walletServer" accesskey="c" tabindex="0">
&server.label;
</html:label>
<html:input name="Wallet Server:" type="text" id="walletServer"
pref="true" preftype="string" prefstring="wallet.Server" flex="100%"/>
</box>
<box align="horizontal" flex="100%" style="width: 100%">
<spring flex="100%"/>
<titledbutton value="&viewWallet.label;" class="dialog push" onclick="viewWallet();"/>
</box>
</html:fieldset>
<html:fieldset>
<html:legend>
&signonHeader;
</html:legend>
<html:div>
&signonDetails;
</html:div>
<box align="horizontal" flex="100%" style="width: 100%">
<spring flex="100%"/>
<titledbutton value="&viewSignons.label;" class="dialog push" onclick="viewSignons();"/>
</box>
<spring style="height: 14px;"/>
</html:fieldset>
</window>

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

@ -0,0 +1,316 @@
/* -*- Mode: Java; tab-width: 4; c-basic-offset: 4; -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*
* Contributor(s):
* Ben "Count XULula" Goodger <rgoodger@ihug.co.nz>
*/
/** class PrefWindow ( string frame_id );
* - purpose: object representing the state of the prefs window
* - in: string representing the panel content frame
* - out: nothing;
**/
function PrefWindow( frame_id )
{
if ( !frame_id )
throw "Error: frame_id not supplied!";
// data members
this.contentFrame = frame_id
// chrome folder structure
this.folder = new ChromeFolder( "chrome://pref/" );
// instantiate the WidgetStateManager
this.wsm = new WidgetStateManager( frame_id, this.folder.content, ".xul" );
this.pref = null;
// member functions
this.onload = PREF_onload;
this.onok = PREF_onok;
this.oncancel = PREF_oncancel;
this.SwitchPage = PREF_SwitchPage;
this.onpageload = PREF_onpageload;
this.DoSavePrefs = PREF_DoSavePrefs;
this.ParsePref = PREF_ParsePref;
// set up window
this.onload();
}
/** void onload();
* - purpose: startup routine for prefs dialog.
* - in: nothing;
* - out: nothing;
**/
function PREF_onload()
{
// set ok/cancel handlers
doSetOKCancel( this.onok, null );
// create pref object
try {
this.pref = Components.classes["component://netscape/preferences"].createInstance();
if(this.pref)
this.pref = this.pref.QueryInterface( Components.interfaces.nsIPref );
}
catch(e) {
dump("*** Failed to create prefs object\n");
return;
}
// this.wsm.PageData.splice(0); // brutally empty the PageData Array
if( window.queuedTag )
this.onpageload( window.queuedTag );
}
/** void onok();
* - purpose: save all pref panel data and quit pref dialog
* - in: nothing;
* - out: nothing;
**/
function PREF_onok()
{
var url = document.getElementById( window.handle.contentFrame ).getAttribute("src");
var tag = window.handle.wsm.GetTagFromURL( url, window.handle.folder.content, ".xul" );
var extras = ["pref", "preftype", "prefstring", "prefindex"];
window.handle.wsm.SavePageData( tag, extras, false, false ); // save data from the current page.
window.handle.DoSavePrefs();
window.close();
}
function PREF_oncancel()
{
window.close();
}
function PREF_DoSavePrefs()
{
for( var i in window.handle.wsm.PageData ) {
for ( var k in window.handle.wsm.PageData[i] ) {
dump("*** FOO id: " + k + "; value: " + window.handle.wsm.PageData[i][k].value + "\n");
window.handle.ParsePref( k, window.handle.wsm.PageData[i][k] );
}
}
}
function PREF_ParsePref( elementID, elementObject )
{
var whp = window.handle.pref; // shortcut
// since we no longer use the convoluted id strings, we now use the id passed
// in as an argument to this function to grab the appropriate element in the
//dump("*** elementObject.prefString: " + elementObject.prefstring + "; value: " + elementObject.value + "; id: " + elementID + "\n" );
if( elementObject.pref ) {
switch( elementObject.preftype ) {
case "bool":
whp.SetBoolPref( elementObject.prefstring, elementObject.value ); // bool pref
break;
case "int":
if( elementObject.value ) { // only want checked radio items!
if( elementObject.nodeName.toLowerCase() == "select" ) {
// may need to add extra elements here if they do not have easily
// gleanable idxes as radio buttons do.
elementObject.prefindex = elementObject.value;
}
whp.SetIntPref( elementObject.prefstring, elementObject.prefindex ); // integer pref
}
break;
case "string":
dump("*** SetCharPref: " + elementObject.prefstring + "; value: " + elementObject.value + "\n");
//XXX there's some kind of bug here with this such that this throws an UNEXPECTED
//XXX exception. look into this later.
whp.SetCharPref( elementObject.prefstring, elementObject.value ); // string pref
break;
case "color":
var r, g, b, color = elementObject.value;
if( color.indexOf("#") != -1 ) {
color = color.substring( color.indexOf("#"), color.length );
r = "0x" + color.substring( 0, 2 );
g = "0x" + color.substring( 2, 4 );
b = "0x" + color.substring( 4, 6 );
var value = r + "," + g + "," + b;
dump("*** COLOR VALUE: " + value + "\n");
}
whp.SetColorPref( elementObject.prefstring, r, g, b );
break;
default:
// TODO: insert implementation for other pref types;
break;
}
}
}
/** void SwitchPage ( DOMElement node );
* - purpose: switches the page in the content frame to that specified in the
* - tag attribute of the selected treecell
* - in: DOMElement representing the clicked node in the panel tree
* - out: nothing;
**/
function PREF_SwitchPage( node )
{
// XXX 12/04/99
if( node.nodeName == "treecell" && node.getAttribute("url") != "__header" ) {
var url = document.getElementById( this.contentFrame ).getAttribute("src");
var oldTag = this.wsm.GetTagFromURL( url, "/", ".xul", false );
// extra attributes to be saved
var extras = ["pref", "preftype", "prefstring", "prefindex"];
dump("*** going to save page data for tag: " + oldTag + "\n");
this.wsm.SavePageData( oldTag, extras, false, false ); // save data from the current page.
var newURL = node.getAttribute("url");
dump("*** newURL: " + newURL + "\n");
var newTag = this.wsm.GetTagFromURL( newURL, "/", ".xul", false );
// if the page clicked is the same one, don't bother reloading it.
if( newTag != oldTag )
document.getElementById( this.contentFrame ).setAttribute( "src", newURL );
else
return;
}
}
/** void onpageload ( string tag );
* - purpose: sets page data on the page which has just loaded
* - in: string tag representing filename minus extension
* - out: nothing;
**/
function PREF_onpageload( tag )
{
dump("*** PREF_onpageload('" + tag + "');\n");
if( !this.wsm.PageData[tag] ) {
// there is no entry in the data hash for this page, so we need to initialise
// the form values from existing prefs. The best way to do this is to pack
// the PageData table for this element with values from prefs, rather than
// setting attributes here because we can then leverage the setting ability
// of wsm.SetPageData
// step one: get all the elements with pref ids. (this may change to get
// elements with some other pref attributes - likely)
// yes I know this is an evil function to use, sue me.
prefElements = window.frames[this.contentFrame].document.getElementsByAttribute( "pref", "true" );
this.wsm.PageData[tag] = []; // need to declare these as arrays
for( var i = 0; i < prefElements.length; i++ )
{
var prefstring = prefElements[i].getAttribute("prefstring");
var prefid = prefElements[i].getAttribute("id");
var preftype = prefElements[i].getAttribute("preftype");
var prefdefval = prefElements[i].getAttribute("prefdefval");
switch( preftype ) {
case "bool":
try {
var prefvalue = this.pref.GetBoolPref( prefstring );
}
catch(e) {
try {
var prefvalue = this.pref.GetDefaultBoolPref( prefstring );
}
catch(e) {
dump("*** NO DEFAULT PREF for " + prefstring + ", AND ONE *IS* NEEDED! GO MAKE ONE, FOOL!\n");
continue;
return false;
}
}
break;
case "int":
try {
var prefvalue = this.pref.GetIntPref( prefstring );
}
catch(e) {
try {
var prefvalue = this.pref.GetDefaultIntPref( prefstring );
}
catch(e) {
dump("*** NO DEFAULT PREF for " + prefstring + ", AND ONE *IS* NEEDED! GO MAKE ONE, FOOL!\n");
continue;
return false;
}
}
break;
case "string":
try {
var prefvalue = this.pref.CopyCharPref( prefstring );
}
catch(e) {
try {
var prefvalue = this.pref.CopyDefaultCharPref( prefstring );
}
catch(e) {
dump("*** NO DEFAULT PREF for " + prefstring + ", AND ONE *IS* NEEDED! GO MAKE ONE, FOOL!\n");
continue;
return false;
}
}
break;
case "color":
var r = g = b = [];
try {
this.pref.GetColorPref( prefstring, r, g, b );
}
catch(e) {
try {
this.pref.GetDefaultColorPref( prefstring, r, g, b );
}
catch(e) {
dump("*** NO DEFAULT PREF for " + prefstring + ", AND ONE *IS* NEEDED! GO MAKE ONE, FOOL!\n");
continue;
return false;
}
}
dump("*** MEEP : " + r.value + "," + g.value + "," + b.value + "\n");
var prefvalue = "#" + r.value.toString(16) + g.value.toString(16) + b.value.toString(16);
//for( var foo in r )
// dump("r[" + foo + "] = " + r[foo] + "\n");
dump("*** color pref value: " + prefvalue + "\n");
break;
// function hex(decimal) { return "" + hexdigits[Math.floor((decimal%256)/16)] + hexdigits[decimal % 16]; }
default:
// TODO: define cases for other pref types.
break;
}
dump("*** elementvalue: " + prefvalue + "\n");
this.wsm.PageData[tag][prefid] = []; // otherwise jseng complains
var root = this.wsm.PageData[tag][prefid];
root["id"] = prefid;
if( prefElements[i].type.toLowerCase() == "radio") {
// radio elements are a special case - we have a value in the prefs for
// only one of however many there are, and in thsi case "value" represents
// the index of the one that we want to check, not an actual settable value.
// here is where the "prefindex" attribute on such elements comes into
// play. We compare this with the value read from nsIPref, and if it matches,
// that is the radioelement that needs to be checked.
var prefindex = prefElements[i].getAttribute("prefindex");
if( prefindex == prefvalue )
prefvalue = true; // match! this element is checked!
else
prefvalue = false; // no match. This element.checked = false;
}
root["value"] = prefvalue;
}
}
this.wsm.SetPageData( tag, false ); // do not set extra elements, accept hard coded defaults
}
/** class ChromeFolder ( string root );
* - purpose: a general object to provide easy access to chrome folders
* - in: string representing root, e.g. "chrome://bookmarks/"
* - out: nothing;
**/
function ChromeFolder( root )
{
if( root.charAt(root.length-1) != "/" )
root += "/";
this.content = root + "content/";
this.skin = root + "skin/";
this.locale = root + "locale/";
}

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

@ -1,56 +1,71 @@
<?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):
-->
<!-- -*- Mode: HTML -*- -->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
<!-- 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): ______________________________________. -->
<!DOCTYPE window SYSTEM "chrome://pref/locale/PrefsWindow.dtd" >
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<?xul-overlay href="chrome://pref/content/preftree.xul"?>
<?xul-overlay href="chrome://global/content/platformDialogOverlay.xul"?>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref.dtd" >
<window id="prefWindow"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="&prefWindow.title;"
align="vertical"
class="dialog"
onload="StartUp('Top'); OnLoadPref();"
title="&window.title;"
height="436"
width="600"
align="vertical">
onload="window.handle = new PrefWindow( 'panelFrame' );"
width="550" height="410">
<html:script language="javascript" src="PrefsWindow.js"/>
<html:script language="javascript" src="chrome://global/content/strres.js" />
<html:script language="javascript" src="chrome://global/content/dialogOverlay.js" />
<html:script language="javascript" src="chrome://global/content/widgetStateManager.js" />
<html:script language="javascript" src="chrome://pref/content/pref.js" />
<keyset id="keyset"/>
<keyset id="keyset"/>
<html:div>
&categoryHeader;
</html:div>
<spring style="height: 7px"/>
<box align="horizontal" flex="100%" style="width: 100%">
<!-- we may like to load this into a tabpanel set as per mpt's post -->
<spring style="width: 7px;"/>
<!-- tree sidebar -->
<html:div flex="40%">
<tree id="prefsTree" class="inset"/>
</html:div>
<spring style="width: 10px;"/>
<!-- content frame -->
<html:iframe id="panelFrame" name="panelFrame" src="chrome://pref/content/pref-appearance.xul" flex="60%"/>
<spring style="width: 7px;"/>
</box>
<html:div class="separator" align="horizontal" style="margin-bottom: -2px;"/>
<box align="horizontal">
<spring flex="100%"/>
<box id="okCancelButtons" style="margin-bottom: -2px;"/>
</box>
<spring style="height: 7px"/>
<box align="horizontal" flex="1">
<html:iframe name="preftree" id="preftree" src="chrome://pref/content/preftree.xul" style="width: 150px; height: 600px; overflow: auto"/>
<splitter/>
<html:iframe name="pref-appearance" id="pref-appearance"
src="chrome://pref/content/pref-appearance.xul" flex="1" style="width: 378px; height: 600px; overflow: auto"/>
</box>
<box id="okCancelButtons"/>
<keyset>
<key id="fooKey" key="p" xulkey="true" shift="true" onkeydown="foo()"/>
</keyset>
</window>

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

@ -22,78 +22,41 @@
Contributor(s):
-->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/preftree.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="ChangePanelURL('pref-appearance.xul');"
style="overflow: auto;">
<overlay id="prefTreeOverlay"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<html:script>
var prefwindow = null;
function ClickChangePanel(node)
{
dump("node = " + node + "\n");
url = node.getAttribute('name');
dump("url = " + url + "\n");
ChangePanelURL(url);
}
function ChangePanelURL(url)
{
dump("\Loading " + url + "...\n");
dump("Looking up prefwindow object...\n");
if (prefwindow == null)
{
dump("Creating prefwindow object...");
prefwindow = Components.classes['component://netscape/prefwindow'].getService(Components.interfaces.nsIPrefWindow);
dump("...created\n");
}
else
{
dump("prefwindow has already been created! Hurrah!\n");
}
if (prefwindow)
{
prefwindow.changePanel(url);
}
return true;
}
</html:script>
<html:div flex="100%">
<tree onclick="return ClickChangePanel(event.target);">
<tree id="prefsTree"
onclick="window.handle.SwitchPage( event.target )"
flex="100%" style="height: 100%">
<treehead name="tree">
<treecol style="width:100%" />
</treehead>
<treechildren id="panelChildren">
<treerow>
<treecell url="__header" value="&categoryHeader;"/>
</treerow>
</treehead>
<treechildren>
<treeitem open="true" container="true">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-appearance.xul" value="&appear.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-appearance.xul" value="&appear.label;"/>
</treerow>
<treechildren>
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-fonts.xul" value="&fonts.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-fonts.xul" value="&fonts.label;"/>
</treerow>
</treeitem>
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-colors.xul" value="&colors.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-colors.xul" value="&colors.label;"/>
</treerow>
</treeitem>
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-themes.xul" value="&themes.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-themes.xul" value="&themes.label;"/>
</treerow>
</treeitem>
@ -102,30 +65,30 @@
<treeitem container="true" open="true">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-navigator.xul" value="&navigator.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-navigator.xul" value="&navigator.label;"/>
</treerow>
<treechildren>
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-languages.xul" value="&languages.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-languages.xul" value="&languages.label;"/>
</treerow>
</treeitem>
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-applications.xul" value="&applications.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-applications.xul" value="&applications.label;"/>
</treerow>
</treeitem>
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-search.xul" value="&search.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-smart_browsing.xul" value="&smartBrowse.label;"/>
</treerow>
</treeitem>
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-smart_browsing.xul" value="&smartBrowse.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-search.xul" value="&search.label;"/>
</treerow>
</treeitem>
</treechildren>
@ -133,43 +96,43 @@
<treeitem container="true" open="true">
<treerow>
<treecell indent="true" name="chrome://messenger/content/pref-mailnews.xul" value="&mail.label;"/>
<treecell indent="true" url="chrome://messenger/content/pref-mailnews.xul" value="&mail.label;"/>
</treerow>
<treechildren>
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://addressbook/content/pref-addressing.xul" value="&address.label;"/>
<treecell indent="true" url="chrome://addressbook/content/pref-addressing.xul" value="&address.label;"/>
</treerow>
</treeitem>
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://messengercompose/content/pref-messages.xul" value="&mess.label;"/>
<treecell indent="true" url="chrome://messengercompose/content/pref-messages.xul" value="&mess.label;"/>
</treerow>
</treeitem>
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://messenger/content/pref-winsetting.xul" value="&windowSet.label;"/>
<treecell indent="true" url="chrome://messenger/content/pref-winsetting.xul" value="&windowSet.label;"/>
</treerow>
</treeitem>
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://messengercompose/content/pref-formatting.xul" value="&format.label;"/>
<treecell indent="true" url="chrome://messengercompose/content/pref-formatting.xul" value="&format.label;"/>
</treerow>
</treeitem>
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://messenger/content/pref-receipts.xul" value="&return.label;"/>
<treecell indent="true" url="chrome://messenger/content/pref-receipts.xul" value="&return.label;"/>
</treerow>
</treeitem>
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://messenger/content/pref-diskspace.xul" value="&disk.label;"/>
<treecell indent="true" url="chrome://messenger/content/pref-diskspace.xul" value="&disk.label;"/>
</treerow>
</treeitem>
</treechildren>
@ -177,13 +140,13 @@
<treeitem container="true" open="true">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-composer.xul" value="&compose.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-composer.xul" value="&compose.label;"/>
</treerow>
<treechildren>
<treerow>
<treeitem open="true">
<treecell indent="true" name="chrome://pref/content/pref-publish.xul" value="&publish.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-publish.xul" value="&publish.label;"/>
</treeitem>
</treerow>
</treechildren>
@ -191,45 +154,57 @@
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-smartupdate.xul" value="&smart.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-smartupdate.xul" value="&smart.label;"/>
</treerow>
</treeitem>
<treeitem container="true" open="true">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-offline.xul" value="&offline.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-offline.xul" value="&offline.label;"/>
</treerow>
<treechildren>
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-download.xul" value="&down.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-download.xul" value="&down.label;"/>
</treerow>
</treeitem>
</treechildren>
</treeitem>
<treeitem container="true" open="true">
<treeitem container="true" open="true" id="advancedItem">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-advanced.xul" value="&advance.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-advanced.xul" value="&advance.label;"/>
</treerow>
<treechildren>
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-cache.xul" value="&cache.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-cookies.xul" value="&cookies.label;"/>
</treerow>
</treeitem>
<treeitem open="true">
<treerow>
<treecell indent="true" url="chrome://pref/content/pref-wallet.xul" value="&wallet.label;"/>
</treerow>
</treeitem>
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-proxies.xul" value="&proxies.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-mousewheel.xul" value="&mousewheel.label;"/>
</treerow>
</treeitem>
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-mousewheel.xul" value="&mousewheel.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-cache.xul" value="&cache.label;"/>
</treerow>
</treeitem>
<treeitem open="true">
<treerow>
<treecell indent="true" url="chrome://pref/content/pref-proxies.xul" value="&proxies.label;"/>
</treerow>
</treeitem>
@ -239,12 +214,11 @@
<treeitem open="true">
<treerow>
<treecell indent="true" name="chrome://pref/content/pref-debug.xul" value="&debug.label;"/>
<treecell indent="true" url="chrome://pref/content/pref-debug.xul" value="&debug.label;"/>
</treerow>
</treeitem>
</tree>
</html:div>
</window>
</overlay>

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

@ -0,0 +1,28 @@
function getFileOrFolderURL( aTitle, aFolder )
{
try {
var fileSpecWithUI = Components.classes["component://netscape/filespecwithui"].createInstance();
if( fileSpecWithUI )
fileSpecWithUI = fileSpecWithUI.QueryInterface( Components.interfaces.nsIFileSpecWithUI );
/*
var fileSpec = Components.classes["component://netscape/filespec"].createInstance();
if( fileSpec )
fileSpec = fileSpec.QueryInterface( Components.interfaces.nsIFileSpec );*/
}
catch(e) {
dump("*** failed to create fileSpecWithUI or fileSpec objects\n");
return false;
}
try {
if( aFolder )
fileSpecWithUI.path = fileSpecWithUI.chooseDirectory( aTitle );
else
fileSpecWithUI.path = fileSpecWithUI.chooseFile( aTitle );
}
catch(e) {
return -1;
}
return fileSpecWithUI.nativePath;
}