http://bugzilla.mozilla.org/show_bug.cgi?id=214259 Firebird Download System Upgrades. components/prefwindow/content/pref-downloads.js components/prefwindow/content/pref-downloads.xul components/prefwindow/locale/pref-downloads.dtd - New Download Options implementation git-svn-id: svn://10.0.0.236/trunk@145565 18797224-902f-48f8-a5cc-f745e15eee43
159 lines
6.6 KiB
XML
159 lines
6.6 KiB
XML
<?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-2000 Netscape Communications Corporation. All
|
|
# Rights Reserved.
|
|
#
|
|
# Contributor(s):
|
|
# Ben Goodger <ben@bengoodger.com>
|
|
|
|
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://browser/skin/pref/pref.css" type="text/css"?>
|
|
|
|
<!DOCTYPE window SYSTEM "chrome://browser/locale/pref/pref-downloads.dtd" >
|
|
|
|
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
onload="parent.initPanel('chrome://browser/content/pref/pref-downloads.xul');"
|
|
headertitle="&lHeader;" onunload="uninit();">
|
|
|
|
<script type="application/x-javascript" src="chrome://browser/content/downloads/helperApps.js"/>
|
|
<script type="application/x-javascript" src="chrome://browser/content/pref/pref-downloads.js"/>
|
|
|
|
<groupbox>
|
|
<caption label="&askOnSave.label;"/>
|
|
|
|
<radiogroup id="askOnSave" onselect="doEnabling(this.selectedItem);" flex="1"
|
|
preftype="bool" prefstring="browser.download.useDownloadDir">
|
|
<radio id="alwaysAsk" label="&alwaysAsk.label;" value="false"/>
|
|
<hbox flex="1">
|
|
<radio id="neverAsk" label="&neverAsk.label;" value="true"/>
|
|
<button id="showFolder" label="&showFolder.label;" oncommand="showFolder();"/>
|
|
</hbox>
|
|
</radiogroup>
|
|
</groupbox>
|
|
|
|
#if 0
|
|
<groupbox>
|
|
<caption label="&downloadManagerWindow.label;"/>
|
|
|
|
<checkbox id="showWhenStarting" label="&showWhenStarting.label;"
|
|
prefstring="browser.download.showWhenStarting"/>
|
|
<checkbox id="closeWhenDone" label="&closeWhenDone.label;" class="indent"
|
|
prefstring="browser.download.closeWhenDone"/>
|
|
</groupbox>
|
|
#endif
|
|
|
|
<groupbox flex="1">
|
|
<caption label="&fileTypes.label;"/>
|
|
|
|
<description>&fileTypesDescription.label;</description>
|
|
<separator class="thin"/>
|
|
|
|
<!-- XXX it's really lame that I'm using a content backed tree here rather
|
|
than one built with treebuilder but for some reason treebuilder is
|
|
throwing "can't do open ended queries like that!" assertions for
|
|
no discernible reason -->
|
|
<vbox class="indent" flex="1">
|
|
<tree id="fileHandlersList" flex="1" hidecolumnpicker="true"
|
|
datasources="rdf:null"
|
|
onselect="fileHandlerListSelectionChanged();"
|
|
ondblclick="editFileHandler();">
|
|
|
|
<template>
|
|
<rule>
|
|
<conditions>
|
|
<content uri="?uri"/>
|
|
<triple subject="?uri"
|
|
predicate="http://home.netscape.com/NC-rdf#MIME-types"
|
|
object="?MIME-types"/>
|
|
<member container="?MIME-types" child="?type"/>
|
|
<triple subject="?type"
|
|
predicate="http://home.netscape.com/NC-rdf#FileType"
|
|
object="?file-type"/>
|
|
<triple subject="?type"
|
|
predicate="http://home.netscape.com/NC-rdf#FileHandler"
|
|
object="?file-handler"/>
|
|
<triple subject="?type"
|
|
predicate="http://home.netscape.com/NC-rdf#FileIcon"
|
|
object="?file-icon"/>
|
|
<triple subject="?type"
|
|
predicate="http://home.netscape.com/NC-rdf#FileHandleAuto"
|
|
object="true"/>
|
|
</conditions>
|
|
<bindings>
|
|
<binding subject="?type"
|
|
predicate="http://home.netscape.com/NC-rdf#FileExtension"
|
|
object="?file-extension"/>
|
|
</bindings>
|
|
<action>
|
|
<treechildren class="extensionChildren">
|
|
<treeitem uri="?type">
|
|
<treerow>
|
|
<treecell label="?file-extension" src="?file-icon"/>
|
|
<treecell label="?file-type"/>
|
|
<treecell label="?file-handler"/>
|
|
</treerow>
|
|
</treeitem>
|
|
</treechildren>
|
|
</action>
|
|
</rule>
|
|
</template>
|
|
|
|
<treecols>
|
|
<treecol id="fileExtension"
|
|
class="sortDirectionIndicator" persist="width"
|
|
sort="rdf:http://home.netscape.com/NC-rdf#FileExtension"
|
|
sortActive="true" sortDirection="none" hideheader="true"/>
|
|
<treecol id="fileType" flex="1"
|
|
class="sortDirectionIndicator" persist="width"
|
|
sort="rdf:http://home.netscape.com/NC-rdf#FileType"
|
|
sortActive="false" sortDirection="none" hideheader="true"/>
|
|
<splitter class="tree-splitter" />
|
|
<treecol id="fileHandler" flex="1"
|
|
class="sortDirectionIndicator" persist="width"
|
|
sort="rdf:http://home.netscape.com/NC-rdf#FileHandler"
|
|
sortActive="false" sortDirection="none" hideheader="true"/>
|
|
</treecols> <!-- label="&fileHandlerColName.label;" label="&fileTypeColName.label;" -->
|
|
</tree>
|
|
|
|
<separator class="thin"/>
|
|
<hbox>
|
|
<button label="&editFileHandler.label;" accesskey="&editFileHandler.accesskey;"
|
|
id="editFileHandler" oncommand="editFileHandler();"/>
|
|
<button label="&removeFileHandler.label;" accesskey="&removeFileHandler.accesskey;"
|
|
id="removeFileHandler" oncommand="removeFileHandler();"/>
|
|
<spring flex="1"/>
|
|
<button label="&plugins.label;" accesskey="&plugins.accesskey;"
|
|
id="plugins" oncommand="showPlugins();"/>
|
|
</hbox>
|
|
</vbox>
|
|
|
|
</groupbox>
|
|
|
|
<menulist id="downloadFolderList" flex="1" hidden="true"
|
|
preftype="int" prefstring="browser.download.folderList" prefdefval="0"
|
|
oncommand="folderListCommand();">
|
|
<menupopup>
|
|
<menuitem value="0" label="&desktop.label;"/>
|
|
<menuitem value="1" label="&downloads.label;"/>
|
|
<menuitem value="2" label="" hidden="true" id="downloadFolder" crop="middle"/>
|
|
<menuitem value="9" label="&choose.label;"/>
|
|
</menupopup>
|
|
</menulist>
|
|
|
|
</page>
|
|
|