aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-11-03 14:34:21 +1100
committernyamatongwe <nyamatongwe@gmail.com>2013-11-03 14:34:21 +1100
commitedabc90ae2ee00c465d9326027e82c293900a864 (patch)
tree649db40f260d2d7a7977d4b7507c321cdf70b941 /src/Editor.h
parentad86456bdec4429bee3d198baf4ec35cf3b50ae4 (diff)
downloadscintilla-mirror-edabc90ae2ee00c465d9326027e82c293900a864.tar.gz
Report control key as SCI_META for mouse down events for GTK+ on OS X.
Also enables more flexibility with modifier keys.
Diffstat (limited to 'src/Editor.h')
-rw-r--r--src/Editor.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Editor.h b/src/Editor.h
index 20877b29e..388053777 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -488,6 +488,7 @@ protected: // ScintillaBase subclass needs access to much of Editor
void DelCharBack(bool allowLineStartDeletion);
virtual void ClaimSelection() = 0;
+ static int ModifierFlags(bool shift, bool ctrl, bool alt, bool meta=false);
virtual void NotifyChange() = 0;
virtual void NotifyFocus(bool focus);
virtual void SetCtrlID(int identifier);
@@ -497,13 +498,19 @@ protected: // ScintillaBase subclass needs access to much of Editor
void NotifyChar(int ch);
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(int position, int modifiers);
void NotifyHotSpotClicked(int position, bool shift, bool ctrl, bool alt);
+ void NotifyHotSpotDoubleClicked(int position, int modifiers);
void NotifyHotSpotDoubleClicked(int position, bool shift, bool ctrl, bool alt);
+ void NotifyHotSpotReleaseClick(int position, int modifiers);
void NotifyHotSpotReleaseClick(int position, bool shift, bool ctrl, bool alt);
bool NotifyUpdateUI();
void NotifyPainted();
+ void NotifyIndicatorClick(bool click, int position, int modifiers);
void NotifyIndicatorClick(bool click, int position, bool shift, bool ctrl, bool alt);
+ bool NotifyMarginClick(Point pt, int modifiers);
bool NotifyMarginClick(Point pt, bool shift, bool ctrl, bool alt);
void NotifyNeedShown(int pos, int len);
void NotifyDwelling(Point pt, bool state);
@@ -566,6 +573,7 @@ protected: // ScintillaBase subclass needs access to much of Editor
void WordSelection(int pos);
void DwellEnd(bool mouseMoved);
void MouseLeave();
+ virtual void ButtonDownWithModifiers(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);