BuildWalnutMenus:
PUBLIC
PROC = {
OPEN Menus;
menu for personal mail database
AppendMenuEntry[mailDBMenu, CreateEntry["Sender", NewSenderProc]];
AppendMenuEntry[mailDBMenu, CreateEntry["NewMail", NewMailProc]];
AppendMenuEntry[mailDBMenu,
WalnutViewer.CreateMenuEntry[walnutQueue, "CloseAll", CloseAllProc]];
AppendMenuEntry[mailDBMenu, CreateEntry["MsgSetOps", MsgSetOpsProc]];
AppendMenuEntry[mailDBMenu,
WalnutViewer.CreateMenuEntry[walnutQueue, "NumMsgs", NumMsgsProc]];
AppendMenuEntry[mailDBMenu,
WalnutViewer.CreateMenuEntry[walnutQueue, "ExpInfo", ExpungeInfo]];
AppendMenuEntry[mailDBMenu, CreateEntry["Find", FindProc]];
now for the second line
AppendMenuEntry[mailDBMenu,
CreateEntry[name: "Exp", proc: MenuExpunge, guarded: TRUE], 1];
AppendMenuEntry[mailDBMenu, CreateEntry["Delete", DeleteMsgSetsProc], 1];
AppendMenuEntry[mailDBMenu, CreateEntry["SizeOf", SizeOfMsgSetsProc], 1];
AppendMenuEntry[mailDBMenu, CreateEntry["Print", PrintMsgSetsProc], 1];
AppendMenuEntry[mailDBMenu, CreateEntry["Create", CreateMsgSetButtonProc], 1];
AppendMenuEntry[mailDBMenu, CreateEntry["Archive", ArchiveButtonProc], 1];
AppendMenuEntry[mailDBMenu, CreateEntry["Append", AppendButtonProc], 1];
AppendMenuEntry[mailDBMenu, CreateEntry["PrevPlace", PrevPlaceProc], 1];
Menus.ChangeNumberOfLines[mailDBMenu, 1];
menu for read only database
AppendMenuEntry[readOnlyDBMenu, CreateEntry["Sender", NewSenderProc]];
AppendMenuEntry[readOnlyDBMenu,
WalnutViewer.CreateMenuEntry[walnutQueue, "CloseAll", CloseAllProc]];
AppendMenuEntry[readOnlyDBMenu, CreateEntry["SizeOf", SizeOfMsgSetsProc]];
AppendMenuEntry[readOnlyDBMenu,
WalnutViewer.CreateMenuEntry[walnutQueue, "NumMsgs", NumMsgsProc]];
AppendMenuEntry[readOnlyDBMenu, CreateEntry["MsgSetOps", MsgSetOpsProc]];
AppendMenuEntry[readOnlyDBMenu, CreateEntry["Find", FindProc]];
AppendMenuEntry[readOnlyDBMenu, CreateEntry["Print", PrintMsgSetsProc],1];
AppendMenuEntry[readOnlyDBMenu, CreateEntry["Archive", ArchiveButtonProc], 1];
AppendMenuEntry[readOnlyDBMenu, CreateEntry["Append", AppendButtonProc], 1];
AppendMenuEntry[readOnlyDBMenu, CreateEntry["PrevPlace", PrevPlaceProc], 1];
Menus.ChangeNumberOfLines[readOnlyDBMenu, 1];
menu for nonMail writeable database
AppendMenuEntry[nonMailDBMenu, CreateEntry["Sender", NewSenderProc]];
AppendMenuEntry[nonMailDBMenu,
WalnutViewer.CreateMenuEntry[walnutQueue, "CloseAll", CloseAllProc]];
AppendMenuEntry[nonMailDBMenu, CreateEntry["MsgSetOps", MsgSetOpsProc]];
AppendMenuEntry[nonMailDBMenu,
WalnutViewer.CreateMenuEntry[walnutQueue, "NumMsgs", NumMsgsProc]];
AppendMenuEntry[nonMailDBMenu,
WalnutViewer.CreateMenuEntry[walnutQueue, "ExpInfo", ExpungeInfo]];
AppendMenuEntry[nonMailDBMenu, CreateEntry["Find", FindProc]];
now for the second line
AppendMenuEntry[nonMailDBMenu,
CreateEntry[name: "Exp", proc: MenuExpunge, guarded: TRUE], 1];
AppendMenuEntry[nonMailDBMenu, CreateEntry["Delete", DeleteMsgSetsProc], 1];
AppendMenuEntry[nonMailDBMenu, CreateEntry["SizeOf", SizeOfMsgSetsProc], 1];
AppendMenuEntry[nonMailDBMenu, CreateEntry["Print", PrintMsgSetsProc], 1];
AppendMenuEntry[nonMailDBMenu, CreateEntry["Create", CreateMsgSetButtonProc], 1];
AppendMenuEntry[nonMailDBMenu, CreateEntry["Archive", ArchiveButtonProc], 1];
AppendMenuEntry[nonMailDBMenu, CreateEntry["Append", AppendButtonProc], 1];
AppendMenuEntry[nonMailDBMenu, CreateEntry["PrevPlace", PrevPlaceProc], 1];
Menus.ChangeNumberOfLines[nonMailDBMenu, 1];
AppendMenuEntry[workingMenu, CreateEntry["Sender", NewSenderProc]];
AppendMenuEntry[confirmMenu, CreateEntry["Sender", NewSenderProc]];
AppendMenuEntry[confirmMenu, CreateEntry["Confirm", WWConfirmProc]];
AppendMenuEntry[confirmMenu, CreateEntry["Deny", WWDenyProc]];
AppendMenuEntry[startupConfirmMenu, CreateEntry["Continue", WWConfirmProc]];
AppendMenuEntry[startupConfirmMenu, CreateEntry["Quit", WWDenyProc]];
AppendMenuEntry[forceQuitMenu, CreateEntry["Quit", WWConfirmProc]];
AppendMenuEntry[maybeQuitMenu, CreateEntry["Quit", WWConfirmProc]];
AppendMenuEntry[maybeQuitMenu, CreateEntry["Retry", WWDenyProc]];
AppendMenuEntry[scavMenu, CreateEntry["Quit", WWDenyProc]];
AppendMenuEntry[scavMenu, CreateEntry["Scavenge", WWConfirmProc]];
};