From a9b440a2e4da168325378e08c0ea0141547c5c81 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 14 Jul 2009 03:28:22 +0000 Subject: Added controls for enabling multiple selection and multiple selection typing. Renamed multiline options to reflect use on multiple selections. Using std::vector for selections. --- include/Scintilla.h | 10 ++++++---- include/Scintilla.iface | 22 ++++++++++++++-------- 2 files changed, 20 insertions(+), 12 deletions(-) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index 877caa712..5986715a5 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -714,10 +714,12 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_ADDUNDOACTION 2560 #define SCI_CHARPOSITIONFROMPOINT 2561 #define SCI_CHARPOSITIONFROMPOINTCLOSE 2562 -#define SCI_SETMULTILINECARET 2563 -#define SCI_GETMULTILINECARET 2564 -#define SCI_SETMULTILINECARETBLINKS 2565 -#define SCI_GETMULTILINECARETBLINKS 2566 +#define SCI_SETMULTIPLESELECTION 2563 +#define SCI_GETMULTIPLESELECTION 2564 +#define SCI_SETADDITIONALSELECTIONTYPING 2565 +#define SCI_GETADDITIONALSELECTIONTYPING 2566 +#define SCI_SETADDITIONALCARETSBLINK 2567 +#define SCI_GETADDITIONALCARETSBLINK 2568 #define SCI_GETSELECTIONS 2570 #define SCI_CLEARSELECTIONS 2571 #define SCI_SETSELECTION 2572 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index d17de8018..a4b16beea 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -1927,17 +1927,23 @@ fun position CharPositionFromPoint=2561(int x, int y) # Return INVALID_POSITION if not close to text. fun position CharPositionFromPointClose=2562(int x, int y) -# Set whether the caret will show on multiple lines for a rectangular selection -set void SetMultiLineCaret=2563(bool multiLine,) +# Set whether multiple selections can be made +set void SetMultipleSelection=2563(bool multipleSelection,) -# Whether the caret will show on multiple lines for a rectangular selection -get bool GetMultiLineCaret=2564(,) +# Whether multiple selections can be made +get bool GetMultipleSelection=2564(,) -# Set whether the multiline caret will blink -set void SetMultiLineCaretBlinks=2565(bool multiLineBlinks,) +# Set whether typing can be performed into multiple selections +set void SetAdditionalSelectionTyping=2565(bool additionalSelectionTyping,) -# Whether the multiline caret will blink -get bool GetMultiLineCaretBlinks=2566(,) +# Whether typing can be performed into multiple selections +get bool GetAdditionalSelectionTyping=2566(,) + +# Set whether additional carets will blink +set void SetAdditionalCaretsBlink=2567(bool additionalCaretsBlink,) + +# Whether additional carets will blink +get bool GetAdditionalCaretsBlink=2568(,) # How many selections are there? get int GetSelections=2570(,) -- cgit v1.2.3