home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
- <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
- <?xml-stylesheet href="chrome://mozapps/skin/pref/pref.css" type="text/css"?>
-
- <!DOCTYPE window SYSTEM "chrome://mozapps/locale/downloads/pref-downloads.dtd" >
-
- <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- onload="parent.initPanel('chrome://mozapps/content/downloads/pref-downloads.xul');"
- headertitle="&lHeader;" onunload="uninit();">
-
- <stringbundle id="strings" src="chrome://mozapps/locale/downloads/unknownContentType.properties"/>
-
- <script type="application/x-javascript" src="chrome://mozapps/content/downloads/helperApps.js"/>
- <script type="application/x-javascript" src="chrome://mozapps/content/downloads/pref-downloads.js"/>
- <script type="application/x-javascript" src="chrome://global/content/globalOverlay.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>
-
- <groupbox align="start">
- <caption label="&downloadManagerWindow.label;"/>
-
- <checkbox id="showWhenStarting" label="&showWhenStarting.label;"
- prefstring="browser.download.manager.showWhenStarting"
- oncommand="toggleDMPrefUI(event.target);"/>
- <checkbox id="closeWhenDone" label="&closeWhenDone.label;" class="indent"
- prefstring="browser.download.manager.closeWhenDone"/>
- </groupbox>
-
- <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">
- <vbox flex="1" id="fileHandlersListContainer">
- <tree id="fileHandlersList" flex="1" hidecolumnpicker="true"
- datasources="rdf:null"
- onselect="fileHandlerListSelectionChanged();"
- ondblclick="if (isValidLeftClick(event, 'treechildren')) 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>
- </vbox>
-
- <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="center" flex="1"/>
- <menuitem value="9" label="&choose.label;"/>
- </menupopup>
- </menulist>
-
- </page>
-
-