diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-02 03:35:06 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-02 03:35:06 -0500 |
commit | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (patch) | |
tree | 6efefe6a09feb09d965932b24e10436b9ac8189c /application/palemoon/components/preferences/main.xul | |
parent | e72ef92b5bdc43cd2584198e2e54e951b70299e8 (diff) | |
download | UXP-49ee0794b5d912db1f95dce6eb52d781dc210db5.tar UXP-49ee0794b5d912db1f95dce6eb52d781dc210db5.tar.gz UXP-49ee0794b5d912db1f95dce6eb52d781dc210db5.tar.lz UXP-49ee0794b5d912db1f95dce6eb52d781dc210db5.tar.xz UXP-49ee0794b5d912db1f95dce6eb52d781dc210db5.zip |
Add Pale Moon
Diffstat (limited to 'application/palemoon/components/preferences/main.xul')
-rw-r--r-- | application/palemoon/components/preferences/main.xul | 187 |
1 files changed, 187 insertions, 0 deletions
diff --git a/application/palemoon/components/preferences/main.xul b/application/palemoon/components/preferences/main.xul new file mode 100644 index 000000000..7634056eb --- /dev/null +++ b/application/palemoon/components/preferences/main.xul @@ -0,0 +1,187 @@ +<?xml version="1.0"?> + +# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +<!DOCTYPE overlay [ + <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd"> + <!ENTITY % mainDTD SYSTEM "chrome://browser/locale/preferences/main.dtd"> + <!ENTITY % aboutHomeDTD SYSTEM "chrome://browser/locale/aboutHome.dtd"> + %brandDTD; + %mainDTD; + %aboutHomeDTD; +]> + +<overlay id="MainPaneOverlay" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> + + <prefpane id="paneMain" + onpaneload="gMainPane.init();" + helpTopic="prefs-main"> + + <script type="application/javascript" src="chrome://browser/content/preferences/main.js"/> + + <preferences id="mainPreferences"> + <!-- XXX Button preferences --> + + <!-- Startup --> + <preference id="browser.startup.page" + name="browser.startup.page" + type="int"/> + <preference id="browser.startup.homepage" + name="browser.startup.homepage" + type="wstring"/> + + <preference id="pref.browser.homepage.disable_button.current_page" + name="pref.browser.homepage.disable_button.current_page" + type="bool"/> + <preference id="pref.browser.homepage.disable_button.bookmark_page" + name="pref.browser.homepage.disable_button.bookmark_page" + type="bool"/> + <preference id="pref.browser.homepage.disable_button.restore_default" + name="pref.browser.homepage.disable_button.restore_default" + type="bool"/> + + <preference id="browser.privatebrowsing.autostart" + name="browser.privatebrowsing.autostart" + type="bool" + onchange="gMainPane.updateBrowserStartupLastSession();"/> + + <!-- Downloads --> + <preference id="browser.download.manager.showWhenStarting" + name="browser.download.manager.showWhenStarting" + type="bool" + onchange="gMainPane.showDownloadsWhenStartingPrefChanged();"/> + <preference id="browser.download.manager.closeWhenDone" + name="browser.download.manager.closeWhenDone" + type="bool"/> + <preference id="browser.download.useDownloadDir" + name="browser.download.useDownloadDir" + type="bool"/> + <preference id="browser.download.dir" + name="browser.download.dir" + type="file" + onchange="gMainPane.displayDownloadDirPref();"/> + <preference id="browser.download.folderList" name="browser.download.folderList" type="int"/> + <preference id="browser.download.useToolkitUI" name="browser.download.useToolkitUI" type="bool" /> +#ifdef XP_WIN + <preference id="browser.download.saveZoneInformation" name="browser.download.saveZoneInformation" type="int" /> +#endif + + </preferences> + + <stringbundle id="bundlePreferences" src="chrome://browser/locale/preferences/preferences.properties"/> + + <!-- Startup --> + <groupbox id="startupGroup"> + <caption label="&startup.label;"/> + + <hbox align="center"> + <label value="&startupPage.label;" accesskey="&startupPage.accesskey;" + control="browserStartupPage"/> + <menulist id="browserStartupPage" preference="browser.startup.page"> + <menupopup> + <menuitem label="&startupHomePage.label;" value="1" id="browserStartupHomePage"/> + <menuitem label="&startupBlankPage.label;" value="0" id="browserStartupBlank"/> + <menuitem label="&startupLastSession.label;" value="3" id="browserStartupLastSession"/> + </menupopup> + </menulist> + </hbox> + <separator class="thin"/> + <hbox align="center"> + <label value="&homepage.label;" accesskey="&homepage.accesskey;" control="browserHomePage"/> + <textbox id="browserHomePage" class="padded uri-element" flex="1" + type="autocomplete" autocompletesearch="history" + onsyncfrompreference="return gMainPane.syncFromHomePref();" + onsynctopreference="return gMainPane.syncToHomePref(this.value);" + placeholder="&abouthome.pageTitle;" + preference="browser.startup.homepage"/> + </hbox> + <hbox align="center" pack="end"> + <button label="" accesskey="&useCurrentPage.accesskey;" + label1="&useCurrentPage.label;" + label2="&useMultiple.label;" + oncommand="gMainPane.setHomePageToCurrent();" + id="useCurrent" + preference="pref.browser.homepage.disable_button.current_page"/> + <button label="&chooseBookmark.label;" accesskey="&chooseBookmark.accesskey;" + oncommand="gMainPane.setHomePageToBookmark();" + id="useBookmark" + preference="pref.browser.homepage.disable_button.bookmark_page"/> + <button label="&restoreDefault.label;" accesskey="&restoreDefault.accesskey;" + oncommand="gMainPane.restoreDefaultHomePage();" + id="restoreDefaultHomePage" + preference="pref.browser.homepage.disable_button.restore_default"/> + </hbox> + </groupbox> + + <!-- Downloads --> + <groupbox id="downloadsGroup"> + <caption label="&downloads.label;"/> + + <checkbox id="showWhenDownloading" label="&showWhenDownloading.label;" + accesskey="&showWhenDownloading.accesskey;" + preference="browser.download.manager.showWhenStarting" + onsyncfrompreference="return gMainPane.readShowDownloadsWhenStarting();"/> + <checkbox id="closeWhenDone" label="&closeWhenDone.label;" + accesskey="&closeWhenDone.accesskey;" class="indent" + preference="browser.download.manager.closeWhenDone"/> + + <separator class="thin"/> + + <radiogroup id="saveWhere" + preference="browser.download.useDownloadDir" + onsyncfrompreference="return gMainPane.readUseDownloadDir();"> + <hbox id="saveToRow"> + <radio id="saveTo" value="true" + label="&saveTo.label;" + accesskey="&saveTo.accesskey;" + aria-labelledby="saveTo downloadFolder"/> + <filefield id="downloadFolder" flex="1" + preference="browser.download.folderList" + preference-editable="true" + aria-labelledby="saveTo" + onsyncfrompreference="return gMainPane.displayDownloadDirPref();" + onsynctopreference="return gMainPane.getFolderListPref()"/> + <button id="chooseFolder" oncommand="gMainPane.chooseFolder();" +#ifdef XP_MACOSX + accesskey="&chooseFolderMac.accesskey;" + label="&chooseFolderMac.label;" +#else + accesskey="&chooseFolderWin.accesskey;" + label="&chooseFolderWin.label;" +#endif + preference="browser.download.folderList" + onsynctopreference="return gMainPane.getFolderListPref();"/> + </hbox> + <radio id="alwaysAsk" value="false" + label="&alwaysAsk.label;" + accesskey="&alwaysAsk.accesskey;"/> + </radiogroup> +#if 0 +<!-- Disabled for now -- ToolkitUI DM is nonfunctional. --> + <checkbox id="classicDownloadWindow" + preference="browser.download.useToolkitUI" + label="&toolkit.classic.download.window.label;" /> +#endif +#ifdef XP_WIN + <hbox align="center"> + <label id="zoneInfoLabel" control="zoneInfo-menu">&zoneInfo.label;</label> + <menulist id="zoneInfo-menu" + preference="browser.download.saveZoneInformation" + sizetopopup="always"> + <menupopup> + <menuitem label="&zoneInfo.never;" value="0" /> + <menuitem label="&zoneInfo.always;" value="1" /> + <menuitem label="&zoneInfo.system;" value="2" /> + </menupopup> + </menulist> + </hbox> +#endif + </groupbox> + + </prefpane> + +</overlay> |