Added two macro examples:
[zuwinko.git] / src / keybind-defaults.h
blobbe7e79610f8cf7b317dc08a1e61b8dc913d7538c
1 #ifndef MC__KEYBIND_DEFAULTS_H
2 #define MC__KEYBIND_DEFAULTS_H
4 #include "lib/global.h"
5 #include "lib/keybind.h" /* global_keymap_t */
7 /*** typedefs(not structures) and defined constants **********************************************/
9 /*** enums ***************************************************************************************/
11 /*** structures declarations (and typedefs of structures)*****************************************/
13 /*** global variables defined in .c file *********************************************************/
15 #ifdef USE_INTERNAL_EDIT
16 extern GArray *editor_keymap;
17 extern GArray *editor_x_keymap;
19 extern const global_keymap_t *editor_map;
20 extern const global_keymap_t *editor_x_map;
21 #endif
23 extern GArray *viewer_keymap;
24 extern GArray *viewer_hex_keymap;
25 extern GArray *main_keymap;
26 extern GArray *main_x_keymap;
27 extern GArray *panel_keymap;
28 extern GArray *input_keymap;
29 extern GArray *listbox_keymap;
30 extern GArray *tree_keymap;
31 extern GArray *help_keymap;
32 extern GArray *dialog_keymap;
33 #ifdef USE_DIFF_VIEW
34 extern GArray *diff_keymap;
35 #endif
37 extern const global_keymap_t *main_map;
38 extern const global_keymap_t *main_x_map;
39 extern const global_keymap_t *panel_map;
40 extern const global_keymap_t *input_map;
41 extern const global_keymap_t *listbox_map;
42 extern const global_keymap_t *tree_map;
43 extern const global_keymap_t *help_map;
44 extern const global_keymap_t *dialog_map;
45 #ifdef USE_DIFF_VIEW
46 extern const global_keymap_t *diff_map;
47 #endif
49 /* viewer/actions_cmd.c */
50 extern const global_keymap_t default_viewer_keymap[];
51 extern const global_keymap_t default_viewer_hex_keymap[];
53 #ifdef USE_INTERNAL_EDIT
54 /* ../edit/editkey.c */
55 extern const global_keymap_t default_editor_keymap[];
56 extern const global_keymap_t default_editor_x_keymap[];
57 #endif
59 /* screen.c */
60 extern const global_keymap_t default_panel_keymap[];
62 /* widget.c */
63 extern const global_keymap_t default_input_keymap[];
64 extern const global_keymap_t default_listbox_keymap[];
66 /* main.c */
67 extern const global_keymap_t default_main_map[];
68 extern const global_keymap_t default_main_x_map[];
70 /* tree.c */
71 extern const global_keymap_t default_tree_keymap[];
73 /* help.c */
74 extern const global_keymap_t default_help_keymap[];
76 /* dialog.c */
77 extern const global_keymap_t default_dialog_keymap[];
79 #ifdef USE_DIFF_VIEW
80 /* ydiff.c */
81 extern const global_keymap_t default_diff_keymap[];
82 #endif
84 /*** declarations of public functions ************************************************************/
86 /*** inline functions ****************************************************************************/
88 #endif /* MC__KEYBIND_DEFAULTS_H */