spk_priv_keyinfo.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /* spk_priv.h
  2. * review functions for the speakup screen review package.
  3. * originally written by: Kirk Reiser and Andy Berdan.
  4. *
  5. * extensively modified by David Borowski.
  6. *
  7. * Copyright (C) 1998 Kirk Reiser.
  8. * Copyright (C) 2003 David Borowski.
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  23. */
  24. #ifndef _SPEAKUP_KEYINFO_H
  25. #define _SPEAKUP_KEYINFO_H
  26. #define FIRST_SYNTH_VAR RATE
  27. /* 0 is reserved for no remap */
  28. #define SPEAKUP_GOTO 0x01
  29. #define SPEECH_KILL 0x02
  30. #define SPEAKUP_QUIET 0x03
  31. #define SPEAKUP_CUT 0x04
  32. #define SPEAKUP_PASTE 0x05
  33. #define SAY_FIRST_CHAR 0x06
  34. #define SAY_LAST_CHAR 0x07
  35. #define SAY_CHAR 0x08
  36. #define SAY_PREV_CHAR 0x09
  37. #define SAY_NEXT_CHAR 0x0a
  38. #define SAY_WORD 0x0b
  39. #define SAY_PREV_WORD 0x0c
  40. #define SAY_NEXT_WORD 0x0d
  41. #define SAY_LINE 0x0e
  42. #define SAY_PREV_LINE 0x0f
  43. #define SAY_NEXT_LINE 0x10
  44. #define TOP_EDGE 0x11
  45. #define BOTTOM_EDGE 0x12
  46. #define LEFT_EDGE 0x13
  47. #define RIGHT_EDGE 0x14
  48. #define SPELL_PHONETIC 0x15
  49. #define SPELL_WORD 0x16
  50. #define SAY_SCREEN 0x17
  51. #define SAY_POSITION 0x18
  52. #define SAY_ATTRIBUTES 0x19
  53. #define SPEAKUP_OFF 0x1a
  54. #define SPEAKUP_PARKED 0x1b
  55. #define SAY_LINE_INDENT 0x1c
  56. #define SAY_FROM_TOP 0x1d
  57. #define SAY_TO_BOTTOM 0x1e
  58. #define SAY_FROM_LEFT 0x1f
  59. #define SAY_TO_RIGHT 0x20
  60. #define SAY_CHAR_NUM 0x21
  61. #define EDIT_SOME 0x22
  62. #define EDIT_MOST 0x23
  63. #define SAY_PHONETIC_CHAR 0x24
  64. #define EDIT_DELIM 0x25
  65. #define EDIT_REPEAT 0x26
  66. #define EDIT_EXNUM 0x27
  67. #define SET_WIN 0x28
  68. #define CLEAR_WIN 0x29
  69. #define ENABLE_WIN 0x2a
  70. #define SAY_WIN 0x2b
  71. #define SPK_LOCK 0x2c
  72. #define SPEAKUP_HELP 0x2d
  73. #define TOGGLE_CURSORING 0x2e
  74. #define READ_ALL_DOC 0x2f
  75. #define SPKUP_MAX_FUNC 0x30 /* one greater than the last func handler */
  76. #define SPK_KEY 0x80
  77. #define FIRST_EDIT_BITS 0x22
  78. #define FIRST_SET_VAR SPELL_DELAY
  79. #define VAR_START 0x40 /* increase if adding more than 0x3f functions */
  80. /* keys for setting variables, must be ordered same as the enum for var_ids */
  81. /* with dec being even and inc being 1 greater */
  82. #define SPELL_DELAY_DEC (VAR_START+0)
  83. #define SPELL_DELAY_INC (SPELL_DELAY_DEC+1)
  84. #define PUNC_LEVEL_DEC (SPELL_DELAY_DEC+2)
  85. #define PUNC_LEVEL_INC (PUNC_LEVEL_DEC+1)
  86. #define READING_PUNC_DEC (PUNC_LEVEL_DEC+2)
  87. #define READING_PUNC_INC (READING_PUNC_DEC+1)
  88. #define ATTRIB_BLEEP_DEC (READING_PUNC_DEC+2)
  89. #define ATTRIB_BLEEP_INC (ATTRIB_BLEEP_DEC+1)
  90. #define BLEEPS_DEC (ATTRIB_BLEEP_DEC+2)
  91. #define BLEEPS_INC (BLEEPS_DEC+1)
  92. #define RATE_DEC (BLEEPS_DEC+2)
  93. #define RATE_INC (RATE_DEC+1)
  94. #define PITCH_DEC (RATE_DEC+2)
  95. #define PITCH_INC (PITCH_DEC+1)
  96. #define VOL_DEC (PITCH_DEC+2)
  97. #define VOL_INC (VOL_DEC+1)
  98. #define TONE_DEC (VOL_DEC+2)
  99. #define TONE_INC (TONE_DEC+1)
  100. #define PUNCT_DEC (TONE_DEC+2)
  101. #define PUNCT_INC (PUNCT_DEC+1)
  102. #define VOICE_DEC (PUNCT_DEC+2)
  103. #define VOICE_INC (VOICE_DEC+1)
  104. #endif