home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / mc454src.zip / mc-4.5.4.src / mc-4.5.4 / gtkedit / editcmddef.h < prev    next >
C/C++ Source or Header  |  1999-01-04  |  4KB  |  141 lines

  1. #ifndef __EDIT_CMD_DEF_H
  2. #define __EDIT_CMD_DEF_H
  3.  
  4. /*  in the distant future, keyboards will be invented with a
  5.     seperate key for each one of these commands   *sigh*      */
  6.  
  7. /* cursor movements */
  8. #define CK_No_Command         -1
  9. #define CK_BackSpace         1
  10. #define CK_Delete         2
  11. #define CK_Enter         3
  12. #define CK_Page_Up         4
  13. #define CK_Page_Down         5
  14. #define CK_Left         6
  15. #define CK_Right         7
  16. #define CK_Word_Left         8
  17. #define CK_Word_Right         9
  18. #define CK_Up             10
  19. #define CK_Down         11
  20. #define CK_Home            12
  21. #define CK_End             13
  22. #define CK_Tab             14
  23. #define CK_Undo            15
  24. #define CK_Beginning_Of_Text    16
  25. #define CK_End_Of_Text        17
  26. #define CK_Scroll_Up        18
  27. #define CK_Scroll_Down        19
  28. #define CK_Return        20
  29. #define CK_Begin_Page        21
  30. #define CK_End_Page        22
  31. #define CK_Delete_Word_Left    23
  32. #define CK_Delete_Word_Right    24
  33. #define CK_Paragraph_Up        25
  34. #define CK_Paragraph_Down    26
  35.  
  36.  
  37. /* file commands */
  38. #define CK_Save         101
  39. #define CK_Load         102
  40. #define CK_New          103
  41. #define CK_Save_As        104
  42.  
  43. /* block commands */
  44. #define CK_Mark         201
  45. #define CK_Copy         202
  46. #define CK_Move         203
  47. #define CK_Remove         204
  48. #define CK_Unmark         206
  49. #define CK_Save_Block        207
  50. #define CK_Column_Mark     208
  51.  
  52. /* search and replace */
  53. #define CK_Find            301
  54. #define CK_Find_Again        302
  55. #define CK_Replace        303
  56. #define CK_Replace_Again    304
  57.  
  58. /* misc */
  59. #define CK_Insert_File        401
  60. #define CK_Exit            402
  61. #define CK_Toggle_Insert        403
  62. #define CK_Help            404
  63. #define CK_Date            405
  64. #define CK_Refresh        406
  65. #define CK_Goto            407
  66. #define CK_Delete_Line        408
  67. #define CK_Delete_To_Line_End    409
  68. #define CK_Delete_To_Line_Begin    410
  69. #define CK_Man_Page        411
  70. #define CK_Sort            412
  71. #define CK_Mail            413
  72. #define CK_Cancel        414
  73. #define CK_Complete        415
  74. #define CK_Paragraph_Format    416
  75.  
  76. /* application control */
  77. #define CK_Save_Desktop        451
  78. #define CK_New_Window        452
  79. #define CK_Cycle        453
  80. #define CK_Menu            454
  81. #define CK_Save_And_Quit    455
  82. #define CK_Run_Another        456
  83. #define CK_Check_Save_And_Quit    457
  84. #define CK_Maximise        458
  85.  
  86. /* macro */
  87. #define CK_Begin_Record_Macro    501
  88. #define CK_End_Record_Macro    502
  89. #define CK_Delete_Macro        503
  90.  
  91. /* highlight commands */
  92. #define CK_Page_Up_Highlight         604
  93. #define CK_Page_Down_Highlight         605
  94. #define CK_Left_Highlight         606
  95. #define CK_Right_Highlight         607
  96. #define CK_Word_Left_Highlight         608
  97. #define CK_Word_Right_Highlight     609
  98. #define CK_Up_Highlight         610
  99. #define CK_Down_Highlight         611
  100. #define CK_Home_Highlight        612
  101. #define CK_End_Highlight         613
  102. #define CK_Beginning_Of_Text_Highlight    614
  103. #define CK_End_Of_Text_Highlight    615
  104. #define CK_Begin_Page_Highlight        616
  105. #define CK_End_Page_Highlight        617
  106. #define CK_Scroll_Up_Highlight        618
  107. #define CK_Scroll_Down_Highlight    619
  108. #define CK_Paragraph_Up_Highlight    620
  109. #define CK_Paragraph_Down_Highlight    621
  110.  
  111. /* X clipboard operations */
  112.  
  113. #define CK_XStore        701
  114. #define CK_XCut            702
  115. #define CK_XPaste        703
  116. #define CK_Selection_History    704
  117.  
  118. #ifdef MIDNIGHT        /* cooledit now has its own full-featured script editor and executor */
  119. /*
  120.    Process a block through a shell command: CK_Pipe_Block(i) executes shell_cmd[i].
  121.    shell_cmd[i] must process the file ~/cooledit.block and output ~/cooledit.block
  122.    which is then inserted into the text in place of the original block. shell_cmd[i] must
  123.    also produce a file homedir/cooledit.error . If this file is not empty an error will
  124.    have been assumed to have occured, and the block will not be replaced.
  125.    TODO: bring up a viewer to display the error message instead of inserting
  126.    it into the text, which is annoying.
  127.  */
  128. #define CK_Pipe_Block(i)    (1000+(i))
  129. #define SHELL_COMMANDS_i {"/.cedit/edit.indent.rc", "/.cedit/edit.spell.rc", /* and so on */ 0};
  130. #else
  131. #define CK_User_Command(i)    (1000+(i))
  132. #endif
  133.  
  134. /* execute a macro */
  135. #define CK_Macro(i)        (2000+(i))
  136. #define CK_Last_Macro        CK_Macro(0x7FFF)
  137.  
  138.  
  139. #endif
  140.  
  141.