Make reindent
[krb5.git] / src / windows / identity / uilib / khactiondef.h
1 /*
2  * Copyright (c) 2005 Massachusetts Institute of Technology
3  * Copyright (c) 2007 Secure Endpoints Inc.
4  *
5  * Permission is hereby granted, free of charge, to any person
6  * obtaining a copy of this software and associated documentation
7  * files (the "Software"), to deal in the Software without
8  * restriction, including without limitation the rights to use, copy,
9  * modify, merge, publish, distribute, sublicense, and/or sell copies
10  * of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be
14  * included in all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
20  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
21  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23  * SOFTWARE.
24  */
25
26 /* $Id$ */
27
28 #ifndef __KHIMAIRA_ACTIONDEF_H
29 #define __KHIMAIRA_ACTIONDEF_H
30
31 /*! \ingroup khui_actions
32   @{*/
33 /*! \defgroup khui_std_actions Standard Actions
34 @{ */
35
36 /*!\name Standard actions
37   @{*/
38 #define KHUI_ACTION_BASE 50000
39
40 #define KHUI_ACTION_PROPERTIES  (KHUI_ACTION_BASE + 0)
41 #define KHUI_ACTION_EXIT        (KHUI_ACTION_BASE + 1)
42 #define KHUI_ACTION_SET_DEF_ID  (KHUI_ACTION_BASE + 3)
43 #define KHUI_ACTION_SET_SRCH_ID (KHUI_ACTION_BASE + 4)
44 #define KHUI_ACTION_PASSWD_ID   (KHUI_ACTION_BASE + 7)
45 #define KHUI_ACTION_NEW_CRED    (KHUI_ACTION_BASE + 8)
46 #define KHUI_ACTION_DEBUG_WINDOW    (KHUI_ACTION_BASE + 10)
47 #define KHUI_ACTION_VIEW_REFRESH    (KHUI_ACTION_BASE + 11)
48 #define KHUI_ACTION_LAYOUT_ID   (KHUI_ACTION_BASE + 12)
49 #define KHUI_ACTION_LAYOUT_TYPE (KHUI_ACTION_BASE + 13)
50 #define KHUI_ACTION_LAYOUT_LOC  (KHUI_ACTION_BASE + 14)
51 #define KHUI_ACTION_TB_STANDARD (KHUI_ACTION_BASE + 15)
52 #define KHUI_ACTION_OPT_KHIM    (KHUI_ACTION_BASE + 16)
53 #define KHUI_ACTION_OPT_IDENTS  (KHUI_ACTION_BASE + 17)
54 #define KHUI_ACTION_OPT_NOTIF   (KHUI_ACTION_BASE + 18)
55 #define KHUI_ACTION_HELP_CTX    (KHUI_ACTION_BASE + 19)
56 #define KHUI_ACTION_HELP_CONTENTS   (KHUI_ACTION_BASE + 20)
57 #define KHUI_ACTION_HELP_INDEX  (KHUI_ACTION_BASE + 21)
58 #define KHUI_ACTION_HELP_ABOUT  (KHUI_ACTION_BASE + 22)
59 #define KHUI_ACTION_DESTROY_CRED    (KHUI_ACTION_BASE + 23)
60 #define KHUI_ACTION_RENEW_CRED  (KHUI_ACTION_BASE + 24)
61 #define KHUI_ACTION_OPEN_APP    (KHUI_ACTION_BASE + 25)
62 #define KHUI_ACTION_MENU_ACTIVATE   (KHUI_ACTION_BASE + 26)
63 #define KHUI_ACTION_CLOSE_APP   (KHUI_ACTION_BASE + 27)
64 #define KHUI_ACTION_IMPORT      (KHUI_ACTION_BASE + 28)
65 #define KHUI_ACTION_OPT_PLUGINS (KHUI_ACTION_BASE + 29)
66 #define KHUI_ACTION_LAYOUT_CUST (KHUI_ACTION_BASE + 30)
67 #define KHUI_ACTION_OPT_APPEAR  (KHUI_ACTION_BASE + 31)
68 #define KHUI_ACTION_LAYOUT_RELOAD (KHUI_ACTION_BASE + 32)
69 #define KHUI_ACTION_RENEW_ALL   (KHUI_ACTION_BASE + 33)
70 #define KHUI_ACTION_DESTROY_ALL (KHUI_ACTION_BASE + 34)
71 #define KHUI_ACTION_UICB        (KHUI_ACTION_BASE + 35)
72 #define KHUI_ACTION_LAYOUT_MINI (KHUI_ACTION_BASE + 36)
73 #define KHUI_ACTION_VIEW_ALL_IDS (KHUI_ACTION_BASE + 37)
74 /*@}*/
75
76 /*! \name Pseudo actions
77
78 Pseudo actions do not trigger any specific function, but acts as a
79 signal of some generic event which will be interpreted based on
80 context.
81
82 @{*/
83 #define KHUI_PACTION_BASE   (KHUI_ACTION_BASE + 500)
84
85 #define KHUI_PACTION_MENU   (KHUI_PACTION_BASE + 0)
86 #define KHUI_PACTION_UP     (KHUI_PACTION_BASE + 1)
87 #define KHUI_PACTION_DOWN   (KHUI_PACTION_BASE + 2)
88 #define KHUI_PACTION_LEFT   (KHUI_PACTION_BASE + 3)
89 #define KHUI_PACTION_RIGHT  (KHUI_PACTION_BASE + 4)
90 #define KHUI_PACTION_ENTER  (KHUI_PACTION_BASE + 5)
91 #define KHUI_PACTION_ESC    (KHUI_PACTION_BASE + 6)
92 #define KHUI_PACTION_OK     (KHUI_PACTION_BASE + 7)
93 #define KHUI_PACTION_CANCEL (KHUI_PACTION_BASE + 8)
94 #define KHUI_PACTION_CLOSE  (KHUI_PACTION_BASE + 9)
95 #define KHUI_PACTION_DELETE (KHUI_PACTION_BASE + 10)
96 #define KHUI_PACTION_UP_EXTEND (KHUI_PACTION_BASE + 11)
97 #define KHUI_PACTION_UP_TOGGLE (KHUI_PACTION_BASE + 12)
98 #define KHUI_PACTION_DOWN_EXTEND (KHUI_PACTION_BASE + 13)
99 #define KHUI_PACTION_DOWN_TOGGLE (KHUI_PACTION_BASE + 14)
100 #define KHUI_PACTION_BLANK  (KHUI_PACTION_BASE + 15)
101 #define KHUI_PACTION_NEXT   (KHUI_PACTION_BASE + 16)
102 #define KHUI_PACTION_SELALL (KHUI_PACTION_BASE + 17)
103 #define KHUI_PACTION_YES    (KHUI_PACTION_BASE + 18)
104 #define KHUI_PACTION_NO     (KHUI_PACTION_BASE + 19)
105 #define KHUI_PACTION_YESALL (KHUI_PACTION_BASE + 20)
106 #define KHUI_PACTION_NOALL  (KHUI_PACTION_BASE + 21)
107 #define KHUI_PACTION_REMOVE (KHUI_PACTION_BASE + 22)
108 #define KHUI_PACTION_KEEP   (KHUI_PACTION_BASE + 23)
109 #define KHUI_PACTION_DISCARD (KHUI_PACTION_BASE + 24)
110 #define KHUI_PACTION_PGDN   (KHUI_PACTION_BASE + 25)
111 #define KHUI_PACTION_PGUP   (KHUI_PACTION_BASE + 26)
112 #define KHUI_PACTION_PGUP_EXTEND (KHUI_PACTION_BASE + 27)
113 #define KHUI_PACTION_PGDN_EXTEND (KHUI_PACTION_BASE + 28)
114
115 /*@}*/
116
117 /*! \name Menus
118
119 Stock menus.
120
121 @{*/
122 #define KHUI_MENU_BASE      (KHUI_ACTION_BASE + 1000)
123
124 #define KHUI_MENU_MAIN      (KHUI_MENU_BASE + 0)
125 #define KHUI_MENU_FILE      (KHUI_MENU_BASE + 1)
126 #define KHUI_MENU_CRED      (KHUI_MENU_BASE + 2)
127 #define KHUI_MENU_VIEW      (KHUI_MENU_BASE + 3)
128 #define KHUI_MENU_OPTIONS   (KHUI_MENU_BASE + 4)
129 #define KHUI_MENU_HELP      (KHUI_MENU_BASE + 5)
130
131 #define KHUI_MENU_LAYOUT    (KHUI_MENU_BASE + 6)
132 #define KHUI_MENU_TOOLBARS  (KHUI_MENU_BASE + 7)
133
134 #define KHUI_MENU_IDENT_CTX (KHUI_MENU_BASE + 8)
135 #define KHUI_MENU_TOK_CTX   (KHUI_MENU_BASE + 9)
136 #define KHUI_MENU_ICO_CTX_MIN    (KHUI_MENU_BASE + 12)
137 #define KHUI_MENU_ICO_CTX_NORMAL (KHUI_MENU_BASE + 13)
138 #define KHUI_MENU_CWHEADER_CTX   (KHUI_MENU_BASE + 14)
139
140 #define KHUI_MENU_COLUMNS   (KHUI_MENU_BASE + 15)
141
142 #define KHUI_PMENU_TOK_SEL  (KHUI_MENU_BASE + 10)
143 #define KHUI_PMENU_ID_SEL   (KHUI_MENU_BASE + 11)
144
145 #define KHUI_MENU_DESTROY_CRED (KHUI_MENU_BASE + 16)
146 #define KHUI_MENU_RENEW_CRED (KHUI_MENU_BASE + 17)
147 #define KHUI_MENU_SETDEF    (KHUI_MENU_BASE + 18)
148
149 /*@}*/
150
151 /*! \name Toolbars
152 @{*/
153 #define KHUI_TOOLBAR_BASE   (KHUI_ACTION_BASE + 2000)
154
155 #define KHUI_TOOLBAR_STANDARD   (KHUI_TOOLBAR_BASE + 0)
156 /*@}*/
157
158 /*! \brief Base for user actions
159
160     When creating new actions, the UI library will allocate command
161     identifiers starting with this one.
162 */
163 #define KHUI_USERACTION_BASE    (KHUI_ACTION_BASE + 10000)
164
165 /*! \brief Does this command represent a user action? */
166 #define IS_USERACTION(cmd) ((cmd) >= KHUI_USERACTION_BASE)
167 /*@}*/
168 /*@}*/
169
170 #endif