Commit Graph

1070 Commits

Author SHA1 Message Date
martin
331b3f8019 SynEdit: Handle #13 if it's not a SynKeyStroke. This allows #13 to be passed on in OnKeyPressed. Issue #9195
git-svn-id: trunk@20009 -
2009-05-17 13:34:49 +00:00
mattias
1b9d01b147 synedit: syncompletion: overriding UTF8 keypress in TSynAutoComplete
git-svn-id: trunk@19993 -
2009-05-17 00:11:26 +00:00
mattias
7050dbc7cc synedit: syncompletion: overriding UTF8 keypress
git-svn-id: trunk@19992 -
2009-05-17 00:03:15 +00:00
mattias
1e32f92f32 codetools: linkscanner now scans in finer granularity
git-svn-id: trunk@19986 -
2009-05-16 22:29:55 +00:00
martin
9e7e2cfd0c SynEdit, Pas-Highlighter: fixed a crash, by pointer range-check violation / random mem access
git-svn-id: trunk@19957 -
2009-05-13 17:15:31 +00:00
martin
9274d85e5b SynEdit: Fix painting in Search and replace / issue #13702
git-svn-id: trunk@19956 -
2009-05-13 17:15:12 +00:00
martin
2607eec3c3 SynEdit: TextLayout added debug output
git-svn-id: trunk@19944 -
2009-05-12 13:49:02 +00:00
martin
cb1aabd1fe SynEdit: TextLayout improved for MacOs, added debug output
git-svn-id: trunk@19942 -
2009-05-12 13:35:43 +00:00
martin
fb2740c0d9 SynEdit: fixed font width checks; missing overhang from TextMetrics / fixed BaseStyle
git-svn-id: trunk@19916 -
2009-05-11 00:45:10 +00:00
martin
a24043f0e8 SynEdit: Improved detection of Font dimension according to all styles used by highlighter
git-svn-id: trunk@19908 -
2009-05-10 15:30:02 +00:00
martin
e747489eff SynEdit: Reimplemented detection of CharAdvandce/Width; fix issue #13651; Also better display for proportional fonts, through better detection of widest char (often "@", not "M")
git-svn-id: trunk@19907 -
2009-05-10 14:56:32 +00:00
martin
91feaaad58 SynEdit: Removed unused DBCS code
git-svn-id: trunk@19905 -
2009-05-10 12:38:04 +00:00
martin
0e976f6448 SynEdit: Fix for rev 19888 #8a75ad9020 (multi line selection did no longer paint)
git-svn-id: trunk@19889 -
2009-05-09 20:47:52 +00:00
martin
8a75ad9020 SynEdit: Erase Background Line by Line; reduce flicker if not double-buffering (Gtk1)
git-svn-id: trunk@19888 -
2009-05-09 19:35:56 +00:00
martin
b9bd442a0f SynEdit: Fix display error under Gtk2 with real tabs in source. Issue #13669
git-svn-id: trunk@19859 -
2009-05-08 13:06:42 +00:00
mattias
00c4c17376 clean up
git-svn-id: trunk@19833 -
2009-05-07 08:16:47 +00:00
martin
ed6ba36741 SynEdit / Gtk2: Fixing Highlight/redraw issues with revision 19801 #1312656bf4: ScrollWindowEx for Gtk2
git-svn-id: trunk@19813 -
2009-05-05 16:10:52 +00:00
martin
28a1b83734 SynEdit (Win only): Reduced amount of Invalidated area fir vertical scroll and let ScrollWindowEx do it's work.
git-svn-id: trunk@19777 -
2009-05-02 23:48:08 +00:00
martin
d26b4ccd22 Synedit: Fixed Fold-contextmenu for ifdef, region
git-svn-id: trunk@19759 -
2009-05-02 11:06:58 +00:00
vincents
3fe5350912 updated po files with new strings
git-svn-id: trunk@19681 -
2009-04-29 05:37:42 +00:00
martin
ff3a210ee6 SynEdit, fixed Line-Indent if trim-spaces uses "Position Only"
git-svn-id: trunk@19672 -
2009-04-28 20:28:19 +00:00
marc
a0cc36d681 * Updated Chineese translation by shinyv
* Renamed zh-cn extention to zh_CN (to be more consequent with others)

git-svn-id: trunk@19637 -
2009-04-26 15:44:31 +00:00
paul
38dd29e0b7 synedit: fix TSynBaseCompletionHint after recent THintWindow change
git-svn-id: trunk@19618 -
2009-04-25 14:21:15 +00:00
martin
468a0e145f SynEdit, Fixed fold-context menu. Some items would not show, if begin-end blocks were not folded. issue #13576
git-svn-id: trunk@19602 -
2009-04-24 10:12:20 +00:00
martin
9d8131f5d6 SynEdit: Fixed flicker, if themes(Windows) where off. SynEdit would not use a double-buffer then. issue #0013550
git-svn-id: trunk@19553 -
2009-04-21 12:51:31 +00:00
martin
c14b8611f4 SynEdit: Fold-context-Menu, fix crash for right click at lines without fold
git-svn-id: trunk@19549 -
2009-04-21 12:30:58 +00:00
martin
c35881890d SynEdit Fold via context-menu: fix unfolding
git-svn-id: trunk@19529 -
2009-04-20 21:38:03 +00:00
mattias
a7d4c2d5b4 synedit: clean up
git-svn-id: trunk@19518 -
2009-04-19 21:10:03 +00:00
martin
6a6c84d56b SynEdit Folding: Improved Pop-up-Menu on fold-gutter => replace normal popup.
git-svn-id: trunk@19516 -
2009-04-19 17:11:02 +00:00
martin
59d3bbd7e9 SynEdit Folding: Improved block detection for Pop-up-Menu on fold-gutter
git-svn-id: trunk@19511 -
2009-04-19 12:44:11 +00:00
martin
d6d2d80d9f SynEdit Folding: Added Pop-up-Menu to Gutter
git-svn-id: trunk@19499 -
2009-04-19 00:39:59 +00:00
martin
1f3f3bd7e0 SynEdit, Folding: Don't follow the caret, unless config says so
git-svn-id: trunk@19493 -
2009-04-18 21:25:57 +00:00
martin
d3bde9aa5a SynEdit, Folding: allow collapsing more than one fold per line. issue #12811
git-svn-id: trunk@19491 -
2009-04-18 18:58:50 +00:00
martin
fcef8bf239 Synedit: Fixed deleting block. If block-begin was past eol, sometimes a text fragment would remain. issue #0013534
git-svn-id: trunk@19475 -
2009-04-17 22:26:35 +00:00
martin
fee076fd23 SynEdit: Fixed a possible null pointer exception, in highlighter.
git-svn-id: trunk@19449 -
2009-04-15 20:33:01 +00:00
martin
8be1eac47f SynEdit: Cleanup, removed ifdef
git-svn-id: trunk@19448 -
2009-04-15 16:28:31 +00:00
martin
094f0e041d SynEdit, Pascal Highlighter better matching of incorrect nested blocks
git-svn-id: trunk@19447 -
2009-04-15 15:50:35 +00:00
martin
f22870f50f SynEdit, Word-Pair-Markup, fixed drawing artefacts, if another window was moved over the editor
git-svn-id: trunk@19429 -
2009-04-14 20:44:47 +00:00
martin
65af78ff54 SynEdit: Fixed issue with fold/word-pair-markup "procedure xxx; forward" issue #0013487
git-svn-id: trunk@19412 -
2009-04-13 17:39:09 +00:00
martin
a6e6bbabb7 SynEdit C++ Highlighter: Fixed closing multi line string, if closing quote is at start of line. issue #0013502
git-svn-id: trunk@19411 -
2009-04-13 16:22:51 +00:00
martin
71fb77ec40 SynEdit: Fold at %Region and $IfDef (Issue #12718)
git-svn-id: trunk@19409 -
2009-04-13 15:36:53 +00:00
martin
cf323f5239 SynEdit: fixed folding for forward/external procedures in implementation section
git-svn-id: trunk@19317 -
2009-04-10 16:44:14 +00:00
paul
ef6a23b55a synedit: highlight "alias"
git-svn-id: trunk@19300 -
2009-04-10 11:56:11 +00:00
vincents
4444941bea removed non-utf8 polish translations
git-svn-id: trunk@19257 -
2009-04-06 19:46:22 +00:00
martin
0a84603c25 SynEdit: Divider lines,, if right margin is off (they did draw at random, now the draw independent)
git-svn-id: trunk@19245 -
2009-04-06 11:23:51 +00:00
mattias
72183ac80c synedit: clean up
git-svn-id: trunk@19244 -
2009-04-06 11:12:35 +00:00
martin
d683c26988 SynEdit: Allow configuration for folding
git-svn-id: trunk@19234 -
2009-04-05 20:46:30 +00:00
martin
0ba73e0a74 SynEdit Folding: protect form accidental deep nesting. (Pascal cuts at 100 recursive nests)
git-svn-id: trunk@19230 -
2009-04-05 16:03:17 +00:00
martin
9eb3a0f03d SynEdit: Fixing a crash when switching highlighter of a unit back to FreePascal
git-svn-id: trunk@19228 -
2009-04-05 13:58:52 +00:00
martin
c1053f86fe SynEdit: Fixed drawing background after the "right-border-line". There where ghost lines if a divider draw was on the left of the "r-b-l". Introduced in revision: 19220/19221
git-svn-id: trunk@19226 -
2009-04-05 02:17:45 +00:00
martin
7ee15b0d8e SynEdit: Change the order in which lines, frames and text is drawn. Fixes issue #13436
git-svn-id: trunk@19224 -
2009-04-04 23:51:31 +00:00
martin
186237311f SynEdit: Fix right-border-line on Windows. Lines longer than the right border, would cause gaps in the line
git-svn-id: trunk@19223 -
2009-04-04 21:37:27 +00:00
martin
9c3c06ecf8 SynEdit, Cleanup: Removed unused unit dependencies / changed some var-param into out-param
git-svn-id: trunk@19222 -
2009-04-04 21:23:53 +00:00
martin
85faebfd2b SynEdit: Customizable DividerDraw settings (forgot result for global var sections)
git-svn-id: trunk@19221 -
2009-04-04 18:44:54 +00:00
martin
9918770992 SynEdit: Customizable DividerDraw settings (solves issue #13322)
git-svn-id: trunk@19220 -
2009-04-04 18:27:45 +00:00
martin
40bea9841d SynEdit: Fixed compiler warning
git-svn-id: trunk@19210 -
2009-04-03 19:45:47 +00:00
martin
eff2d6991a SynEdit Highlighter: Fix some highlighter could crash (e.g SQL with trailing spaces). They used a pointer to the text, but the text was in a temp location.. Issue #13263
git-svn-id: trunk@19158 -
2009-03-29 20:36:49 +00:00
martin
2a566aa129 SynEdit: Improved matching try/except blocks for highlight
git-svn-id: trunk@19155 -
2009-03-29 15:45:46 +00:00
martin
5af6df524f SynEdit: Fixed issue with redrawing divider line for var-blocks Issue #13416
git-svn-id: trunk@19154 -
2009-03-29 15:02:52 +00:00
martin
290a744de1 SynEdit: Fixed issue with unclosed block (would include a line too much from past the EOF) Issue #13415
git-svn-id: trunk@19152 -
2009-03-29 14:20:14 +00:00
martin
96a4882d61 SynEdit Highlighter: Fix to divider-draw changes in revision 19144 #8d681fd278
git-svn-id: trunk@19147 -
2009-03-29 00:16:35 +00:00
martin
a14e436408 SynEdit: Fixes several selection commands (including block mode sel): If the caret was forced to the end off line (no caret past EOL), the block selection was made to a position that differs from the caret pos
git-svn-id: trunk@19146 -
2009-03-28 23:29:40 +00:00
martin
59a8ccb9f3 SynEdit Column-mode-selection: Fixed Select to editor start/end doesn't force X position(patch by Dmitry Boyarintsev) Issue #13338
git-svn-id: trunk@19145 -
2009-03-28 23:27:18 +00:00
martin
8d681fd278 SynEdit Highlighter: Refactor; Highlighter now differs between Fold and Markup ranges; added Markup-Word-Pairs for repeat/try/case
git-svn-id: trunk@19144 -
2009-03-28 22:08:32 +00:00
martin
0725aa4cca SynEdit, Trim-Trailing-Spaces: Fixed, tab moves caret in Position-Only mode
git-svn-id: trunk@19124 -
2009-03-26 18:43:10 +00:00
martin
19be7391db SynEdit, Trim-Trailing-Spaces: Added Position-Only mode(no space inserted/looses tabs); changed default to "Edit or Leave line"
git-svn-id: trunk@19121 -
2009-03-26 17:45:54 +00:00
martin
a65594caeb SynEdit: Trimming Spaces, fixed trim on edit
git-svn-id: trunk@19118 -
2009-03-26 16:15:34 +00:00
martin
c9570a9b46 SynEdit: Cleanup, removed unused variables
git-svn-id: trunk@19104 -
2009-03-25 21:49:32 +00:00
martin
5bb8ad3f37 SynEdit: Refactor/Cleanup Highlighter
git-svn-id: trunk@19103 -
2009-03-25 21:40:50 +00:00
martin
c612f1e4e1 SynEdit: fixed group-undo. Group-Undo would prevent the editor from being marked as "changed" in some cases if editing was continued after saving.
git-svn-id: trunk@19102 -
2009-03-25 20:41:06 +00:00
martin
1473f651bd SynEdit: Markup-Current-Word, improved dealing with open "begin" closed by next "procedure"
git-svn-id: trunk@19081 -
2009-03-23 22:47:11 +00:00
martin
06e2f76e25 SynEdit, Current-Word-Markup: Slightly reduced resource usage
git-svn-id: trunk@19080 -
2009-03-23 22:13:11 +00:00
martin
4fb2ec2495 SynEdit: Refactor/Cleanup Highlighter and Current-Word-Markup
git-svn-id: trunk@19079 -
2009-03-23 21:48:43 +00:00
martin
1513151751 SynEdit: Fix adjusting of bookmarks (and other marks) on Lines add/del - undo/redo
git-svn-id: trunk@19077 -
2009-03-23 18:59:58 +00:00
martin
d9396e4d39 SynEdit, refactor highlighter: Moved folding code into a base-class of its own
git-svn-id: trunk@19062 -
2009-03-22 15:24:32 +00:00
martin
d2cb648445 SynEdit: Fixed a compile warning
git-svn-id: trunk@19061 -
2009-03-22 14:50:19 +00:00
martin
019e7e3aa2 SynEdit: Fixes to Folding (certain folds were mismatched since revision 19048 #10773be327 / Force-close "begin" at next "procedure"
git-svn-id: trunk@19056 -
2009-03-21 17:49:06 +00:00
martin
e8615f8e60 SynEdit highlighter: fixed class-end detection / revision 19048 #10773be327
git-svn-id: trunk@19051 -
2009-03-21 00:47:33 +00:00
martin
fcf5c59450 SynEdit highlighter: fixed a null range issue from revision 19048 #10773be327
git-svn-id: trunk@19050 -
2009-03-21 00:15:28 +00:00
martin
c840c93831 SynEdit highlighter: fixed a null range issue from revision 19048 #10773be327
git-svn-id: trunk@19049 -
2009-03-20 23:58:35 +00:00
martin
10773be327 SynEdit: Speed-up for the PascalHighlighter. Significant reduction of memory usage on "bad units".
git-svn-id: trunk@19048 -
2009-03-20 23:10:40 +00:00
paul
e8814a27e8 synedit: restore occasionally removed gutter invalidates in r19001 #a26d1805de
git-svn-id: trunk@19046 -
2009-03-20 17:25:13 +00:00
martin
f94d7915da SynEdit: Fixed a painting bug, caused by a wrong topline in the folding module. This was caused tools outside SynEdit would replace text (code-formatting, etc)
git-svn-id: trunk@19010 -
2009-03-17 00:18:46 +00:00
martin
a487572de8 SynEdit: Fix crash in designer, when closing form or deleting a Highlighter that was assigned to SynEdit. (Notification would not remove all references to the highlighter)
git-svn-id: trunk@19009 -
2009-03-16 21:43:01 +00:00
martin
51d4db2ebc Synedit: Fixed insert space in new empty text, would cause exception
git-svn-id: trunk@19008 -
2009-03-16 20:26:21 +00:00
martin
d75f823e24 Fix revision 19004 #3f77b5575f => somehow an extra line made it into the code
git-svn-id: trunk@19005 -
2009-03-15 23:06:24 +00:00
martin
3f77b5575f SynEdit C++ Highlighter: Add multi line strings. Issue #13308 Based on a patch by equinox
git-svn-id: trunk@19004 -
2009-03-15 21:26:51 +00:00
martin
d92087e835 SynEdit: fix range check error from revision 19001 #a26d1805de
git-svn-id: trunk@19002 -
2009-03-15 17:59:35 +00:00
martin
a26d1805de SynEdit: Refactor the Undo/Redo system. Should fix some issues with column selection too; and enables group-undo for all kind of edit-actions; also fixes bug #13298
git-svn-id: trunk@19001 -
2009-03-15 16:56:58 +00:00
paul
0b6b0bc4ea synedit: invalidate gutter when we add/remove debug marks
git-svn-id: trunk@18996 -
2009-03-15 06:10:47 +00:00
paul
25fc0e9b9c synedit: allow to set/clear debug execution marks
git-svn-id: trunk@18992 -
2009-03-14 19:01:35 +00:00
martin
373ac65497 SynEdit: Fixed drawing random (divider) lines into empty space below EOF. This happened if the very last line had a divider-draw line, and the window's empty part was partly redrawn.
git-svn-id: trunk@18970 -
2009-03-12 19:44:15 +00:00
jesus
a9de954bca SynEdit, fix CTRL+Click after r18951 #d999a5db3b strict check
git-svn-id: trunk@18961 -
2009-03-11 20:35:43 +00:00
martin
87664b1185 SynEdit: fixed pageUp/Down for Column mode selection (thanks dmitry boyarintsev)
git-svn-id: trunk@18960 -
2009-03-11 18:04:11 +00:00
paul
0103c56f6a synedit: some changes for marks
- move marks compare functions to the SynEditMarks
  - return marks sorted by drawing order in GetMarksForLine
  - increase default gutter width for marks (we did not include LeftOffset of the bookmark options)
 

git-svn-id: trunk@18952 -
2009-03-11 03:19:54 +00:00
martin
d999a5db3b SynEdit, inconsistent handling of MouseLinks. Some code suppressed MouseLinks if shift or alt where pressed too, other code would still handle the links. Now the modifier key (ctrl or meta) has to be pressed without shift or alt.
git-svn-id: trunk@18951 -
2009-03-10 22:58:16 +00:00
martin
7a5c870566 SynEdit: make shift-alt-left_mouse behave similar to shift-left_mouse. Start selection from old caret position. Issue #13238
git-svn-id: trunk@18950 -
2009-03-10 22:12:47 +00:00
paul
c21cb3f74f synedit, ide: add TSynMark.Priority to order marks at the same line. Make CurrentLine mark priority bigger
git-svn-id: trunk@18948 -
2009-03-10 15:19:48 +00:00
martin
ca8233b52a SynEdit: Paste of column-mode block, would fail if the inserted text hit the EOF. Patch by dmitry boyarintsev
git-svn-id: trunk@18914 -
2009-03-07 21:31:15 +00:00
martin
467d8360d8 SynEdit: minor fix in the way Scanfrom is called (max() instead of min())
git-svn-id: trunk@18912 -
2009-03-07 15:42:52 +00:00