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
Ansgar Becker
a38c70b99e
* Try a new approach in helpers.OpenTextFile(), helpers.ReadTextfile() and helpers.ReadTextfileChunk(): Based on TStreamReader instead of TFileStream now, so we can finally rely on Delphi internals for detecting a file's encoding. Also, this should fix read errors in some UTF-8 files, e.g. mentioned on http://www.heidisql.com/forum.php?t=13044
...
* Remove helpers.DetectEncoding(). Use a separate TStreamReader in the only caller to detect the encoding of a selected file
* Remove helpers.ScanNulChar()
* Remove helpers.RemoveNulChars()
2013-09-04 07:53:44 +00:00
Ansgar Becker
debf37824c
Issue #3191 : Use some standard TActions to implement a simple search/replace dialog in the popup text editor.
2013-05-28 04:30:35 +00:00
Ansgar Becker
becd4bdd0e
Work around broken ToolButton with Style=tbsDropDown after translation: https://sourceforge.net/tracker/index.php?func=detail&aid=902470&group_id=74086&atid=539908
...
Fixes issue #3066 .
2013-01-02 19:12:13 +00:00
Ansgar Becker
645a9f3c7f
Make message strings from const.inc translatable
2012-11-29 06:15:44 +00:00
Ansgar Becker
f96288fce9
Translate string variables and literals in .pas files. TODO: translate constants.
2012-11-26 05:44:01 +00:00
Ansgar Becker
ca1d94c87b
Issue #557 : Include gnugettext.pas from https://dxgettext.svn.sourceforge.net/svnroot/dxgettext/trunk/dxgettext/sample/ . And add basic code to all FormCreate events to translate their components in the future.
2012-11-10 14:28:44 +00:00
Ansgar Becker
90ab0b6cf1
Refactor logic for reading and writing application and session settings:
...
* Introduce TAppSettings, created in dpr file
* Implement read and write methods, and replace callers of GetRegValue and MainReg.WriteInt/... with these
* Optimize read and write methods for avoiding redundant accesses to registry
* Auto-remove stored default settings from registry to avoid registry spam
* Replace synced MainForm.pref* variables with TAppSettings.Read* calls
* Move SetLocales call to dpr file
* Move MainForm.FDirname* variables to appropriate methods in helpers.pas
* Implement TQueryHistory.Create(SessionPath), reading its items within constructor
2012-08-19 10:55:08 +00:00
Ansgar Becker
2d548b5ef6
Introduce some wrapper functions for message and error dialogs in order to have less code and to avoid hidden titles on Windows XP. Fixes issue #2425 .
2011-05-27 04:48:21 +00:00
Ansgar Becker
ff1467c749
Remember state of WordWrap button on text and hex editor. Fixes issue #2055 .
2010-07-02 23:08:06 +00:00
Ansgar Becker
da0d3d18a7
Restrict "Select all" action to Ctrl+A, do not trigger it on Ctrl+Alt+A or AltGr+A. Fixes issue #2027 .
2010-06-20 12:32:14 +00:00
Ansgar Becker
d436df314a
Use TOpenTextFileDialog instead of TOpenDialog for two places where we load SQL and text cell contents. That dialog has an additional "Encoding" dropdown, where the user can select the file's encoding, which can be required if the auto detection did not succeed. Fixes issue #2025 .
2010-06-20 10:05:37 +00:00
Ansgar Becker
9080ad7607
No need to use the Wide* version of string functions any longer.
2010-01-15 20:28:48 +00:00
Ansgar Becker
a4652d39a4
* Fix compiler warnings due to implicit AnsiString to (Unicode)String or vice versa
...
* Remove workaround for Unicode text to and from clipboard
* Fix writing/reading wrong encoded text into/from registry - no need to use Utf8Encode() any longer
* Implement TMySQLQuery.ColAsAnsi() for cases in which we read binary data.
2010-01-07 00:00:56 +00:00
Ansgar Becker
7d401ffde8
Upgrade to Delphi 2010:
...
* Removes TNT Unicode controls, which are no longer required. All VCL controls now have native Unicode support.
* Remove Delphi 11 packages, otherwise we would either need to keep TNT or break Unicode
* PngComponents update from Uwe Raabe on http://cc.embarcadero.com/Item/26127
* Adjust auto build process
* Since Delphi 2009, Strings are now UnicodeStrings, not AnsiStrings any longer. Fix a bunch of compiler errors which came along with this change.
TODO: Project should compile but give tons of compiler warnings.
2010-01-05 23:14:33 +00:00
Ansgar Becker
b71414a386
Make Ctrl+A select all text in grid popup text editor. Fixes issue #1467 .
2009-12-27 15:54:25 +00:00
Ansgar Becker
e356cb7ed7
Sanitize all "uses" clauses from unneeded unit references.
2009-12-22 23:19:56 +00:00
Ansgar Becker
8b126c26a7
Revert accidentally committed file with debug changes
2009-10-19 22:15:40 +00:00
Ansgar Becker
aaa02877a2
Cosmetic in project files:
...
* Move const.inc and compilers.inc back to main source directory
* Move remaining few lines of code from heidicomp.pas to helpers.pas
* Remove components/compilerdetection and components/heidisql
* Remove remainders of EDBImage component, unused since Aug 08.
2009-10-19 22:13:04 +00:00
Ansgar Becker
cd1000c601
The popup text editor is only called within the InplaceEditor. So it doesn't seem to have some advantage any longer to have an abstract base class for the memo and binary editor.
2009-07-21 06:03:30 +00:00
Ansgar Becker
eadeed1ae2
Use helper methods where possible, and leave GUI stuff in form units.
2009-04-28 22:35:00 +00:00
Ansgar Becker
f6a6379e20
* Fix text editor getting original celltext instead of already modified text from inplace editor.
...
* Set modification flag on popup editor in that case.
* Nukes duplicated error message from r2387 (see issue #1097 ).
2009-04-26 16:29:09 +00:00
Ansgar Becker
a827f68509
Work around for issue #1097 : Text editor mangles text containing NUL. Pops up a warning if text contains one or more #0 chars and removes all of them for editing.
2009-04-25 18:08:31 +00:00
Ansgar Becker
6d96f6d7cf
Remove no longer used constants since r2383
2009-04-21 21:37:59 +00:00
Ansgar Becker
20f8848faa
Fix issue #1095 : Text editor breaks text containing mixed newlines. Extends linebreak pulldown menu with "Unicode" and "Mixed" items. No auto replacement done now if mixed style was detected.
2009-04-21 21:34:56 +00:00
Ansgar Becker
f0264cef56
Handle different styles of linefeeds (Windows, UNIX, Mac) in popup editor. Solves issue #905 and issue #1016
...
a) Detect current linefeed style
b) Convert all linefeeds to CRLF
c) Let the user chose a different one or leave it as it is
d) Convert linefeeds back to selected before saving
2009-03-08 13:07:44 +00:00
Ansgar Becker
909d31fd64
Simplify writing settings to registry:
...
* Keep only one TRegistry object in memory instead of creating a new one in each routine.
* Move out relevant functions and TRegistry object from main to helpers to make them usable globally.
2009-01-03 17:16:11 +00:00
Ansgar Becker
523738af84
Fix bug #840 : Confirm != Confirm.
...
Press Cancel: No confirm dialog
Press X: Confirmation dialog if content was modified
2008-11-01 09:02:29 +00:00
Ansgar Becker
59609b99b6
Fix bug #817 : cannot see anything in the field editor; color is white on white background
2008-10-22 18:23:10 +00:00
Ansgar Becker
85a00cca2d
Fix bug #778 you will be asked twice if you want to apply the modifications in the editor window after ESC pressed. The editor dialogs are modal now which fixes a certain part of this issue and makes the code paths less complex.
2008-10-03 09:08:26 +00:00
Ansgar Becker
798356e065
Fix bug #774 : Problems after not saving or cancelling a textfield (or binary field). Solution: Detect any focus steeling and automatically invoke the cancel action.
2008-10-01 20:24:55 +00:00
rosenfield.albert
952cdd5a18
Fix a wrong comment.
2008-09-02 09:32:36 +00:00
rosenfield.albert
cc2f93b24e
* Add a binary editor to allow editing (var)binary and (tiny|medium|long)blob fields without messing up NULs etc.
...
* Add a few notes about where AVs seem to randomly occur when GridPost{Insert,Update,Delete} and EnsureDataLoaded invokes the query logic from outside the main thread.
Fixes issue #659 as far as the grids go, but not for export functions.
2008-09-01 21:46:28 +00:00
rosenfield.albert
d60b1b6f93
Rename 'memoeditor' to 'texteditor', in preparation for inclusion of a binary editor.
2008-09-01 19:47:05 +00:00