aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-05-12 00:30:55 +0000
committernyamatongwe <devnull@localhost>2007-05-12 00:30:55 +0000
commit5230a168e06e3ee7caf733d64d9854b29d7d984c (patch)
tree809de4c5021ce01c052ac4978fcabb21210adb49 /src/Editor.h
parent17dd3f3912a55aa2c2b940cd641e1601f59f1fde (diff)
downloadscintilla-mirror-5230a168e06e3ee7caf733d64d9854b29d7d984c.tar.gz
Drag operation does not start until mouse has been dragged more than
a threshold distance. Using platform threshold when possible. Moved some common dragging code on Windows into EffectFromState.
Diffstat (limited to 'src/Editor.h')
-rw-r--r--src/Editor.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Editor.h b/src/Editor.h
index 04bf21958..ef061e46f 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -246,7 +246,7 @@ protected: // ScintillaBase subclass needs access to much of Editor
bool dwelling;
enum { selChar, selWord, selLine } selectionType;
Point ptMouseLast;
- bool inDragDrop;
+ enum { ddNone, ddInitial, ddDragging } inDragDrop;
bool dropWentOutside;
int posDrag;
int posDrop;
@@ -415,7 +415,7 @@ protected: // ScintillaBase subclass needs access to much of Editor
virtual void AddCharUTF(char *s, unsigned int len, bool treatAsDBCS=false);
void ClearSelection();
void ClearAll();
- void ClearDocumentStyle();
+ void ClearDocumentStyle();
void Cut();
void PasteRectangular(int pos, const char *ptr, int len);
virtual void Copy() = 0;
@@ -489,6 +489,7 @@ protected: // ScintillaBase subclass needs access to much of Editor
void CopyText(int length, const char *text);
void SetDragPosition(int newPos);
virtual void DisplayCursor(Window::Cursor c);
+ virtual bool DragThreshold(Point ptStart, Point ptNow);
virtual void StartDrag();
void DropAt(int position, const char *value, bool moving, bool rectangular);
/** PositionInSelection returns 0 if position in selection, -1 if position before selection, and 1 if after.