keymap.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #ifndef MC__KEYBIND_DEFAULTS_H
  2. #define MC__KEYBIND_DEFAULTS_H
  3. #include "lib/global.h"
  4. #include "lib/keybind.h" /* global_keymap_t */
  5. #include "lib/mcconfig.h" /* mc_config_t */
  6. /*** typedefs(not structures) and defined constants **********************************************/
  7. /*** enums ***************************************************************************************/
  8. /*** structures declarations (and typedefs of structures)*****************************************/
  9. /*** global variables defined in .c file *********************************************************/
  10. extern GArray *filemanager_keymap;
  11. extern GArray *filemanager_x_keymap;
  12. extern GArray *panel_keymap;
  13. extern GArray *dialog_keymap;
  14. extern GArray *menu_keymap;
  15. extern GArray *input_keymap;
  16. extern GArray *listbox_keymap;
  17. extern GArray *radio_keymap;
  18. extern GArray *tree_keymap;
  19. extern GArray *help_keymap;
  20. #ifdef ENABLE_EXT2FS_ATTR
  21. extern GArray *chattr_keymap;
  22. #endif
  23. #ifdef USE_INTERNAL_EDIT
  24. extern GArray *editor_keymap;
  25. extern GArray *editor_x_keymap;
  26. #endif
  27. extern GArray *viewer_keymap;
  28. extern GArray *viewer_hex_keymap;
  29. #ifdef USE_DIFF_VIEW
  30. extern GArray *diff_keymap;
  31. #endif
  32. extern const global_keymap_t *filemanager_map;
  33. extern const global_keymap_t *filemanager_x_map;
  34. extern const global_keymap_t *panel_map;
  35. extern const global_keymap_t *tree_map;
  36. extern const global_keymap_t *help_map;
  37. #ifdef ENABLE_EXT2FS_ATTR
  38. extern const global_keymap_t *chattr_map;
  39. #endif
  40. #ifdef USE_INTERNAL_EDIT
  41. extern const global_keymap_t *editor_map;
  42. extern const global_keymap_t *editor_x_map;
  43. #endif
  44. extern const global_keymap_t *viewer_map;
  45. extern const global_keymap_t *viewer_hex_map;
  46. #ifdef USE_DIFF_VIEW
  47. extern const global_keymap_t *diff_map;
  48. #endif
  49. /*** declarations of public functions ************************************************************/
  50. void keymap_load (gboolean load_from_file);
  51. void keymap_free (void);
  52. /*** inline functions ****************************************************************************/
  53. #endif /* MC__KEYBIND_DEFAULTS_H */