home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / AP / JED / JED097-1.TAR / jed / src / keymap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-12  |  1.8 KB  |  62 lines

  1. /*
  2.  *  Copyright (c) 1992, 1994 John E. Davis  (davis@amy.tch.harvard.edu)
  3.  *  All Rights Reserved.
  4.  */
  5. #ifndef _JED_KEYMAP_H_
  6. #define _JED_KEYMAP_H_  
  7. /* Jed Keymap routines.
  8.     
  9.    The main problem here is how to associate a sequence of characters to a
  10.    given function in as fast a way as possible.  In addition, I require that
  11.    the procedure be memory efficient as well as allowing the user the
  12.    flexability to redefine the keys and add new keymaps.
  13.  
  14.    To do this, I define a key map to be an array of keys.  There may be many
  15.    keymaps (global, local, etc...).    A key structure is defined */
  16.    
  17.  
  18. #ifdef HAS_MOUSE
  19. typedef struct
  20. {
  21.    int x, y;                   /* row column of mouse event */
  22.    int time;                   /* time since last event */
  23.    int button;                   /* button that triggered event */
  24.    int state;                   /* button info BEFORE event */
  25.    int type;                   /* type of event.  1 is press 0 release */
  26. } JMouse_Type;
  27.  
  28. extern JMouse_Type JMouse;
  29. #endif
  30.  
  31.  
  32. extern SLKeyMap_List_Type *Global_Map, *Mini_Map;
  33.  
  34. extern void init_keymaps(void);
  35. extern int digit_arg(void);
  36. extern void do_jed(void);
  37. extern void jed(void);
  38. extern int do_key(void);
  39. extern int kbd_quit(void);
  40. extern VOID *Last_Key_Function;
  41. extern int *Repeat_Factor;
  42. extern char *find_key(int *);
  43. extern char *what_keymap(void);
  44. extern int which_key(char *);
  45. extern void use_keymap(char *);
  46. extern void set_abort_char(int *);
  47. extern int next_function_list(char *);
  48. extern int open_function_list(char *);
  49.  
  50. extern char *Read_This_Character;      /* alternate keyboard buffer */
  51. extern void add_to_completion(char *);
  52. extern int is_internal(char *);
  53. extern void dump_bindings (char *);
  54.  
  55. extern void create_keymap (char *);
  56. extern char Key_Buffer[13];
  57. extern char Jed_Key_Buffer[13];
  58. extern char *Key_Bufferp;
  59. extern int beep (void);
  60. #endif
  61.  
  62.