1 #ifndef SCINTILLA_MCC
    2 #define SCINTILLA_MCC TRUE
    3 
    4 #ifdef __cplusplus
    5 extern "C" {
    6 #endif
    7 
    8 #include <Scintilla/Scintilla.h>
    9 
   10 #define SCI_NORM 0
   11 #define SCI_SHIFT SCMOD_SHIFT
   12 #define SCI_CTRL SCMOD_CTRL
   13 #define SCI_ALT SCMOD_ALT
   14 #define SCI_CSHIFT (SCI_CTRL | SCI_SHIFT)
   15 #define SCI_ASHIFT (SCI_ALT | SCI_SHIFT)
   16 
   17 /*** MUI Defines ***/
   18 
   19 #define MUIC_Scintilla	  "Scintilla.mcc"
   20 
   21 #define ScintillaObject MUI_NewObject(MUIC_Scintilla
   22 
   23 #ifndef SCINTILLA_PRIV
   24 
   25 #define MUISERIALNR_NICHOLAI 0xfecc
   26 #define TAGBASE_NICHOLAI (TAG_USER | ( MUISERIALNR_NICHOLAI << 16))
   27 #define TAGBASE_SCINTILLA (TAGBASE_NICHOLAI | 0xa000)
   28 
   29 #define MUIA_Scintilla_dummy (TAGBASE_SCINTILLA)
   30 
   31 #define MUIA_Scintilla_ActiveEditor (MUIA_Scintilla_dummy + 1) /* [.SG]  BOOL */
   32 #define MUIA_Scintilla_Notify (MUIA_Scintilla_dummy + 3) /* [..G]  BOOL */
   33 #define MUIM_Scintilla_AutoComplete (MUIA_Scintilla_dummy + 4)
   34 #define MUIM_Scintilla_CallTip (MUIA_Scintilla_dummy + 5)
   35 #define MUIM_Scintilla_AutoDoc (MUIA_Scintilla_dummy + 6)
   36 #define MUIM_Scintilla_Include (MUIA_Scintilla_dummy + 7)
   37 #define MUIM_Scintilla_Definition (MUIA_Scintilla_dummy + 8)
   38 #define MUIM_Scintilla_BindWithProjectIndex (MUIA_Scintilla_dummy + 35)
   39 #define MUIM_Scintilla_ContextMenuAdd (MUIA_Scintilla_dummy + 36)
   40 #define MUIA_Scintilla_LexerChanged (MUIA_Scintilla_dummy + 10) /* [..G]  BOOL */
   41 #define MUIA_Scintilla_ClipUnit (MUIA_Scintilla_dummy + 32) /* [.SG]  ULONG */
   42 #define MUIM_Scintilla_RexxCommand (MUIA_Scintilla_dummy + 33)
   43 #define MUIA_Scintilla_ClipStripANSI (MUIA_Scintilla_dummy + 34) /* [.SG]  BOOL */
   44 
   45 #define SCIA_ActiveEditor MUIA_Scintilla_ActiveEditor
   46 #define SCIA_Notify MUIA_Scintilla_Notify
   47 #define SCIM_AutoComplete MUIM_Scintilla_AutoComplete
   48 #define SCIM_CallTip MUIM_Scintilla_CallTip
   49 #define SCIM_AutoDoc MUIM_Scintilla_AutoDoc
   50 #define SCIM_Include MUIM_Scintilla_Include
   51 #define SCIM_Definition MUIM_Scintilla_Definition
   52 #define SCIM_BindWithProjectIndex MUIM_Scintilla_BindWithProjectIndex
   53 #define SCIA_LexerChanged MUIA_Scintilla_LexerChanged
   54 #define SCIA_ClipUnit MUIA_Scintilla_ClipUnit
   55 #define SCIM_RexxCommand MUIM_Scintilla_RexxCommand
   56 #define SCIM_ContextMenuAdd MUIM_Scintilla_ContextMenuAdd
   57 	
   58 
   59 struct MUIP_Scintilla_Command
   60 {
   61 	ULONG MethodID;
   62 	LONG iMessage;
   63 	LONG wParam;
   64 	LONG lParam;
   65 };
   66 
   67 struct MUIP_Scintilla_RexxCommand
   68 {
   69 	ULONG MethodID;
   70 	struct RexxMsg *rxmsg;
   71 	ULONG *args;
   72 	STRPTR *resultptr;
   73 };
   74 
   75 struct MUIP_Scintilla_CallTip
   76 {
   77 	ULONG MethodID;
   78 	ULONG mousepointer;
   79 };
   80 
   81 struct MUIP_Scintilla_AutoComplete
   82 {
   83 	ULONG MethodID;
   84 	ULONG autopopup;
   85 };
   86 
   87 struct MUIP_Scintilla_BindWithProjectIndex
   88 { 
   89 	ULONG MethodID;
   90 	APTR  ProjectIndex;
   91 }; 
   92 
   93 struct MUIP_Scintilla_RefreshProjectIndex
   94 {
   95 	ULONG MethodID;
   96 };
   97 
   98 struct MUIP_Scintilla_ContextMenuAdd
   99 {
  100 	ULONG MethodID;
  101 	APTR ContextMenu;
  102 	ULONG x;
  103 	ULONG y;
  104 };
  105 
  106 #endif
  107 
  108 #ifdef __cplusplus
  109 }
  110 #endif
  111 
  112 #endif /* SCINTILLA_MCC */