/[qemacs]/qemacs/qe.h
ViewVC logotype

Diff of /qemacs/qe.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by chqrlie, Mon May 9 01:29:34 2005 UTC revision 1.14 by chqrlie, Mon May 9 02:17:47 2005 UTC
# Line 92  int ustristart(const unsigned int *str, Line 92  int ustristart(const unsigned int *str,
92  void css_strtolower(char *buf, int buf_size);  void css_strtolower(char *buf, int buf_size);
93    
94  void get_str(const char **pp, char *buf, int buf_size, const char *stop);  void get_str(const char **pp, char *buf, int buf_size, const char *stop);
95    int compose_keys(int *keys, int *nb_keys);
96  int strtokey(const char **pp);  int strtokey(const char **pp);
97    int strtokeys(const char *keystr, unsigned int *keys, int max_keys);
98  void keytostr(char *buf, int buf_size, int key);  void keytostr(char *buf, int buf_size, int key);
99  int css_define_color(const char *name, const char *value);  int css_define_color(const char *name, const char *value);
100  int css_get_color(int *color_ptr, const char *p);  int css_get_color(int *color_ptr, const char *p);
# Line 209  typedef struct QECharset { Line 211  typedef struct QECharset {
211      struct QECharset *next;      struct QECharset *next;
212  } QECharset;  } QECharset;
213    
 extern QECharset charset_utf8, charset_8859_1; /* predefined charsets */  
214  extern QECharset *first_charset;  extern QECharset *first_charset;
215    extern QECharset charset_utf8, charset_8859_1; /* predefined charsets */
216    extern QECharset charset_8859_2;
217    extern QECharset charset_cp1125;
218    extern QECharset charset_cp737;
219    extern QECharset charset_koi8_r;
220    extern QECharset charset_8859_4;
221    extern QECharset charset_cp1250;
222    extern QECharset charset_cp850;
223    extern QECharset charset_koi8_u;
224    extern QECharset charset_viscii;
225    extern QECharset charset_8859_13;
226    extern QECharset charset_8859_5;
227    extern QECharset charset_cp1251;
228    extern QECharset charset_cp852;
229    extern QECharset charset_mac_lat2;
230    extern QECharset charset_8859_15;
231    extern QECharset charset_8859_7;
232    extern QECharset charset_cp1257;
233    extern QECharset charset_cp866;
234    extern QECharset charset_macroman;
235    extern QECharset charset_8859_16;
236    extern QECharset charset_8859_9;
237    extern QECharset charset_cp437;
238    extern QECharset charset_kamen;
239    extern QECharset charset_tcvn5712;
240    
241  typedef struct CharsetDecodeState {  typedef struct CharsetDecodeState {
242      /* 256 ushort table for hyper fast decoding */      /* 256 ushort table for hyper fast decoding */
# Line 286  enum QEEventType { Line 312  enum QEEventType {
312      QE_SELECTION_CLEAR_EVENT, /* request selection clear (X11 type selection) */      QE_SELECTION_CLEAR_EVENT, /* request selection clear (X11 type selection) */
313  };  };
314    
315  #define KEY_META(c) ((c) | 0xe000)  #define KEY_CTRL(c)     ((c) & 0x001f)
316  #define KEY_ESC1(c) ((c) | 0xe100)  #define KEY_META(c)     ((c) | 0xe000)
317  #define KEY_CTRLX(c) ((c) | 0xe200)  #define KEY_ESC1(c)     ((c) | 0xe100)
318    #define KEY_CTRLX(c)    ((c) | 0xe200)
319  #define KEY_CTRLXRET(c) ((c) | 0xe300)  #define KEY_CTRLXRET(c) ((c) | 0xe300)
320  #define KEY_CTRLH(c) ((c) | 0xe500)  #define KEY_CTRLH(c)    ((c) | 0xe500)
321  #define KEY_CTRL(c) ((c) & 0x1f)  #define KEY_SPECIAL(c)  (((c) >= 0xe000 && (c) < 0xf000) || ((c) >= 0 && (c) < 32))
322  #define KEY_UP    KEY_ESC1('A')  
323  #define KEY_DOWN  KEY_ESC1('B')  #define KEY_NONE        0xffff
324  #define KEY_RIGHT KEY_ESC1('C')  #define KEY_TAB         KEY_CTRL('i')
325  #define KEY_LEFT  KEY_ESC1('D')  #define KEY_RET         KEY_CTRL('m')
326  #define KEY_CTRL_UP    KEY_ESC1('a')  #define KEY_REFRESH     KEY_CTRL('l')
327  #define KEY_CTRL_DOWN  KEY_ESC1('b')  #define KEY_ESC         KEY_CTRL('[')
328  #define KEY_CTRL_RIGHT KEY_ESC1('c')  #define KEY_SPC         0x0020
329  #define KEY_CTRL_LEFT  KEY_ESC1('d')  #define KEY_DEL         127             // kbs
330  #define KEY_CTRL_HOME  0xe402  #define KEY_BS          KEY_CTRL('h')   // kbs
331  #define KEY_CTRL_END   0xe403  
332  #define KEY_TAB        KEY_CTRL('i')  #define KEY_DEFAULT     0xe401 /* to handle all non special keys */
333  #define KEY_SHIFT_TAB  0xe404  #define KEY_UP          KEY_ESC1('A')   // kcuu1
334  #define KEY_F1         KEY_ESC1(11)  #define KEY_DOWN        KEY_ESC1('B')   // kcud1
335  #define KEY_F2         KEY_ESC1(12)  #define KEY_RIGHT       KEY_ESC1('C')   // kcuf1
336  #define KEY_F3         KEY_ESC1(13)  #define KEY_LEFT        KEY_ESC1('D')   // kcub1
337  #define KEY_F4         KEY_ESC1(14)  #define KEY_CTRL_UP     KEY_ESC1('a')
338  #define KEY_F5         KEY_ESC1(15)  #define KEY_CTRL_DOWN   KEY_ESC1('b')
339  #define KEY_F6         KEY_ESC1(16)  #define KEY_CTRL_RIGHT  KEY_ESC1('c')
340  #define KEY_F7         KEY_ESC1(17)  #define KEY_CTRL_LEFT   KEY_ESC1('d')
341  #define KEY_F8         KEY_ESC1(18)  #define KEY_CTRL_END    KEY_ESC1('f')
342  #define KEY_F9         KEY_ESC1(19)  #define KEY_CTRL_HOME   KEY_ESC1('h')
343  #define KEY_F10        KEY_ESC1(20)  #define KEY_CTRL_PAGEUP KEY_ESC1('i')
344  #define KEY_F11        KEY_ESC1(21)  #define KEY_CTRL_PAGEDOWN KEY_ESC1('j')
345  #define KEY_F12        KEY_ESC1(22)  #define KEY_SHIFT_TAB   KEY_ESC1('Z')   // kcbt
346  #define KEY_BACKSPACE 127  #define KEY_HOME        KEY_ESC1(1)     // khome
347  #define KEY_INSERT     KEY_ESC1(2)  #define KEY_INSERT      KEY_ESC1(2)     // kich1
348  #define KEY_DELETE     KEY_ESC1(3)  #define KEY_DELETE      KEY_ESC1(3)     // kdch1
349  #define KEY_PAGEUP     KEY_ESC1(5)  #define KEY_END         KEY_ESC1(4)     // kend
350  #define KEY_PAGEDOWN   KEY_ESC1(6)  #define KEY_PAGEUP      KEY_ESC1(5)     // kpp
351  #define KEY_HOME       KEY_ESC1(7)  #define KEY_PAGEDOWN    KEY_ESC1(6)     // knp
352  #define KEY_END        KEY_ESC1(8)  #define KEY_F1          KEY_ESC1(11)
353  #define KEY_REFRESH    KEY_CTRL('l')  #define KEY_F2          KEY_ESC1(12)
354  #define KEY_RET        0x000d  #define KEY_F3          KEY_ESC1(13)
355  #define KEY_ESC        0x001b  #define KEY_F4          KEY_ESC1(14)
356  #define KEY_SPC        0x0020  #define KEY_F5          KEY_ESC1(15)
357  #define KEY_NONE       0xffff  #define KEY_F6          KEY_ESC1(17)
358  #define KEY_DEFAULT    0xe401 /* to handle all non special keys */  #define KEY_F7          KEY_ESC1(18)
359  #define KEY_SPECIAL(c) (((c) >= 0xe000 && (c) < 0xf000) || ((c) >= 0 && (c) < 32))  #define KEY_F8          KEY_ESC1(19)
360    #define KEY_F9          KEY_ESC1(20)
361    #define KEY_F10         KEY_ESC1(21)
362    #define KEY_F11         KEY_ESC1(23)
363    #define KEY_F12         KEY_ESC1(24)
364    #define KEY_F13         KEY_ESC1(25)
365    #define KEY_F14         KEY_ESC1(26)
366    #define KEY_F15         KEY_ESC1(28)
367    #define KEY_F16         KEY_ESC1(29)
368    #define KEY_F17         KEY_ESC1(31)
369    #define KEY_F18         KEY_ESC1(32)
370    #define KEY_F19         KEY_ESC1(33)
371    #define KEY_F20         KEY_ESC1(34)
372    
373  typedef struct QEKeyEvent {  typedef struct QEKeyEvent {
374      enum QEEventType type;      enum QEEventType type;
# Line 698  typedef struct EditState { Line 737  typedef struct EditState {
737                   produce the display */                   produce the display */
738      int display_invalid; /* true if the display was invalidated. Full      int display_invalid; /* true if the display was invalidated. Full
739                              redraw should be done */                              redraw should be done */
740        int borders_invalid; /* true if window borders should be redrawn */
741      int show_selection;  /* if true, the selection is displayed */      int show_selection;  /* if true, the selection is displayed */
742      /* display area info */      /* display area info */
743      int width, height;      int width, height;
# Line 838  typedef struct QEmacsState { Line 878  typedef struct QEmacsState {
878      int separator_width;      int separator_width;
879      /* full screen state */      /* full screen state */
880      int hide_status; /* true if status should be hidden */      int hide_status; /* true if status should be hidden */
881        int complete_refresh;
882      int is_full_screen;      int is_full_screen;
883      /* commands */      /* commands */
884        int flag_split_window_change_focus;
885      void *last_cmd_func; /* last executed command function call */      void *last_cmd_func; /* last executed command function call */
886      /* keyboard macros */      /* keyboard macros */
887      int defining_macro;      int defining_macro;
# Line 1082  void do_find_window(EditState *s, int ke Line 1124  void do_find_window(EditState *s, int ke
1124    
1125  /* window handling */  /* window handling */
1126  void edit_close(EditState *s);  void edit_close(EditState *s);
1127    void edit_detach(EditState *s);
1128    void edit_append(EditState *s, EditState *e);
1129  EditState *edit_new(EditBuffer *b,  EditState *edit_new(EditBuffer *b,
1130                      int x1, int y1, int width, int height, int flags);                      int x1, int y1, int width, int height, int flags);
1131  void do_refresh(EditState *s);  void do_refresh(EditState *s);
# Line 1106  void do_char(EditState *s, int key); Line 1150  void do_char(EditState *s, int key);
1150  void do_switch_to_buffer(EditState *s, const char *bufname);;  void do_switch_to_buffer(EditState *s, const char *bufname);;
1151  void do_set_mode(EditState *s, ModeDef *m, ModeSavedData *saved_data);  void do_set_mode(EditState *s, ModeDef *m, ModeSavedData *saved_data);
1152  void text_move_left_right_visual(EditState *s, int dir);  void text_move_left_right_visual(EditState *s, int dir);
1153    void text_move_word_left_right(EditState *s, int dir);
1154  void text_move_up_down(EditState *s, int dir);  void text_move_up_down(EditState *s, int dir);
1155  void text_scroll_up_down(EditState *s, int dir);  void text_scroll_up_down(EditState *s, int dir);
1156  void text_write_char(EditState *s, int key);  void text_write_char(EditState *s, int key);

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26