Commit Graph

1080 Commits

Author SHA1 Message Date
martin
a5b0880676 SynEdit: Add ViewXYRowToTextXY / TextXYToViewXY
git-svn-id: trunk@63267 -
2020-06-02 00:37:12 +00:00
martin
ec643a2cb2 SynEdit: Clean up compiler hints
git-svn-id: trunk@63259 -
2020-05-31 14:20:57 +00:00
martin
6ad0380fb1 SynEdit: Enhanced horiz scrolling, when reaching border while typing/backspacing
git-svn-id: trunk@63216 -
2020-05-23 22:54:50 +00:00
martin
a6cca4acfe SynEdit: Changed TextPosAddLines (foldview) to AddVisibleOffsetToTextIndex (textview)
git-svn-id: trunk@63209 -
2020-05-22 14:54:22 +00:00
martin
237ac26a28 SynEdit: replaced AddFoldChangedHandler with senrLineMappingChanged
git-svn-id: trunk@63208 -
2020-05-22 14:54:20 +00:00
martin
95ff83d5f6 SynEdit: Fix DoTopViewChanged from ViewManager - Update lines on all related classes
git-svn-id: trunk@63207 -
2020-05-22 14:54:18 +00:00
martin
34099573b4 SynEdit: Change to use FTheLinesView instead of FFoldedView
git-svn-id: trunk@63200 -
2020-05-21 18:04:08 +00:00
martin
4c5edbe734 SynEdit: Refactor Notification from Lines. Cache in TextViewManager, and deal with TextBuffer changes (no more need to update in senrTextBufferChanged
git-svn-id: trunk@63197 -
2020-05-21 15:48:47 +00:00
martin
e04ce2539f SynEdit: Introduced TSynTextViewsManager
git-svn-id: trunk@63196 -
2020-05-21 15:48:44 +00:00
martin
8cd0ab8b18 SynEdit: FoldedView, renamed Lines/Count to ViewedLines/ViewedCount
git-svn-id: trunk@63188 -
2020-05-20 16:21:54 +00:00
martin
cbb6115663 SynEdit: FoldView, rename/refactor TextToViewIndex/ViewToTextIndex to be 0-based
git-svn-id: trunk@63175 -
2020-05-16 22:17:06 +00:00
martin
42226b563a IDE, SynEdit: ecPasteAsColums, paste clipboard - forcing column mode
git-svn-id: trunk@63118 -
2020-05-05 14:40:11 +00:00
martin
1bbeacb3dc SynEdit: fix tab key for persistent Block/Selection. Issue #0036917
git-svn-id: trunk@63014 -
2020-04-19 00:18:08 +00:00
marcus
51f2804834 MUI: use old internal painter for synedit caret
git-svn-id: trunk@62767 -
2020-03-13 21:19:08 +00:00
martin
dff0c471bc SynEdit: more fixes for ecMoveLineDown / testcase
git-svn-id: trunk@62590 -
2020-01-26 19:25:13 +00:00
martin
39650cf381 SynEdit, IDE: added ecMoveSelection...up/down/right/left, ecDuplicateSelection
git-svn-id: trunk@62575 -
2020-01-21 19:27:09 +00:00
martin
bbf0971c60 Fixed ecMoveLineUp/Down, ecDuplicateLine for persistent selection
git-svn-id: trunk@62573 -
2020-01-21 19:27:05 +00:00
juha
b46b72fb2b LCL: Remove deprecated function FontCanUTF8. All widgetsets returned True, including GTK(2) and QT(5). Not implementing it caused bugs.
git-svn-id: trunk@62425 -
2019-12-20 17:45:44 +00:00
martin
b84c70aa3e SynEdit: Improve move-line-up/down and duplicate-line. If selection includes the linebreak (caret on next line, x=1) then do not include the next line.
git-svn-id: trunk@62422 -
2019-12-19 18:04:20 +00:00
martin
3dc16dd61f SynEdit: Improve SetTextBetweenPoints with scamAdjust caret, if selection exists then let the selection keep the caret. Introduce scamForceAdjust to move the caret, even if it will unset the selection.
git-svn-id: trunk@62420 -
2019-12-19 18:04:17 +00:00
martin
dde5b39675 SynEdit: Add ec-commands for "move line up/down", "duplicate line", "copy/cut add to existing clipboard", "copy/cut (add) line/sel to clip"
git-svn-id: trunk@62185 -
2019-11-04 00:09:24 +00:00
martin
97e5dde402 SynEdit: add option eoNoScrollOnSelectRange, to prevent scroll on select all/paragraph/to-brace // Fix select-to-brace to scroll by default.
git-svn-id: trunk@62181 -
2019-11-03 21:44:52 +00:00
martin
cc0a2ae11b SynEdit: Keep Caret.y (and selection) at 1, even for lines.count = 0
git-svn-id: trunk@61680 -
2019-08-10 21:54:59 +00:00
martin
93d8287c3e SynEdit: Fixed crash in MarkTextAsSaved. Issue #0035635
git-svn-id: trunk@61309 -
2019-06-01 11:27:36 +00:00
martin
4075258215 SynEdit: support horizontal mouse wheel
git-svn-id: trunk@60562 -
2019-03-02 19:29:53 +00:00
martin
f3eefeade7 SynEdit: Added checks for revision 59971 #6bedb95bcd (fix selection with smLine should include folded lines - Issue #0034760) - apply only if AutoExtend is true (indicates user input key/mouse) / Setting Selection from code should not be affected.
git-svn-id: trunk@59983 -
2019-01-03 18:10:15 +00:00
martin
6bedb95bcd SynEdit: fix selection with smLine (include some selection via gutter) should include folded lines, if the "fold start" line gets selected. Issue #0034760
git-svn-id: trunk@59971 -
2019-01-02 15:02:00 +00:00
martin
f435a9dc89 SynEdit: (Win10 issue only) fix for "ghost" images of text-caret on Windows 10, in certain conditions where part of the editor is outside the physical screen.
git-svn-id: trunk@59596 -
2018-11-18 19:55:23 +00:00
martin
f7d2aeee31 SynEdit: fix showing caret, after getting focus. Issue #0034527, #0034506
If the widgetset sends the wmFocus before the parent is made visible (FVisible=true), then the caret is not made visible. A check for this is/was in VisibleChanged (kept for now, review todo), but that is not called. When the parent becomes visible UpdateShowing is called, so that is where the check now happens.

git-svn-id: trunk@59490 -
2018-11-08 10:35:49 +00:00
martin
17dd3e68b9 SynEdit: Caret Color
git-svn-id: trunk@58647 -
2018-07-28 18:01:10 +00:00
martin
0e60e21aa7 SynEdit: fix default caret painter class (set to system)
git-svn-id: trunk@58644 -
2018-07-28 16:26:32 +00:00
martin
6f9cdaefbe SynEdit: Option to have a static (none blinking) persistent caret. Issue #0033653
git-svn-id: trunk@58534 -
2018-07-15 19:49:49 +00:00
martin
55cc39a0a8 SynEdit: Option for left/right to remove selection and keep caret pos. Issue #028152
git-svn-id: trunk@58532 -
2018-07-15 17:09:43 +00:00
martin
587653ec39 SynEdit: Hiding scrollbar on Win32 via code may fail. (Maybe bug in Windows itself). Need to disable it first (by setting page width to 100%). Issue #0027072
git-svn-id: trunk@58526 -
2018-07-15 00:37:42 +00:00
martin
eeba3dff66 SynEdit: remove old IFDEF
git-svn-id: trunk@58525 -
2018-07-15 00:24:28 +00:00
ondrej
ff4b08c050 SynEdit: gutter autosize fixes
git-svn-id: trunk@58331 -
2018-06-19 13:08:59 +00:00
juha
3574bdfb6d Move debug- & other non-GUI stuff from LCLProc to LazUtilities and LazLogger in package LazUtils.
git-svn-id: trunk@58244 -
2018-06-13 13:59:07 +00:00
martin
5ab71e4e90 SynEdit: multi caret, option to prevent ecDelete from joining lines (skip delete linebreak)
git-svn-id: trunk@58193 -
2018-06-08 21:44:44 +00:00
ondrej
79aba78f15 SynEdit: remove DoubleBuffered hack because LCL fully supports it now
git-svn-id: trunk@58100 -
2018-06-03 20:51:32 +00:00
martin
ca253bd7c9 SynEdit: Fix scrollbars, if new handle is created (SynEdit shown a 2nd time). Issue #33784
git-svn-id: trunk@58022 -
2018-05-24 18:38:53 +00:00
ondrej
8356f39b7d SynEdit: remove special smart selection jumping, use the normal instead
git-svn-id: trunk@57897 -
2018-05-11 14:59:27 +00:00
ondrej
c25de54334 SynEdit: smart previous word fix bug:
BUG: abc d|ef -> abc| def
FIX: abc d|ef -> abc |def

git-svn-id: trunk@57894 -
2018-05-11 00:14:19 +00:00
ondrej
56996beaa2 SynEdit: introduce new commands for the new smart word right/left logic
git-svn-id: trunk@57876 -
2018-05-09 16:49:55 +00:00
ondrej
239d5a386c SynEdit: optimize smart prev/next word for selection
git-svn-id: trunk@57875 -
2018-05-09 15:17:24 +00:00
ondrej
4846e4ed48 SynEdit: make swbWordSmart default for editor commands
git-svn-id: trunk@57874 -
2018-05-09 14:48:42 +00:00
ondrej
e8025d5af5 SynEdit: new swbWordSmart boundary for Prev/NextWordLogicalPos
git-svn-id: trunk@57873 -
2018-05-09 14:47:21 +00:00
ondrej
8b4e1e953d synedit: set DoubleBuffered in CreateWnd and not in Loaded (Loaded is not called if creating SynEdit in runtime)
git-svn-id: trunk@57745 -
2018-04-30 09:14:23 +00:00
martin
4f4240a755 SynEdit: allow #9 in ecChar
git-svn-id: trunk@57505 -
2018-03-14 15:32:13 +00:00
martin
b49e87db2a SynEdit: (temporarily) made TSynCustomHighlighter.IdleScanRanges virtual. Issue #33185
git-svn-id: trunk@57348 -
2018-02-22 09:33:31 +00:00
ondrej
2d90a836ed synedit: set DoubleBuffered in Loaded and not in constructor
git-svn-id: trunk@57313 -
2018-02-16 14:03:40 +00:00
ondrej
1ee1b616cc synedit: ignore themes for DoubleBuffered
git-svn-id: trunk@57309 -
2018-02-16 11:56:02 +00:00
ondrej
a7f4d141f1 synedit: use GetWin32ThemedDoubleBuffered on win32 and in run-time only
git-svn-id: trunk@57308 -
2018-02-16 11:46:45 +00:00
ondrej
aa62dd7c3e synedit: disable DoubleBuffered
git-svn-id: trunk@57270 -
2018-02-07 17:04:01 +00:00
martin
a6a886a8a9 SynEdit: fix ecDeleteEOL with multi codepoint utf8. Issue #0032838
git-svn-id: trunk@57078 -
2018-01-14 00:18:44 +00:00
juha
fdcf607d17 SynEdit: Simplify TSynEditUndoItem.IsEqual.
git-svn-id: trunk@56820 -
2017-12-22 23:43:23 +00:00
martin
5693bb777a SynEdit: FIxed "caret at ident" for end of word
git-svn-id: trunk@56696 -
2017-12-11 20:28:23 +00:00
juha
ed82fc492a Revert incorrect r56398 #5071092ea6 "SynEdit: Enable operations for an identifier also when caret is at its end."
git-svn-id: trunk@56695 -
2017-12-11 20:23:43 +00:00
juha
3ed79743c8 Remove the wrapper functions from LazUtils.FileUtil, Lcl.LclProcs and Codetools.FileProcs completely. Simplify code.
git-svn-id: trunk@56693 -
2017-12-11 19:44:37 +00:00
juha
5071092ea6 SynEdit: Enable operations for an identifier also when caret is at its end. Patch from Dmitry D. Chernov.
git-svn-id: trunk@56398 -
2017-11-13 19:19:57 +00:00
ondrej
3f21545b7d synedit: high-DPI: implement DoAutoAdjustLayout. issue #31753
git-svn-id: trunk@55675 -
2017-08-17 10:39:39 +00:00
martin
61eed71c13 SynEdit, fixes to IFDEFED debugln
git-svn-id: trunk@53132 -
2016-10-17 02:22:41 +00:00
martin
878549d9a9 SynEdit: generic method for plugins to override mouse cursor
git-svn-id: trunk@53024 -
2016-09-24 00:08:14 +00:00
martin
2cebdc3bf8 SynEdit: respect user set cursor
git-svn-id: trunk@53022 -
2016-09-23 22:45:58 +00:00
martin
e0b8bceb8e SynEdit: added BeforeKeyUpHandler. Issue #0030600
git-svn-id: trunk@52985 -
2016-09-17 23:05:44 +00:00
martin
1b2aca6220 SynEdit: fixed calling Markup.TextChange with 1 based line num. Issue #0030605
git-svn-id: trunk@52982 -
2016-09-16 18:25:11 +00:00
martin
19f68221e5 SynEdit: make OnMouseLink available in CustomSynEdit. Issue #0030604
git-svn-id: trunk@52974 -
2016-09-15 10:49:03 +00:00
martin
5f55a00ead IDE: EditorOptions, added colors for line before fold/hide
git-svn-id: trunk@52755 -
2016-07-31 13:54:50 +00:00
martin
2e86dbcd0d SynEdit: fix bracket matching issue #0029632
git-svn-id: trunk@51593 -
2016-02-10 23:03:30 +00:00
martin
a564fde4c8 SynEdit: fixed (un-)indent selection in linemode (select via gutter). Issue #0029591
git-svn-id: trunk@51578 -
2016-02-10 16:54:05 +00:00
martin
14cd12d46f SynEdit: fix scroll pos after folding. issue #0029534
git-svn-id: trunk@51574 -
2016-02-10 16:00:21 +00:00
juha
0a7cc81dde IDE: Enable "Make Resource String" command also when cursor is behind an end-quote. Issue #28829.
git-svn-id: trunk@51084 -
2015-12-30 15:27:14 +00:00
martin
f68b41737e SynEdit: make markupmanager public
git-svn-id: trunk@50156 -
2015-10-24 20:11:12 +00:00
martin
effdd125ea SynEdit/IDE: zoom via keyboard
git-svn-id: trunk@50091 -
2015-10-17 01:39:01 +00:00
martin
801c0933d5 SynEdit: fix drag and drop selection-text, drop (move) after multi-byte chars. Issue #0028724
git-svn-id: trunk@49892 -
2015-09-29 01:56:34 +00:00
martin
475b08884c SynEdit: Fixed Option for MouseLink (when not using MouseActions) / ssMeta on MAc
git-svn-id: trunk@49222 -
2015-05-30 13:21:57 +00:00
martin
91c6550644 SynEdit: fix mouse link, with "move caret" active. Move caret first.
git-svn-id: trunk@48769 -
2015-04-17 15:03:50 +00:00
martin
13dfe1a8cd SynMemo: deprecated - use SynEdit
git-svn-id: trunk@48565 -
2015-03-31 22:52:08 +00:00
martin
a2ec42e01e SynEdit: Undo initializations, if value is either not needed or always set.
git-svn-id: trunk@48497 -
2015-03-24 23:13:33 +00:00
juha
4e16799fd7 SynEdit: Initialize variables based on compiler warnings. Contains ToDo items.
git-svn-id: trunk@48478 -
2015-03-24 17:50:59 +00:00
martin
875cfefd74 SynEdit: win, IME Handler: fix reference to freed object / leak. Issue #0027714
git-svn-id: trunk@48470 -
2015-03-23 23:02:04 +00:00
martin
e345120713 SynEdit: Experimental/Incomplete, some hints on the usage of GetCharacterPlacementW
git-svn-id: trunk@48456 -
2015-03-22 14:27:38 +00:00
martin
5cde3a8237 SynEdit: fix issue with setting caret and then topline, if the handle is not yet created. TopLIne was ignored, even if it was set after caret.
git-svn-id: trunk@48404 -
2015-03-17 03:24:50 +00:00
martin
f95d44c481 SynEdit: fix crash with negative extra line/char spacing
git-svn-id: trunk@48402 -
2015-03-17 02:43:29 +00:00
martin
7e6d02411c SYnEdit: multi caret, undo/redo
git-svn-id: trunk@48348 -
2015-03-15 02:09:17 +00:00
mattias
bbf5a97ebb synedit: TSynEdit has no preferred size
git-svn-id: trunk@48241 -
2015-03-10 17:19:34 +00:00
martin
f707710907 SynEdit: more MouseActions tuning. Do not let emcStartDrag prevent up-clicks, if no drag ever started.
git-svn-id: trunk@48163 -
2015-03-07 14:10:39 +00:00
martin
c740a16492 SynEdit / IDE: add full line selection on line-gutter click
git-svn-id: trunk@48158 -
2015-03-07 02:21:55 +00:00
martin
95fc578439 SynEdit Improve detection of mouse up, related to mouse down pos
git-svn-id: trunk@48157 -
2015-03-06 23:56:33 +00:00
martin
516f4b7698 SynEdit: ignore mouse up, from clicks to other windows: issue #0027541
git-svn-id: trunk@48050 -
2015-02-28 16:03:30 +00:00
martin
4f3dd33568 SynEdit: rewrite internal caret
git-svn-id: trunk@47714 -
2015-02-12 03:49:23 +00:00
martin
b6efaa244f SynEdit: Multi caret beta
git-svn-id: trunk@47596 -
2015-02-06 02:07:31 +00:00
martin
36b209522b SynMemo: published a few missing properties. Issue #0026324
SynEdit: added Clear and Append

git-svn-id: trunk@47510 -
2015-01-24 21:30:47 +00:00
martin
b58ff06478 SynEdit: more control over selection, when edit text from app
git-svn-id: trunk@47132 -
2014-12-07 23:54:10 +00:00
martin
6874452bfc SynEdit: Add eoColorSelectionTillEol for selection highlight to end at eol. Issue #0026306 Patch by Alexey Torgashin (modified)
SynEdit: Fixed invalidate, if selection highlight changes

git-svn-id: trunk@46836 -
2014-11-13 15:38:51 +00:00
martin
86edec92f4 Add documentation (comment), and assert for SelStart/SelEnd. Issue #0026902
git-svn-id: trunk@46834 -
2014-11-13 14:50:41 +00:00
martin
388e10fdb2 SynEdit: Allow custom caret sizes. Issue #0026257
git-svn-id: trunk@46833 -
2014-11-13 14:31:41 +00:00
martin
e2c258b984 SynEdit: Make IsBackwardSel public. Issue: #0026724
git-svn-id: trunk@46368 -
2014-09-30 13:06:49 +00:00
juha
2700d32686 SynEdit: Prevent calling OnKeyPress twice when ReadOnly is True. Issue #26444, patch from Mukhin Alexey.
git-svn-id: trunk@46226 -
2014-09-14 13:23:52 +00:00
juha
b189500498 LCL: Revert some of THintWindow changes because of Delphi compatibility. Issue #26516
git-svn-id: trunk@45973 -
2014-07-25 16:56:19 +00:00
juha
24ce977ee8 LCL, SynEdit: improve THintWindow methods. Fixes code completion offset problem, issue #26509
git-svn-id: trunk@45937 -
2014-07-20 18:26:37 +00:00