* Update to version 2.19.5
[alpine.git] / pico / osdep / msmenu.h
blobc55cf7a04eb3d542e22e8f657e376fd483f46ebf
1 /*
2 * ========================================================================
3 * Copyright 2006-2007 University of Washington
4 * Copyright 2013-2014 Eduardo Chappa
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * ========================================================================
16 #ifndef MSMENU_H
17 #define MSMENU_H
19 #include "resource.h"
23 * var in pine's key structure we'll use
25 #define KS_OSDATAVAR short menuitem;
26 #define KS_OSDATAGET(X) ((X)->menuitem)
27 #define KS_OSDATASET(X, Y) ((X)->menuitem = (Y))
30 * Menu key definitions.
31 * Should be same values as in resouce.h
32 * These are all in a range from KS_RANGESTART to KS_RANGEEND
33 * with no holes.
35 #define KS_NONE 0
36 #define KS_RANGESTART IDM_MI_VIEW
38 #define KS_VIEW IDM_MI_VIEW
39 #define KS_EXPUNGE IDM_MI_EXPUNGE
40 #define KS_ZOOM IDM_MI_ZOOM
41 #define KS_SORT IDM_MI_SORT
42 #define KS_HDRMODE IDM_MI_HDRMODE
43 #define KS_MAINMENU IDM_MI_MAINMENU
44 #define KS_FLDRLIST IDM_MI_FLDRLIST
45 #define KS_FLDRINDEX IDM_MI_FLDRINDEX
46 #define KS_COMPOSER IDM_MI_COMPOSER
47 #define KS_PREVPAGE IDM_MI_PREVPAGE
48 #define KS_PREVMSG IDM_MI_PREVMSG
49 #define KS_NEXTMSG IDM_MI_NEXTMSG
50 #define KS_ADDRBOOK IDM_MI_ADDRBOOK
51 #define KS_WHEREIS IDM_MI_WHEREIS
52 #define KS_PRINT IDM_MI_PRINT
53 #define KS_REPLY IDM_MI_REPLY
54 #define KS_FORWARD IDM_MI_FORWARD
55 #define KS_BOUNCE IDM_MI_BOUNCE
56 #define KS_DELETE IDM_MI_DELETE
57 #define KS_UNDELETE IDM_MI_UNDELETE
58 #define KS_FLAG IDM_MI_FLAG
59 #define KS_SAVE IDM_MI_SAVE
60 #define KS_EXPORT IDM_MI_EXPORT
61 #define KS_TAKEADDR IDM_MI_TAKEADDR
62 #define KS_SELECT IDM_MI_SELECT
63 #define KS_APPLY IDM_MI_APPLY
64 #define KS_POSTPONE IDM_MI_POSTPONE
65 #define KS_SEND IDM_MI_SEND
66 #define KS_CANCEL IDM_MI_CANCEL
67 #define KS_ATTACH IDM_MI_ATTACH
68 #define KS_TOADDRBOOK IDM_MI_TOADDRBOOK
69 #define KS_READFILE IDM_MI_READFILE
70 #define KS_JUSTIFY IDM_MI_JUSTIFY
71 #define KS_ALTEDITOR IDM_MI_ALTEDITOR
72 #define KS_GENERALHELP IDM_MI_GENERALHELP
73 #define KS_SCREENHELP IDM_MI_SCREENHELP
74 #define KS_EXIT IDM_MI_EXIT
75 #define KS_NEXTPAGE IDM_MI_NEXTPAGE
76 #define KS_SAVEFILE IDM_MI_SAVEFILE
77 #define KS_CURPOSITION IDM_MI_CURPOSITION
78 #define KS_GOTOFLDR IDM_MI_GOTOFLDR
79 #define KS_JUMPTOMSG IDM_MI_JUMPTOMSG
80 #define KS_RICHHDR IDM_MI_RICHHDR
81 #define KS_EXITMODE IDM_MI_EXITMODE
82 #define KS_REVIEW IDM_MI_REVIEW
83 #define KS_KEYMENU IDM_MI_KEYMENU
84 #define KS_SELECTCUR IDM_MI_SELECTCUR
85 #define KS_UNDO IDM_MI_UNDO
86 #define KS_SPELLCHK IDM_MI_SPELLCHK
88 #define KS_RANGEEND IDM_MI_SPELLCHK
90 #define KS_COUNT ((KS_RANGEEND - KS_RANGESTART) + 1)
94 #define MENU_DEFAULT 300 /* Default menu for application. */
95 #define MENU_COMPOSER 301 /* Menu for pine's composer. */
97 #endif /* MSMENU_H */