Commit Graph

83 Commits

Author SHA1 Message Date
Ansgar Becker
0d9de512cd Remove unit scopes from project settings, prefer fully qualified unit names in uses clauses. Enhance readability and compiler performance. 2022-12-26 17:59:19 +01:00
Ansgar Becker
b72599cd8a Issue #136: use VerySimpleXML v3-beta from https://github.com/Dennis1000/verysimplexml to reformat XML in grid cells.
Also, auto-disable slow wordwrap in editor if text is > 1M large
2022-10-03 09:05:29 +02:00
Ansgar Becker
f2a50aba63 Issue #1669: turn customize-highlighter button into dropdown button with additional items "Format code once" and "Always format code". Usable for SQL and JSON. 2022-09-27 11:10:43 +02:00
Ansgar Becker
ddca97c07a Issue #1659: create dialog for customizing highlighter colors and style, for use on grid text editor 2022-09-11 13:52:59 +02:00
Ansgar Becker
d82a8cc8f7 Highlight occurrences of selected text in grid text editor, same as in query editor 2022-08-19 06:47:45 +02:00
Ansgar Becker
226fea2181 Restore maximized state of text editor in OnCreate, not OnShow. See https://www.heidisql.com/forum.php?t=39476 2022-07-17 09:55:49 +02:00
Ansgar Becker
fc5848b889 Support mouse wheel zoom in grid text editor 2022-05-18 08:13:40 +02:00
Ansgar Becker
2ddb8451af Issue #892: support custom line break style when saving log panel contents or CREATE code tabs to file, using the existing "LineBreakStyle" option introduced in 59159c7afd. 2022-04-21 12:37:42 +02:00
Ansgar Becker
5a3873a8d3 Ask user whether modified text shall be stored when pressing cancel button. Closes #817 2022-04-18 10:48:10 +02:00
Ansgar Becker
49d527552a Fix EAbort error when copying text from SynMemo without highlighter. See https://www.heidisql.com/forum.php?t=38906 2022-03-05 08:56:56 +01:00
Ansgar Becker
7e3f3344f9 Issue #202: show read-only state in text editor via background color and as text in status bar 2022-02-26 20:27:32 +01:00
Ansgar Becker
26baa5eb0d Issue #1503: replace remaining usages of TOpenTextFileDialog with new TExtFileOpenDialog 2022-02-06 13:49:09 +01:00
Ansgar Becker
d46716ff2e Issue #1503: reactivate DPI awareness, and try to read/write component dimensions DPI independently 2021-12-26 13:06:24 +01:00
Ansgar Becker
b62a743a4e Issue #136: add context menu with some edit actions to text editor 2021-05-03 08:44:00 +02:00
Ansgar Becker
edbb87fc01 Issue #136: cursor position with local number format 2021-03-31 16:00:49 +02:00
Ansgar Becker
da4188dc46 Issue #136: activate line modification marker in memo gutter 2021-03-17 18:46:56 +01:00
Ansgar Becker
97f79e4a0c Issue #136: include remaining 4 highlighters in SynEdit project files and make them available in text editor 2021-03-17 17:41:48 +01:00
Ansgar Becker
c82fada994 Issue #136: restore text selection after switching highlighter 2021-03-17 09:41:10 +01:00
Ansgar Becker
ddea7e8b78 Issue #136: remove support for crashing x86 Assembly MASM highlighter 2021-03-17 09:39:55 +01:00
Ansgar Becker
ed414d2638 Issue #136: remove dependency of existent but non-included WebIDL and ZPL highlighter unit 2021-03-16 20:22:47 +01:00
Ansgar Becker
ca9968626d Issue #136: remove dependency of existent but non-included Rexx highlighter unit 2021-03-16 20:20:03 +01:00
Ansgar Becker
a3f70b5641 Issue #136: remove dependency of existent but non-included LLVM highlighter unit 2021-03-16 20:14:15 +01:00
Ansgar Becker
c75dfc2274 Issue #136: adjust code for displaying cursor position to the new SynMemo approach 2021-03-16 18:38:27 +01:00
Ansgar Becker
3647316425 Issue #136: Create TSynMemo on text editor at design time, not at runtime. Not sure why I moved that in 2015.
* support find/replace using our self baken dialog
* fix non-working shortcuts for find/replace actions
2021-03-16 18:24:43 +01:00
Ansgar Becker
9dcd446a47 Issue #136: Replace the standard memo on the grid cell text editor with a TSynMemo. And provide all supported highlighters in a drop-down, remembering the previously selected highlighter. 2021-03-14 20:46:30 +01:00
Ansgar Becker
56e541a478 Introduce read-only mode for grid editors. Closes #631 2020-02-06 12:29:35 +01:00
Ansgar Becker
63fdc3e08c Move workaround for broken split buttons after translation into TExtForm.Create, so we have it once and the caller does not need to care about it. See https://sourceforge.net/p/dxgettext/bugs/80/ 2019-07-23 13:36:56 +02:00
Ansgar Becker
fcdf323086 Let TExtForm translate all strings on a form, to reduce the code in any FormCreate event 2019-07-21 20:12:13 +02:00
Ansgar Becker
88a9e53f0d Remove remainders of DPI related code, and move TExtForm.AddSizeGrip procedure to property .HasSizeGrip. Uses TSizeGripXP instead of TSizeGripThemed, as this looks quite the same. 2019-07-21 19:44:05 +02:00
Ansgar Becker
c31cae2060 Giving up on high DPI readiness - remove tweaks which mostly don't work as expected, and even differently on various computers. Instead, let Windows blur fonts. 2019-07-18 20:53:53 +02:00
Ansgar Becker
92c8f62b85 High DPI:
* remove ParentFont flag from forms again (introduced in 9cdcd63145 for #213). This just inherits from default Windows settings.
* instead, scale font size in InheritFont(), and move that to the new TExtForm class
* mark app with PerMonitorV2 support
2019-07-17 21:59:18 +02:00
Ansgar Becker
4f9613b05c High DPI: fix growing window dimensions on each opening. Related to #378 2019-07-07 21:22:19 +02:00
Ansgar Becker
51e55433d3 Fix compiler warnings, and add documentation 2019-06-12 20:15:50 +02:00
Ansgar Becker
8f94ece971 Find and replace dialogs in grid popup text editor:
* Cancel dialog when user presses Cancel, regardless of which dialog has focus.
* Show selection when dialog found some text, without having to focus the memo.
2019-04-22 10:03:03 +02:00
Ansgar Becker
c1ac36561e Update label on text editor after caret was moved by mouse click 2018-12-13 19:09:38 +01:00
Ansgar Becker
5c79f6ddf9 Switch X and Y coordinates of cursor position label in text editor, like it's in the status bar. And decrease timer interval for updating label. 2018-12-13 06:53:56 +01:00
Ansgar Becker
c0dba12883 Display cursor position in grid popup text editor 2018-12-12 20:34:56 +01:00
Ansgar Becker
0fb66ac295 Display number of lines in grid popup text editor 2018-12-12 20:05:23 +01:00
Ansgar Becker
6d4d4e0d97 Display column name in title bar of popup text editor. Closes #395. 2018-11-28 20:58:51 +01:00
Ansgar Becker
9cdcd63145 Issue #213: Assign system or custom font once, to the application, and let all forms inherit that font, so there is no need to call InheritFont() for each form. 2018-10-25 19:24:45 +02:00
Ansgar Becker
76230dfd59 Grid popup text editor: Trigger onchange event explicitly, as this is not done implicitly when applying an empty string. Closes #132. 2018-02-18 12:22:27 +01:00
Ansgar Becker
32bc533495 Restore maximized WindowStyle of grid text editor, and move some code from FormShow to FormCreate, to overcome a glitch with the window dimensions. Closes #89. 2018-02-16 15:45:18 +01:00
Ansgar Becker
f7b4d0c0b8 Try the same workaround for invisible or black dropdown buttons on Wine as previously only for dropdown toolbuttons (becd4bdd0e and 61202be058). Probably fixes issue #94. May also not fix it, as the toolbutton issue was not only on Wine. 2018-02-03 22:47:29 +01:00
Ansgar Becker
f0cf55f76a Fix some unpretty names of private variables 2018-02-03 20:38:13 +01:00
Ansgar Becker
427078f3f5 Fix crash in drop down menu after detecting no line breaks. That should have never happened, but it did. Closes #47. 2018-02-03 20:31:52 +01:00
Ansgar Becker
5a8a4af29a Rename helpers unit to apphelpers, to overcome a naming conflict with the FireMonkey unit FMX.Canvas.GPU.Helpers. Closes #102. 2018-01-22 19:48:17 +01:00
Ansgar Becker
4378e2b98f Remember selected encoding in several file-open-dialogs. See http://www.heidisql.com/forum.php?t=20868 2016-03-20 13:34:23 +00:00
Ansgar Becker
ba63e1477e Show line breaks other than Windows style as normal line breaks in text editor. See http://www.heidisql.com/forum.php?t=18769 2015-06-21 14:05:21 +00:00
Ansgar Becker
59159c7afd Introduce option for setting the line break style in text cells without breaks. See http://www.heidisql.com/forum.php?t=18682 2015-06-13 11:09:59 +00:00
Ansgar Becker
6e608f157e Replace out-dated code which does not compile in 64bit mode in helpers.SetWindowSizeGrip. Use a TForm descendant in the new unit "extra_controls". Code parts taken from http://www.delphigroups.info/2/4/326787.html 2013-11-01 14:54:13 +00:00