implement more of the View | Sort menu items, implement the View | Headers menu items, remove dead code. r=putterman, a=sdagley

This commit is contained in:
sspitzer%netscape.com 1999-12-22 00:18:44 +00:00
parent 6bc395d764
commit 4b7de92dda
4 changed files with 94 additions and 47 deletions

View File

@ -84,16 +84,16 @@ Rights Reserved.
<treehead>
<treerow id="headRow">
<treecell display="Thread" onclick="return top.ChangeThreadView();" class='threadColumnHeader' id="ThreadColumnHeader"/>
<treecell value="&subjectColumn.label;" onclick="return top.SortThreadPane('SubjectColumn', 'http://home.netscape.com/NC-rdf#Subject');"/>
<treecell onclick="return top.SortThreadPane('AuthorColumn', 'http://home.netscape.com/NC-rdf#Sender');" value="&senderColumn.label;"/>
<treecell display="Read" class="readColumnHeader"/>
<treecell value="&dateColumn.label;" onclick="return top.SortThreadPane('DateColumn', 'http://home.netscape.com/NC-rdf#Date');"/>
<treecell value="&priorityColumn.label;" onclick="return top.SortThreadPane('PriorityColumn', 'http://home.netscape.com/NC-rdf#Priority');"/>
<treecell display="Flag" class="flagColumnHeader"/>
<treecell value="&statusColumn.label;" onclick="return top.SortThreadPane('StatusColumn', 'http://home.netscape.com/NC-rdf#Status');"/>
<treecell value="&sizeColumn.label;" onclick="return top.SortThreadPane('SizeColumn', 'http://home.netscape.com/NC-rdf#Size');"/>
<treecell value="&unreadColumn.label;" onclick="return top.SortThreadPane('UnreadColumn', 'http://home.netscape.com/NC-rdf#TotalUnreadMessages');"/>
<treecell value="&totalColumn.label;" onclick="return top.SortThreadPane('TotalColumn', 'http://home.netscape.com/NC-rdf#TotalMessages');"/>
<treecell value="&subjectColumn.label;" onclick="return top.MsgSortBySubject();"/>
<treecell onclick="return top.MsgSortBySender();" value="&senderColumn.label;"/>
<treecell display="Read" onclick="return top.MsgSortByRead();" class="readColumnHeader"/>
<treecell value="&dateColumn.label;" onclick="return top.MsgSortByDate();"/>
<treecell value="&priorityColumn.label;" onclick="return top.MsgSortByPriority();"/>
<treecell display="Flag" onclick="return top.MsgSortByFlagged();" class="flagColumnHeader"/>
<treecell value="&statusColumn.label;" onclick="return top.MsgSortByStatus();"/>
<treecell value="&sizeColumn.label;" onclick="return top.MsgSortBySize();"/>
<treecell value="&unreadColumn.label;" onclick="return top.MsgSortByUnread();"/>
<treecell value="&totalColumn.label;" onclick="return top.MsgSortByTotal();"/>
<treecell allowevents="true" id="popupCell">
<menu>
<titledbutton src="chrome://global/skin/opentwisty.gif"/>

View File

@ -28,6 +28,9 @@ var msgComposeType = Components.interfaces.nsIMsgCompType;
var msgComposFormat = Components.interfaces.nsIMsgCompFormat;
var Bundle = srGetStrBundle("chrome://messenger/locale/messenger.properties");
var prefs = Components.classes['component://netscape/preferences'].getService();
prefs = prefs.QueryInterface(Components.interfaces.nsIPref);
// Controller object for folder pane
var FolderPaneController =
{
@ -221,13 +224,6 @@ var viewShowRead = 1;
var viewShowUnread =2;
var viewShowWatched = 3;
function MsgLoadNewsMessage(url)
{
dump("\n\nMsgLoadNewsMessage from XUL\n");
OpenURL(url);
}
function MsgHome(url)
{
window.open( url, "_blank", "chrome,dependent=yes,all" );
@ -326,8 +322,6 @@ function MsgReplyToAllMessage(event)
function MsgForwardMessage(event)
{
dump("\nMsgForwardMessage from XUL\n");
var prefs = Components.classes['component://netscape/preferences'].getService();
prefs = prefs.QueryInterface(Components.interfaces.nsIPref);
var forwardType = 0;
try {
var forwardType = prefs.GetIntPref("mail.forward_message_mode");
@ -451,6 +445,48 @@ function MsgSortBySubject()
SortThreadPane('SubjectColumn', 'http://home.netscape.com/NC-rdf#Subject');
}
function MsgSortByFlagged()
{
SortThreadPane('FlaggedButtonColumn', 'http://home.netscape.com/NC-rdf#Flagged');
}
function MsgSortByPriority()
{
SortThreadPane('PriorityColumn', 'http://home.netscape.com/NC-rdf#Priority');
}
function MsgSortBySize()
{
SortThreadPane('SizeColumn', 'http://home.netscape.com/NC-rdf#Size');
}
function MsgSortByThread()
{
ChangeThreadView()
}
function MsgSortByUnread()
{
SortThreadPane('UnreadButtonColumn', 'http://home.netscape.com/NC-rdf#TotalUnreadMessages');
}
function MsgSortByOrderReceived()
{
dump("not implemented yet.\n");
}
function MsgSortAscending()
{
dump("not implemented yet.\n");
}
function MsgSortDescending()
{
dump("not implemented yet.\n");
}
function MsgSortByRead()
{
dump("not implemented yet.\n");
}
function MsgSortByTotal()
{
SortThreadPane('TotalColumn', 'http://home.netscape.com/NC-rdf#TotalMessages');
}
function MsgNewFolder()
{
var windowTitle = Bundle.GetStringFromName("newFolderDialogTitle");
@ -758,25 +794,36 @@ function MsgShowFolders()
function MsgFolderProperties() {}
function MsgShowLocationbar() {}
function MsgSortByFlag() {}
function MsgSortByPriority() {}
function MsgSortBySize() {}
function MsgSortByThread() {}
function MsgSortByUnread() {}
function MsgSortByOrderReceived() {}
function MsgSortAscending() {}
function MsgSortDescending() {}
function MsgViewThreadsUnread() {}
function MsgViewWatchedThreadsUnread() {}
function MsgViewIgnoreThread() {}
function MsgViewAllHeaders() {}
function MsgViewNormalHeaders() {}
function MsgViewBriefHeaders() {}
function MsgViewAllHeaders()
{
prefs.SetIntPref("mail.show_headers",2);
MsgReload()
}
function MsgViewNormalHeaders()
{
prefs.SetIntPref("mail.show_headers",1);
MsgReload()
}
function MsgViewBriefHeaders()
{
prefs.SetIntPref("mail.show_headers",0);
MsgReload()
}
function MsgViewAttachInline() {}
function MsgWrapLongLines() {}
function MsgIncreaseFont() {}
function MsgDecreaseFont() {}
function MsgReload() {}
function MsgReload()
{
ThreadPaneSelectionChange()
}
function MsgShowImages() {}
function MsgRefresh() {}
function MsgViewPageSource() {}

View File

@ -88,13 +88,13 @@ Rights Reserved.
<!ENTITY showFoldersCmd.label "Folders">
<!ENTITY sortMenu.label "Sort">
<!ENTITY sortByDateCmd.label "by Date">
<!ENTITY sortByFlagCmd.label ".by Flag">
<!ENTITY sortByPriorityCmd.label ".by Priority">
<!ENTITY sortByFlagCmd.label "by Flag">
<!ENTITY sortByPriorityCmd.label "by Priority">
<!ENTITY sortBySenderCmd.label "by Sender">
<!ENTITY sortBySizeCmd.label ".by Size">
<!ENTITY sortBySizeCmd.label "by Size">
<!ENTITY sortByStatusCmd.label "by Status">
<!ENTITY sortBySubjectCmd.label "by Subject">
<!ENTITY sortByThreadCmd.label ".by Thread">
<!ENTITY sortByThreadCmd.label "by Thread">
<!ENTITY sortByUnreadCmd.label ".by Unread">
<!ENTITY sortByOrderReceivedCmd.label ".by Order Received">
<!ENTITY sortAscendCmd.label ".Ascending">
@ -106,10 +106,10 @@ Rights Reserved.
<!ENTITY threadsWithUnreadMsgsCmd.label ".Threads with Unread">
<!ENTITY watchedThreadsMsgsCmd.label ".Watched Threads with Unread">
<!ENTITY ignoreThreadMsgsCmd.label ".Ignore Thread">
<!ENTITY headersMenu.label ".Headers">
<!ENTITY headersAllCmd.label ".All">
<!ENTITY headersNormalCmd.label ".Normal">
<!ENTITY headersBriefCmd.label ".Brief">
<!ENTITY headersMenu.label "Headers">
<!ENTITY headersAllCmd.label "All">
<!ENTITY headersNormalCmd.label "Normal">
<!ENTITY headersBriefCmd.label "Brief">
<!ENTITY viewAttachmentsInlineCmd.label ".View Attachments Inline">
<!ENTITY wrapLongLinesCmd.label ".Wrap Long Lines">
<!ENTITY increaseFontCmd.label ".Enlarge Text Size">

View File

@ -88,13 +88,13 @@ Rights Reserved.
<!ENTITY showFoldersCmd.label "Folders">
<!ENTITY sortMenu.label "Sort">
<!ENTITY sortByDateCmd.label "by Date">
<!ENTITY sortByFlagCmd.label ".by Flag">
<!ENTITY sortByPriorityCmd.label ".by Priority">
<!ENTITY sortByFlagCmd.label "by Flag">
<!ENTITY sortByPriorityCmd.label "by Priority">
<!ENTITY sortBySenderCmd.label "by Sender">
<!ENTITY sortBySizeCmd.label ".by Size">
<!ENTITY sortBySizeCmd.label "by Size">
<!ENTITY sortByStatusCmd.label "by Status">
<!ENTITY sortBySubjectCmd.label "by Subject">
<!ENTITY sortByThreadCmd.label ".by Thread">
<!ENTITY sortByThreadCmd.label "by Thread">
<!ENTITY sortByUnreadCmd.label ".by Unread">
<!ENTITY sortByOrderReceivedCmd.label ".by Order Received">
<!ENTITY sortAscendCmd.label ".Ascending">
@ -106,10 +106,10 @@ Rights Reserved.
<!ENTITY threadsWithUnreadMsgsCmd.label ".Threads with Unread">
<!ENTITY watchedThreadsMsgsCmd.label ".Watched Threads with Unread">
<!ENTITY ignoreThreadMsgsCmd.label ".Ignore Thread">
<!ENTITY headersMenu.label ".Headers">
<!ENTITY headersAllCmd.label ".All">
<!ENTITY headersNormalCmd.label ".Normal">
<!ENTITY headersBriefCmd.label ".Brief">
<!ENTITY headersMenu.label "Headers">
<!ENTITY headersAllCmd.label "All">
<!ENTITY headersNormalCmd.label "Normal">
<!ENTITY headersBriefCmd.label "Brief">
<!ENTITY viewAttachmentsInlineCmd.label ".View Attachments Inline">
<!ENTITY wrapLongLinesCmd.label ".Wrap Long Lines">
<!ENTITY increaseFontCmd.label ".Enlarge Text Size">