1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
|
<?xml version="1.0"?>
<!-- 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 % applicationsDTD SYSTEM "chrome://messenger/locale/preferences/applications.dtd">
%brandDTD;
%applicationsDTD;
]>
<overlay id="ApplicationsPaneOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<prefpane id="paneApplications"
onpaneload="gApplicationsTabController.init();"
flex="1">
<script type="application/javascript">
<![CDATA[
#ifdef MOZ_WIDGET_GTK
var ICON_URL_APP = "moz-icon://dummy.exe?size=16";
#else
var ICON_URL_APP = "chrome://messenger/skin/preferences/application.png";
#endif
]]>
</script>
<preferences id="applicationsPreferences">
<preference id="mail.preferences.applications.selectedTabIndex"
name="mail.preferences.applications.selectedTabIndex" type="int"/>
</preferences>
<preferences id="downloadDirPreferences">
<preference id="browser.download.useDownloadDir"
name="browser.download.useDownloadDir"
type="bool"/>
<preference id="browser.download.folderList"
name="browser.download.folderList"
type="int"/>
<preference id="browser.download.downloadDir"
name="browser.download.downloadDir"
type="file"/>
<preference id="browser.download.dir"
name="browser.download.dir"
type="file"
onchange="gDownloadDirSection.readDownloadDirPref();"/>
<preference id="pref.downloads.disable_button.edit_actions"
name="pref.downloads.disable_button.edit_actions"
type="bool"/>
</preferences>
<preferences id="cloudFilePreferences">
<preference id="mail.compose.big_attachments.notify"
name="mail.compose.big_attachments.notify"
type="bool"/>
<preference id="mail.compose.big_attachments.threshold_kb"
name="mail.compose.big_attachments.threshold_kb"
type="int"/>
</preferences>
<script type="application/javascript"
src="chrome://messenger/content/preferences/applications.js"/>
<commandset id="appPaneCommandSet">
<command id="cmd_delete"
oncommand="gApplicationsPane.onDelete();"/>
</commandset>
<commandset id="cloudFileCommandSet">
<commandset id="cloudFileCommandSetUpdate"
commandupdater="true"
events="focus"
oncommandupdate="CommandUpdate_CloudFile()"/>
<command id="cmd_addCloudfileAccount"
oncommand="goDoCommand('cmd_addCloudfileAccount');"/>
<command id="cmd_removeCloudfileAccount"
oncommand="goDoCommand('cmd_removeCloudfileAccount');"/>
<command id="cmd_reauthCloudfileAccount"
oncommand="goDoCommand('cmd_reauthCloudfileAccount');"/>
</commandset>
<keyset id="appPaneKeyset">
<key keycode="VK_BACK" modifiers="any" command="cmd_delete"/>
<key keycode="VK_DELETE" modifiers="any" command="cmd_delete"/>
</keyset>
<keyset>
<key key="&focusSearch1.key;" modifiers="accel"
oncommand="gApplicationsPane.focusFilterBox();"/>
<key key="&focusSearch2.key;" modifiers="accel"
oncommand="gApplicationsPane.focusFilterBox();"/>
</keyset>
<tabbox id="attachmentPrefs" flex="1" onselect="gApplicationsTabController.tabSelectionChanged();">
<tabs id="attachmentPrefsTabs">
<tab id="attachmentsInTab" label="&attachments.incoming.label;"/>
<tab id="attachmentsOutTab" label="&attachments.outgoing.label;"/>
</tabs>
<tabpanels id="attachmentPrefsPanels" flex="1">
<tabpanel orient="vertical">
<hbox>
<textbox id="filter" flex="1"
type="search"
placeholder="&filter.placeholder;"
aria-controls="handlersView"
oncommand="gApplicationsPane.rebuildView();"/>
</hbox>
<separator class="thin"/>
<richlistbox id="handlersView" orient="vertical" persist="lastSelectedType"
preference="pref.downloads.disable_button.edit_actions"
onselect="gApplicationsPane.onSelectionChanged();">
<listheader equalsize="always" style="border: 0; padding: 0; -moz-appearance: none;">
<treecol id="typeColumn" label="&typeColumn.label;" value="type"
accesskey="&typeColumn.accesskey;" persist="sortDirection"
flex="1" onclick="gApplicationsPane.sort(event);"
sortDirection="ascending" sort="typeDescription"/>
<treecol id="actionColumn" label="&actionColumn2.label;" value="action"
accesskey="&actionColumn2.accesskey;" persist="sortDirection"
flex="1" onclick="gApplicationsPane.sort(event);"/>
</listheader>
</richlistbox>
<separator class="thin"/>
<script type="application/javascript"
src="chrome://messenger/content/preferences/downloads.js"/>
<vbox align="start">
<radiogroup id="saveWhere" flex="1"
preference="browser.download.useDownloadDir"
onsyncfrompreference="return gDownloadDirSection.onReadUseDownloadDir();">
<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 gDownloadDirSection.readDownloadDirPref();"
onsynctopreference="return gDownloadDirSection.writeFolderList();"/>
<button id="chooseFolder" oncommand="gDownloadDirSection.chooseFolder();"
#ifdef XP_MACOSX
accesskey="&chooseFolderMac.accesskey;"
label="&chooseFolderMac.label;"
#else
accesskey="&chooseFolderWin.accesskey;"
label="&chooseFolderWin.label;"
#endif
preference="browser.download.folderList"
onsynctopreference="return gDownloadDirSection.writeFolderList();"/>
</hbox>
<hbox>
<radio id="alwaysAsk"
value="false"
label="&alwaysAsk.label;"
accesskey="&alwaysAsk.accesskey;"/>
<spacer flex="1"/>
</hbox>
</radiogroup>
</vbox>
</tabpanel>
<tabpanel orient="vertical">
<vbox flex="1">
<hbox id="cloudFileToggleAndThreshold" align="center">
<checkbox id="enableThreshold"
label="&enableCloudFileAccountOffer.label;"
preference="mail.compose.big_attachments.notify"
oncommand="gCloudFileTab.updateThreshold();"/>
<textbox id="cloudFileThreshold" type="number" increment="1"
maxlength="4" size="1"
preference="mail.compose.big_attachments.threshold_kb"
onsyncfrompreference="return gCloudFileTab.readThreshold();"
onsynctopreference="return gCloudFileTab.writeThreshold();"/>
<label control="cloudFileThreshold"
value="&enableCloudFileAccountOffer.mb;"/>
</hbox>
<hbox flex="1">
<vbox id="provider-listing">
<richlistbox id="cloudFileView" orient="vertical" flex="1"
seltype="single"
onselect="gCloudFileTab.onSelectionChanged();">
</richlistbox>
<separator class="thin"/>
<hbox>
<button id="addCloudFileAccount" flex="1" label="&addCloudFileAccount1.label;"
accesskey="&addCloudFileAccount1.accesskey;"
command="cmd_addCloudfileAccount"/>
<button id="removeCloudFileAccount" flex="1"
label="&removeCloudFileAccount.label;"
accesskey="&removeCloudFileAccount.accesskey;"
command="cmd_removeCloudfileAccount"/>
</hbox>
</vbox>
<vbox flex="1">
<deck id="cloudFileSettingsDeck" flex="1">
<vbox id="cloudFileDefaultPanel" flex="1">
<description>&addCloudFileAccount.description;</description>
</vbox>
<vbox id="cloudFileSettingsWrapper" flex="1">
</vbox>
<vbox id="cloudFileLoadingPanel" flex="1">
<hbox>
<spring flex="1"/>
<image id="cloudFileLoadingSpinner" />
<spring flex="1"/>
</hbox>
</vbox>
<vbox id="cloudFileAuthErrorPanel" flex="1">
<spacer flex="1"/>
<hbox>
<spring flex="1"/>
<image id="authImage"/>
<spring flex="1"/>
</hbox>
<description id="authMessage">&authRequired.description;</description>
<hbox>
<spring flex="1"/>
<button command="cmd_reauthCloudfileAccount" label="&authRequired.button.label;" accesskey="&authRequired.button.accesskey;"/>
<spring flex="1"/>
</hbox>
<spacer flex="1"/>
</vbox>
</deck>
</vbox>
</hbox>
</vbox>
</tabpanel>
</tabpanels>
</tabbox>
</prefpane>
</overlay>
|