1#====================================== 2# Cool Reader 3 3# Definition file for keymaps 4#====================================== 5 6####################################### 7# key codes 8 9# Ok 10XK_Return = 0xFF0D 11# Cancel 12XK_Escape = 0xFF1B 13# < 14XK_Left = 0xFF51 15# > 16XK_Right = 0xFF53 17 18#V5 keys 19XK_Prior = 0xFF55 20XK_Next = 0xFF56 21XK_KP_Enter = 0xFF8D 22#XK_KP_Add = 0xffab 23#XK_KP_Subtract = 0xffad 24 25####################################### 26# key modifiers 27 28LONG = 1 29 30####################################### 31# command name definitions 32 33#definitions from lvdocview.h 34DCMD_BEGIN = 100 35DCMD_LINEUP = 101 36DCMD_PAGEUP = 102 37DCMD_PAGEDOWN = 103 38DCMD_LINEDOWN = 104 39DCMD_LINK_FORWARD = 105 40DCMD_LINK_BACK = 106 41DCMD_LINK_NEXT = 107 42DCMD_LINK_PREV = 108 43DCMD_LINK_GO = 109 44DCMD_END = 110 45DCMD_GO_POS = 111 46DCMD_GO_PAGE = 112 47DCMD_ZOOM_IN = 113 48DCMD_ZOOM_OUT = 114 49DCMD_TOGGLE_TEXT_FORMAT = 115 50DCMD_BOOKMARK_SAVE_N = 116 51DCMD_BOOKMARK_GO_N = 117 52DCMD_MOVE_BY_CHAPTER = 118 53DCMD_GO_SCROLL_POS = 119 54DCMD_TOGGLE_PAGE_SCROLL_VIEW = 120 55DCMD_LINK_FIRST = 121 56DCMD_ROTATE_BY = 122 57DCMD_ROTATE_SET = 123 58DCMD_SAVE_HISTORY = 124 59DCMD_SAVE_TO_CACHE = 125 60DCMD_TOGGLE_BOLD = 126 61 62#definitions from crgui.h 63MCMD_CANCEL=500 64MCMD_OK=501 65MCMD_SCROLL_FORWARD=502 66MCMD_SCROLL_BACK=503 67MCMD_SELECT_0=504 68MCMD_SELECT_1=505 69MCMD_SELECT_2=506 70MCMD_SELECT_3=507 71MCMD_SELECT_4=508 72MCMD_SELECT_5=509 73MCMD_SELECT_6=510 74MCMD_SELECT_7=511 75MCMD_SELECT_8=512 76MCMD_SELECT_9=513 77MCMD_SELECT_0_LONG=514 78MCMD_SELECT_1_LONG=515 79MCMD_SELECT_2_LONG=516 80MCMD_SELECT_3_LONG=517 81MCMD_SELECT_4_LONG=518 82MCMD_SELECT_5_LONG=519 83MCMD_SELECT_6_LONG=520 84MCMD_SELECT_7_LONG=521 85MCMD_SELECT_8_LONG=522 86MCMD_SELECT_9_LONG=523 87MCMD_SCROLL_FORWARD_LONG=524 88MCMD_SCROLL_BACK_LONG=525 89MCMD_CLEAR=526 90 91#use this command to pass key to parent window/app 92GCMD_PASS_TO_PARENT=550 93 94#definitions from mainwnd.h 95MCMD_QUIT = 201 96MCMD_MAIN_MENU = 202 97MCMD_GO_PAGE = 203 98#MCMD_GO_PAGE_APPLY = 204 99MCMD_SETTINGS = 205 100#MCMD_SETTINGS_APPLY = 206 101MCMD_SETTINGS_FONTSIZE = 207 102MCMD_SETTINGS_ORIENTATION = 208 103MCMD_GO_LINK = 209 104#MCMD_GO_LINK_APPLY = 210 105MCMD_LONG_FORWARD = 211 106MCMD_LONG_BACK = 212 107MCMD_DICT = 213 108MCMD_BOOKMARK_LIST = 214 109MCMD_RECENT_BOOK_LIST = 215 110#MCMD_OPEN_RECENT_BOOK = 216 111MCMD_ABOUT = 217 112MCMD_CITE = 218 113MCMD_SEARCH = 219 114MCMD_SEARCH_FINDFIRST = 220 115MCMD_DICT_VKEYBOARD = 221 116MCMD_DICT_FIND = 222 117MCMD_KBD_NEXTLAYOUT = 223 118MCMD_KBD_PREVLAYOUT = 224 119MCMD_HELP = 225 120MCMD_HELP_KEYS = 226 121MCMD_SWITCH_TO_RECENT_BOOK = 227 122MCMD_NEXT_MODE = 228 123MCMD_PREV_MODE = 229 124MCMD_BOOKMARK_LIST_GO_MODE = 230 125MCMD_GO_PERCENT = 231 126#MCMD_GO_PERCENT_APPLY = 232 127 128 129 130# txtselector.h 131CMD_SEL_MIDDLE_WORD = 4500 132CMD_SEL_MIDDLE_SENTENCE = 4501 133CMD_SEL_MIDDLE_PARA = 4502 134CMD_SEL_MIDDLE_INTERVAL = 4503 135CMD_SEL_CUR_MODE_TOGGLE = 4504 136CMD_SEL_CUR_MODE_START = 4505 137CMD_SEL_CUR_MODE_END = 4506 138CMD_SEL_CUR_MODE_ALL = 4507 139CMD_SEL_CUR_INTERVAL_TOGGLE = 4508 140CMD_SEL_CUR_INTERVAL_WORD = 4509 141CMD_SEL_CUR_INTERVAL_SENTENCE = 4510 142CMD_SEL_CUR_INTERVAL_PARA = 4511 143CMD_SEL_START_FWD_BY_WORD = 4512 144CMD_SEL_START_FWD_BY_SENTENCE = 4513 145CMD_SEL_START_FWD_BY_PARA = 4514 146CMD_SEL_START_FWD_BY_INTERVAL = 4515 147CMD_SEL_START_BACK_BY_WORD = 4516 148CMD_SEL_START_BACK_BY_SENTENCE = 4517 149CMD_SEL_START_BACK_BY_PARA = 4518 150CMD_SEL_START_BACK_BY_INTERVAL = 4519 151CMD_SEL_END_FWD_BY_WORD = 4520 152CMD_SEL_END_FWD_BY_SENTENCE = 4521 153CMD_SEL_END_FWD_BY_PARA = 4522 154CMD_SEL_END_FWD_BY_INTERVAL = 4523 155CMD_SEL_END_BACK_BY_WORD = 4524 156CMD_SEL_END_BACK_BY_SENTENCE = 4525 157CMD_SEL_END_BACK_BY_PARA = 4526 158CMD_SEL_END_BACK_BY_INTERVAL = 4527 159CMD_SEL_ALL_FWD_BY_WORD = 4528 160CMD_SEL_ALL_FWD_BY_SENTENCE = 4529 161CMD_SEL_ALL_FWD_BY_PARA = 4530 162CMD_SEL_ALL_FWD_BY_INTERVAL = 4531 163CMD_SEL_ALL_BACK_BY_WORD = 4532 164CMD_SEL_ALL_BACK_BY_SENTENCE = 4533 165CMD_SEL_ALL_BACK_BY_PARA = 4534 166CMD_SEL_ALL_BACK_BY_INTERVAL = 4535 167CMD_SEL_CUR_FWD_BY_WORD = 4536 168CMD_SEL_CUR_FWD_BY_SENTENCE = 4537 169CMD_SEL_CUR_FWD_BY_PARA = 4538 170CMD_SEL_CUR_FWD_BY_INTERVAL = 4539 171CMD_SEL_CUR_BACK_BY_WORD = 4540 172CMD_SEL_CUR_BACK_BY_SENTENCE = 4541 173CMD_SEL_CUR_BACK_BY_PARA = 4542 174CMD_SEL_CUR_BACK_BY_INTERVAL = 4543 175 176