26 Commits

Author SHA1 Message Date
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
ff1467c749 Remember state of WordWrap button on text and hex editor. Fixes issue #2055. 2010-07-02 23:08:06 +00:00
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
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
9080ad7607 No need to use the Wide* version of string functions any longer. 2010-01-15 20:28:48 +00:00
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
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
b71414a386 Make Ctrl+A select all text in grid popup text editor. Fixes issue #1467. 2009-12-27 15:54:25 +00:00
e356cb7ed7 Sanitize all "uses" clauses from unneeded unit references. 2009-12-22 23:19:56 +00:00
8b126c26a7 Revert accidentally committed file with debug changes 2009-10-19 22:15:40 +00:00
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
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
eadeed1ae2 Use helper methods where possible, and leave GUI stuff in form units. 2009-04-28 22:35:00 +00:00
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
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
6d96f6d7cf Remove no longer used constants since r2383 2009-04-21 21:37:59 +00:00
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
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
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
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
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
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
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
952cdd5a18 Fix a wrong comment. 2008-09-02 09:32:36 +00:00
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
d60b1b6f93 Rename 'memoeditor' to 'texteditor', in preparation for inclusion of a binary editor. 2008-09-01 19:47:05 +00:00