diff options
author | nyamatongwe <unknown> | 2009-07-06 01:15:56 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-07-06 01:15:56 +0000 |
commit | e77dc4242312ae3f0832020e2c8ce13e3fe9ca8e (patch) | |
tree | 12d2094c439cb0b1ed83f860c7987296796dbe90 /src/Editor.h | |
parent | f53369ae920abe49f59c1aa5b0a878cf444d39e1 (diff) | |
download | scintilla-mirror-e77dc4242312ae3f0832020e2c8ce13e3fe9ca8e.tar.gz |
Allow drag and drop in virtual space.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Editor.h b/src/Editor.h index 68580fdaa..687d963eb 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -175,8 +175,8 @@ protected: // ScintillaBase subclass needs access to much of Editor Point ptMouseLast; enum { ddNone, ddInitial, ddDragging } inDragDrop; bool dropWentOutside; - int posDrag; - int posDrop; + SelectionPosition posDrag; + SelectionPosition posDrop; int lastXChosen; int lineAnchor; int originalAnchorPos; @@ -278,8 +278,8 @@ protected: // ScintillaBase subclass needs access to much of Editor int CurrentPosition(); bool SelectionEmpty(); - int SelectionStart(); - int SelectionEnd(); + SelectionPosition SelectionStart(); + SelectionPosition SelectionEnd(); void SetRectangularRange(); void InvalidateSelection(SelectionRange newMain, bool invalidateWholeSelection=false); void SetSelection(SelectionPosition currentPos_, SelectionPosition anchor_); @@ -350,6 +350,7 @@ protected: // ScintillaBase subclass needs access to much of Editor void SetScrollBars(); void ChangeSize(); + int InsertSpace(int position, unsigned int spaces); void AddChar(char ch); virtual void AddCharUTF(char *s, unsigned int len, bool treatAsDBCS=false); void ClearSelection(); @@ -425,11 +426,11 @@ protected: // ScintillaBase subclass needs access to much of Editor void CopySelectionRange(SelectionText *ss, bool allowLineCopy=false); void CopyRangeToClipboard(int start, int end); void CopyText(int length, const char *text); - void SetDragPosition(int newPos); + void SetDragPosition(SelectionPosition 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); + void DropAt(SelectionPosition position, const char *value, bool moving, bool rectangular); /** PositionInSelection returns true if position in selection. */ bool PositionInSelection(int pos); bool PointInSelection(Point pt); |