зеркало из https://github.com/mozilla/gecko-dev.git
implement view filter log UI. not part of the build yet.
This commit is contained in:
Родитель
d6f51b19b1
Коммит
c8d877e2fe
|
@ -0,0 +1,24 @@
|
|||
var gFilterList;
|
||||
var gLogFilters;
|
||||
|
||||
function onLoad()
|
||||
{
|
||||
gFilterList = window.arguments[0].filterList;
|
||||
gLogFilters = document.getElementById("logFilters");
|
||||
gLogFilters.checked = gFilterList.loggingEnabled;
|
||||
|
||||
var logView = document.getElementById("logView");
|
||||
// won't work yet
|
||||
// Security Error: Content at chrome://messenger/content/filterLog.xul
|
||||
// may not load or link to file:///C|/Documents%20and%20Settings/Administrator/Application%20Data/Mozilla/Profiles/sspitzer/js48p4bs.slt/ImapMail/nsmail-1/filterlog.html.
|
||||
logView.setAttribute("src", gFilterList.logURL);
|
||||
}
|
||||
|
||||
function toggleLogFilters()
|
||||
{
|
||||
gFilterList.loggingEnabled = gLogFilters.checked;
|
||||
}
|
||||
|
||||
function clearLog()
|
||||
{
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
<?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.
|
||||
-->
|
||||
|
||||
<?xml-stylesheet href="chrome://messenger/skin/viewLog.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window SYSTEM "chrome://messenger/locale/viewLog.dtd">
|
||||
|
||||
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
onload="onLoad();"
|
||||
title="&viewLog.title;"
|
||||
width="440" height="370"
|
||||
persist="screenX screenY width height">
|
||||
|
||||
<script type="application/x-javascript" src="chrome://messenger/content/viewLog.js"/>
|
||||
|
||||
<vbox flex="1">
|
||||
<description>&viewLogInfo.text;</description>
|
||||
<hbox>
|
||||
<checkbox id="logFilters" oncommand="toggleLogFiters()" label="&enableLog.label;" accesskey="&enableLog.accesskey;"/>
|
||||
<spacer flex="1"/>
|
||||
<button label="&clearLog.label;" accesskey="&clearLog.accesskey;" oncommand="clearLog()"/>
|
||||
</hbox>
|
||||
<browser id="logView" disablehistory="true" disablesecurity="true" src="about:blank" flex="1"/>
|
||||
</vbox>
|
||||
</window>
|
|
@ -0,0 +1,6 @@
|
|||
<!ENTITY viewLog.title "Filter Log">
|
||||
<!ENTITY viewLogInfo.text "The Filter Log is a file which documents what filters have been run. Use the check box below enable logging.">
|
||||
<!ENTITY clearLog.label "Clear Log">
|
||||
<!ENTITY clearLog.accesskey "C">
|
||||
<!ENTITY enableLog.label "Enable the Filter Log">
|
||||
<!ENTITY enableLog.accesskey "E">
|
|
@ -158,6 +158,8 @@ messenger.jar:
|
|||
content/messenger/FilterEditor.xul (base/search/resources/content/FilterEditor.xul)
|
||||
content/messenger/FilterEditor.js (base/search/resources/content/FilterEditor.js)
|
||||
content/messenger/mail-offline.js (base/resources/content/mail-offline.js)
|
||||
content/messenger/viewLog.xul (base/search/resources/content/viewLog.xul)
|
||||
content/messenger/viewLog.js (base/search/resources/content/viewLog.js)
|
||||
content/messenger/messengercompose/pref-composing_messages.xul (compose/prefs/resources/content/pref-composing_messages.xul)
|
||||
content/messenger/messengercompose/pref-formatting.xul (compose/prefs/resources/content/pref-formatting.xul)
|
||||
content/messenger/messengercompose/pref-formatting.js (compose/prefs/resources/content/pref-formatting.js)
|
||||
|
@ -219,6 +221,7 @@ en-US.jar:
|
|||
locale/en-US/messenger/msgSynchronize.dtd (base/resources/locale/en-US/msgSynchronize.dtd)
|
||||
locale/en-US/messenger/offline.properties (base/resources/locale/en-US/offline.properties)
|
||||
locale/en-US/messenger/SearchDialog.dtd (base/search/resources/locale/en-US/SearchDialog.dtd)
|
||||
locale/en-US/messenger/viewLog.dtd (base/search/resources/locale/en-US/viewLog.dtd)
|
||||
locale/en-US/messenger/FilterListDialog.dtd (base/search/resources/locale/en-US/FilterListDialog.dtd)
|
||||
locale/en-US/messenger/CustomHeaders.dtd (base/search/resources/locale/en-US/CustomHeaders.dtd)
|
||||
locale/en-US/messenger/FilterEditor.dtd (base/search/resources/locale/en-US/FilterEditor.dtd)
|
||||
|
|
|
@ -172,6 +172,7 @@ classic.jar:
|
|||
skin/classic/messenger/threadPane.css (messenger/threadPane.css)
|
||||
skin/classic/messenger/threadPaneLabels.css (messenger/threadPaneLabels.css)
|
||||
skin/classic/messenger/filterDialog.css (messenger/filterDialog.css)
|
||||
skin/classic/messenger/viewLog.css (messenger/viewLog.css)
|
||||
skin/classic/messenger/messageBody.css (messenger/messageBody.css)
|
||||
skin/classic/messenger/icons/attach.gif (messenger/icons/attach.gif)
|
||||
skin/classic/messenger/icons/check.gif (messenger/icons/check.gif)
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* 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.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Seth Spitzer <sspitzer@netscape.com>
|
||||
* Netscape Communications Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 1998
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the NPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the NPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
@import url("chrome://messenger/skin/");
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
|
@ -267,6 +267,7 @@ modern.jar:
|
|||
skin/modern/messenger/addressingWidget.css (messenger/addressingWidget.css)
|
||||
skin/modern/messenger/dialogs.css (messenger/dialogs.css)
|
||||
skin/modern/messenger/filterDialog.css (messenger/filterDialog.css)
|
||||
skin/modern/messenger/viewLog.css (messenger/viewLog.css)
|
||||
skin/modern/messenger/folderMenus.css (messenger/folderMenus.css)
|
||||
skin/modern/messenger/folderPane.css (messenger/folderPane.css)
|
||||
skin/modern/messenger/fakeAccount.css (messenger/fakeAccount.css)
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* 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.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Seth Spitzer <sspitzer@netscape.com>
|
||||
* Netscape Communications Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 1998
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the NPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the NPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
@import url("chrome://messenger/skin/");
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
Загрузка…
Ссылка в новой задаче