public NeedShownEventArgs(NativeScintillaEventArgs nsea, SciLexerBase sci)
 {
     _Position = nsea.SCNotification.position;
     _Length = nsea.SCNotification.length;
     _FirstLine = sci.LineFromPosition(_Position);
     _LastLine = sci.LineFromPosition(_Position + _Length - 1);
 }
 public UserListSelectionEventArgs(NativeScintillaEventArgs nsea, Encoding encoding)
 {
     _ListType = nsea.SCNotification.listType;
     _Text = Utilities.IntPtrToString(encoding, nsea.SCNotification.text, nsea.SCNotification.length);
     // _Text = Utilities.ObtenerTextoMemoriaDll(nsea.SCNotification.text, encoding);
     _Position = nsea.SCNotification.position;
 }
예제 #3
0
 public ModifiedEventArgs(NativeScintillaEventArgs nsea, Encoding enc)
 {
     _ModificationType = (ScintillaCsharp.Base.ModificationType)nsea.SCNotification.modificationType;
     _Position = nsea.SCNotification.position;
     _Length = nsea.SCNotification.length;
     _LinesAdded = nsea.SCNotification.linesAdded;
     // _Text = Utilities.ObtenerTextoMemoriaDll(nsea.SCNotification.text, enc);
     _Text = Utilities.IntPtrToString(enc, nsea.SCNotification.text, _Length);
     _Line = nsea.SCNotification.line;
     _FoldLevelNow = nsea.SCNotification.foldLevelNow;
     _FoldLevelPrev = nsea.SCNotification.foldLevelPrev;
 }
예제 #4
0
        private void OnStyleNeeded(NativeScintillaEventArgs nsea)
        {
            if (StyleNeeded != null)
            {
                int startPos = GetEndStyled();
                int lineNumber = LineFromPosition(startPos);
                startPos = PositionFromLine(lineNumber);

                StyleNeeded(this,
                    new StyleNeededEventArgs(startPos,
                        nsea.SCNotification.position,
                        this));
            }
        }
예제 #5
0
 private void OnSetFocus(NativeScintillaEventArgs nsea)
 {
     // TODO: Implement OnSetFocus
 }
예제 #6
0
 private void OnDoubleClick(NativeScintillaEventArgs nsea)
 {
     if (DoubleClick != null)
         DoubleClick(this, new EventArgs());
 }
 public MarginClickEventArgs(NativeScintillaEventArgs nsea)
 {
     _Modifiers = (CtrlKeys)nsea.SCNotification.modifiers;
     _Position = nsea.SCNotification.position;
     _Margin = nsea.SCNotification.margin;
 }
예제 #8
0
 private void OnDwellStart(NativeScintillaEventArgs nsea)
 {
     if (DwellSart != null)
         DwellSart(this, new DwellEventArgs(nsea));
 }
예제 #9
0
 private void ReflectNotify(ref Message m)
 {
     SCNotification scn = (SCNotification)Marshal.PtrToStructure(m.LParam, typeof(SCNotification));
     NativeScintillaEventArgs nsea = new NativeScintillaEventArgs(m, scn);
     switch (scn.nmhdr.code)
     {
         case Sci.SCN_STYLENEEDED:
             OnStyleNeeded(nsea);
             break;
         case Sci.SCN_CHARADDED:
             OnCharAdded(nsea);
             break;
         case Sci.SCN_SAVEPOINTREACHED:
             OnSavePointReached(nsea);
             break;
         case Sci.SCN_SAVEPOINTLEFT:
             OnSavePointLeft(nsea);
             break;
         case Sci.SCN_MODIFYATTEMPTRO:
             OnModifyAttemptRO(nsea);
             break;
         case Sci.SCN_KEY:
             OnKey(nsea);
             break;
         case Sci.SCN_DOUBLECLICK:
             OnDoubleClick(nsea);
             break;
         case Sci.SCN_UPDATEUI:
             OnUpdateUI(nsea);
             break;
         case Sci.SCN_MODIFIED:
             OnModified(nsea);
             break;
         case Sci.SCN_MACRORECORD:
             OnMacroRecord(nsea);
             break;
         case Sci.SCN_MARGINCLICK:
             OnMarginClick(nsea);
             break;
         case Sci.SCN_NEEDSHOWN:
             OnNeedShown(nsea);
             break;
         case Sci.SCN_PAINTED:
             OnPainted(nsea);
             break;
         case Sci.SCN_USERLISTSELECTION:
             OnUserListSelection(nsea);
             break;
         case Sci.SCN_URIDROPPED:
             OnUriDropped(nsea);
             break;
         case Sci.SCN_DWELLSTART:
             OnDwellStart(nsea);
             break;
         case Sci.SCN_DWELLEND:
             OnDwellEnd(nsea);
             break;
         case Sci.SCN_ZOOM:
             OnZoom(nsea);
             break;
         case Sci.SCN_HOTSPOTCLICK:
             OnHotSpotClick(nsea);
             break;
         case Sci.SCN_HOTSPOTDOUBLECLICK:
             OnHotSpotDblClick(nsea);
             break;
         case Sci.SCN_HOTSPOTRELEASECLICK:
             OnHotSpotReleaseClick(nsea);
             break;
         case Sci.SCN_INDICATORCLICK:
             OnIndicatorClick(nsea);
             break;
         case Sci.SCN_INDICATORRELEASE:
             OnIndicatorRelease(nsea);
             break;
         case Sci.SCN_CALLTIPCLICK:
             OnCalltipClick(nsea);
             break;
         case Sci.SCN_AUTOCSELECTION:
             OnAutoCompleteSelection(nsea);
             break;
         case Sci.SCN_AUTOCCANCELLED:
             OnAutoCompleteCancelled(nsea);
             break;
         case Sci.SCN_AUTOCCHARDELETED:
             OnAutoCompleteCharDeleted(nsea);
             break;
     }
 }
예제 #10
0
 private void OnUserListSelection(NativeScintillaEventArgs nsea)
 {
     if (UserListSelection != null)
         UserListSelection(this,
             new UserListSelectionEventArgs(nsea, _encoding));
 }
예제 #11
0
 private void OnModified(NativeScintillaEventArgs nsea)
 {
     if (Modified != null)
         Modified(this, new ModifiedEventArgs(nsea, _encoding));
 }
예제 #12
0
 private void OnMarginClick(NativeScintillaEventArgs nsea)
 {
     if (MarginClick != null)
         MarginClick(this, new MarginClickEventArgs(nsea));
 }
예제 #13
0
 private void OnMacroRecord(NativeScintillaEventArgs nsea)
 {
     if (MacroRecord != null)
         MacroRecord(this, new EventArgs());
 }
예제 #14
0
 private void OnKey(NativeScintillaEventArgs nsea)
 {
     // TODO: Implement OnKey.
     // WINDOWS-en ez du notifikazio hau eragiten scintilla-k
     // honegatik ez det inplementatu
 }
예제 #15
0
 private void OnIndicatorRelease(NativeScintillaEventArgs nsea)
 {
     if (IndicatorRelease != null)
         IndicatorRelease(this, new IndicatorEventArgs(nsea));
 }
예제 #16
0
 private void OnIndicatorClick(NativeScintillaEventArgs nsea)
 {
     if (IndicatorClick != null)
         IndicatorClick(this, new IndicatorEventArgs(nsea));
 }
예제 #17
0
 private void OnHotSpotReleaseClick(NativeScintillaEventArgs nsea)
 {
     if (HotSpotReleaseClick != null)
         HotSpotReleaseClick(this, new HotSpotEventArgs(nsea));
 }
예제 #18
0
 private void OnUpdateUI(NativeScintillaEventArgs nsea)
 {
     if (UpdateUI != null)
     {
         UpdateUI(this, new UpdateUIEventArgs((UpdateUIType)nsea.SCNotification.updated));
     }
 }
예제 #19
0
 private void OnUriDropped(NativeScintillaEventArgs nsea)
 {
     // Inplementatu gabe. Windows-en ez omen da gertatzen.
 }
예제 #20
0
 private void OnModifyAttemptRO(NativeScintillaEventArgs nsea)
 {
     if (ModifyAttemptRO != null)
         ModifyAttemptRO(this, new EventArgs());
 }
예제 #21
0
 private void OnZoom(NativeScintillaEventArgs nsea)
 {
     if (Zoom != null)
         Zoom(this, new EventArgs());
 }
예제 #22
0
 public IndicatorEventArgs(NativeScintillaEventArgs nsea)
 {
     _Modifiers = (CtrlKeys)nsea.SCNotification.modifiers;
     _Position = nsea.SCNotification.position;
 }
예제 #23
0
 private void OnNeedShown(NativeScintillaEventArgs nsea)
 {
     if (NeedShown != null)
         NeedShown(this, new NeedShownEventArgs(nsea, this));
 }
예제 #24
0
 private void OnDwellEnd(NativeScintillaEventArgs nsea)
 {
     if (DwellEnd != null)
         DwellEnd(this, new DwellEventArgs(nsea));
 }
예제 #25
0
 public CallTipEventArgs(NativeScintillaEventArgs nsea)
 {
     _Position = (CallTipPosition)nsea.SCNotification.position;
 }
예제 #26
0
 private void OnPainted(NativeScintillaEventArgs nsea)
 {
     if (Painted != null)
         Painted(this, new EventArgs());
 }
예제 #27
0
 private void OnSavePointLeft(NativeScintillaEventArgs nsea)
 {
     if (SavePointLeft != null)
         SavePointLeft(this, new EventArgs());
 }
예제 #28
0
 private void OnSavePointReached(NativeScintillaEventArgs nsea)
 {
     if (SavePointReached != null)
         SavePointReached(this, new EventArgs());
 }
예제 #29
0
 public DwellEventArgs(NativeScintillaEventArgs nsea)
 {
     _Position = nsea.SCNotification.position;
     _X = nsea.SCNotification.x;
     _Y = nsea.SCNotification.y;
 }
예제 #30
0
 private void OnCharAdded(NativeScintillaEventArgs nsea)
 {
     if (CharAdded != null)
         CharAdded(this,
             new CharAddedEventArgs(nsea.SCNotification.ch));
 }