From c8d877e2fea25a87daf2b0e2323ec07ae56f7230 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Thu, 12 Sep 2002 04:04:54 +0000 Subject: [PATCH] implement view filter log UI. not part of the build yet. --- .../base/search/resources/content/viewLog.js | 24 ++++++++++ .../base/search/resources/content/viewLog.xul | 44 +++++++++++++++++++ .../search/resources/locale/en-US/viewLog.dtd | 6 +++ mailnews/jar.mn | 3 ++ themes/classic/jar.mn | 1 + themes/classic/messenger/viewLog.css | 41 +++++++++++++++++ themes/modern/jar.mn | 1 + themes/modern/messenger/viewLog.css | 41 +++++++++++++++++ 8 files changed, 161 insertions(+) create mode 100644 mailnews/base/search/resources/content/viewLog.js create mode 100644 mailnews/base/search/resources/content/viewLog.xul create mode 100644 mailnews/base/search/resources/locale/en-US/viewLog.dtd create mode 100644 themes/classic/messenger/viewLog.css create mode 100644 themes/modern/messenger/viewLog.css diff --git a/mailnews/base/search/resources/content/viewLog.js b/mailnews/base/search/resources/content/viewLog.js new file mode 100644 index 000000000000..b348e2a3b215 --- /dev/null +++ b/mailnews/base/search/resources/content/viewLog.js @@ -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() +{ +} diff --git a/mailnews/base/search/resources/content/viewLog.xul b/mailnews/base/search/resources/content/viewLog.xul new file mode 100644 index 000000000000..e9195defcac2 --- /dev/null +++ b/mailnews/base/search/resources/content/viewLog.xul @@ -0,0 +1,44 @@ + + + + + + + + + + +