add select flagged menu item, porting of Neil's SM patch, r=magnus, 72823

This commit is contained in:
bienvenu%nventure.com 2008-07-07 20:54:49 +00:00
Родитель 7631e5bd6e
Коммит fd0dc8a29d
2 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -229,6 +229,7 @@ var DefaultController =
case "cmd_selectAll": case "cmd_selectAll":
case "cmd_selectThread": case "cmd_selectThread":
case "cmd_moveToFolderAgain": case "cmd_moveToFolderAgain":
case "cmd_selectFlagged":
return true; return true;
case "cmd_downloadFlagged": case "cmd_downloadFlagged":
case "cmd_downloadSelected": case "cmd_downloadSelected":
@ -375,6 +376,7 @@ var DefaultController =
case "cmd_search": case "cmd_search":
return IsCanSearchMessagesEnabled(); return IsCanSearchMessagesEnabled();
case "cmd_selectAll": case "cmd_selectAll":
case "cmd_selectFlagged":
return gDBView != null; return gDBView != null;
// these are enabled on when we are in threaded mode // these are enabled on when we are in threaded mode
case "cmd_selectThread": case "cmd_selectThread":
@ -699,6 +701,9 @@ var DefaultController =
case "cmd_selectThread": case "cmd_selectThread":
gDBView.doCommand(nsMsgViewCommandType.selectThread); gDBView.doCommand(nsMsgViewCommandType.selectThread);
break; break;
case "cmd_selectFlagged":
gDBView.doCommand(nsMsgViewCommandType.selectFlagged);
break;
} }
}, },

Просмотреть файл

@ -1003,6 +1003,10 @@
accesskey="&selectThreadCmd.accesskey;" accesskey="&selectThreadCmd.accesskey;"
key="key_selectThread" key="key_selectThread"
command="cmd_selectThread"/> command="cmd_selectThread"/>
<menuitem id="menu_selectFlagged"
label="&selectFlaggedCmd.label;"
accesskey="&selectFlaggedCmd.accesskey;"
command="cmd_selectFlagged"/>
</menupopup> </menupopup>
</menu> </menu>
<menuseparator id="editMenuAfterSelectSeparator"/> <menuseparator id="editMenuAfterSelectSeparator"/>