diff options
author | Neil <nyamatongwe@gmail.com> | 2017-06-12 13:49:46 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-06-12 13:49:46 +1000 |
commit | c94124bb05c4386863c160bb44d5592ba4fe989e (patch) | |
tree | 5086197e32cbf91efb8edd7e87f16a7d99cfead7 /src/Editor.h | |
parent | e015bc583b10e4f3a9889c9ae296de000d1d4646 (diff) | |
download | scintilla-mirror-c94124bb05c4386863c160bb44d5592ba4fe989e.tar.gz |
Backport: Simplify mouse and keyboard handling by only retaining the 'WithModifiers" form.
All events include a set of keyboard modifier flags.
Older calls that passed individual parameters for each key were removed.
Backport of changeset 6310:af83baede430.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/Editor.h b/src/Editor.h index 69c816270..8adcff769 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -425,19 +425,13 @@ protected: // ScintillaBase subclass needs access to much of Editor void NotifySavePoint(bool isSavePoint); void NotifyModifyAttempt(); virtual void NotifyDoubleClick(Point pt, int modifiers); - virtual void NotifyDoubleClick(Point pt, bool shift, bool ctrl, bool alt); void NotifyHotSpotClicked(Sci::Position position, int modifiers); - void NotifyHotSpotClicked(Sci::Position position, bool shift, bool ctrl, bool alt); void NotifyHotSpotDoubleClicked(Sci::Position position, int modifiers); - void NotifyHotSpotDoubleClicked(Sci::Position position, bool shift, bool ctrl, bool alt); void NotifyHotSpotReleaseClick(Sci::Position position, int modifiers); - void NotifyHotSpotReleaseClick(Sci::Position position, bool shift, bool ctrl, bool alt); bool NotifyUpdateUI(); void NotifyPainted(); void NotifyIndicatorClick(bool click, Sci::Position position, int modifiers); - void NotifyIndicatorClick(bool click, Sci::Position position, bool shift, bool ctrl, bool alt); bool NotifyMarginClick(Point pt, int modifiers); - bool NotifyMarginClick(Point pt, bool shift, bool ctrl, bool alt); bool NotifyMarginRightClick(Point pt, int modifiers); void NotifyNeedShown(Sci::Position pos, Sci::Position len); void NotifyDwelling(Point pt, bool state); @@ -476,7 +470,6 @@ protected: // ScintillaBase subclass needs access to much of Editor virtual int KeyCommand(unsigned int iMessage); virtual int KeyDefault(int /* key */, int /*modifiers*/); int KeyDownWithModifiers(int key, int modifiers, bool *consumed); - int KeyDown(int key, bool shift, bool ctrl, bool alt, bool *consumed=0); void Indent(bool forwards); @@ -510,10 +503,8 @@ protected: // ScintillaBase subclass needs access to much of Editor void MouseLeave(); virtual void ButtonDownWithModifiers(Point pt, unsigned int curTime, int modifiers); virtual void RightButtonDownWithModifiers(Point pt, unsigned int curTime, int modifiers); - virtual void ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, bool alt); - void ButtonMoveWithModifiers(Point pt, int modifiers); - void ButtonMove(Point pt); - void ButtonUp(Point pt, unsigned int curTime, bool ctrl); + void ButtonMoveWithModifiers(Point pt, unsigned int curTime, int modifiers); + void ButtonUpWithModifiers(Point pt, unsigned int curTime, int modifiers); void Tick(); bool Idle(); |