コード例 #1
0
 public NeedShownEventArgs(NativeScintillaEventArgs nsea, SciLexerBase sci)
 {
     _Position = nsea.SCNotification.position;
     _Length = nsea.SCNotification.length;
     _FirstLine = sci.LineFromPosition(_Position);
     _LastLine = sci.LineFromPosition(_Position + _Length - 1);
 }
コード例 #2
0
 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());
 }
コード例 #7
0
 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));
 }