Commit Graph

84 Commits

Author SHA1 Message Date
Ansgar Becker
05d02627f3 Make TConnectionParameters.IsMySQL specific to MySQL only, and rename the grouped type checks to IsAnyMySQL, IsAnyMSSQL etc. This way the status bar now shows "MySQL", not "MySQL or MariaDB" 2020-02-22 09:06:37 +01:00
Ansgar Becker
feeb17e7d4 Performance: use first 1000 rows only for calculating the CSV export size, and interpolate the rest. Closes #804 2020-01-21 20:39:38 +01:00
Ansgar Becker
805c0c35b2 Add checkbox option to remove line breaks from field contents in grid export dialog. Closes #474 2019-12-08 11:59:15 +01:00
Ansgar Becker
676f4b1e74 Prefer inline code over outsourced one-time used function BestTableName 2019-07-23 17:38:26 +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
2a91a13b42 Issue #677:
* drop workaround for application crash on WinXP, when loading newer libmariadb (see #79)
* raise TDbLib's own exception instead of baking an own one with less details. Probably helps in debugging: https://www.heidisql.com/forum.php?t=34044
* rename EDatabaseError to EDbError, to overcome naming conflict in DB unit
* load libpq.dll always with path, which should anyway work better than without it. See http://www.heidisql.com/forum.php?t=22514
2019-07-08 20:23:05 +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
1d6a415f5f Refactor: rename mysql_structures unit neutrally to dbstructures 2019-06-22 14:26:41 +02:00
Ansgar Becker
155cedace9 Revert a part of 406ab56060: Prefer TEncoding.UTF8 again over the TUTF8NoBomEncoding with an overridden .GetPreamble(). The grid export crashed when used a second time, probably because the TStringStream overtakes ownership of the encoding. Also, I see no BOM in files encoded via TEncoding.UTF8, so this was probably a fix for nothing anyway. 2019-04-28 12:42:44 +02:00
Ansgar Becker
406ab56060 Attempt to fully support UTF8 encoding without BOM, as TEncoding.UTF8 has a non-empty preamble/bom. See https://forums.embarcadero.com/thread.jspa?threadID=112112 . Probably related to encoding issue #515 2019-04-13 10:52:41 +02:00
Ansgar Becker
a4e20cc9bc Check "copy to clipboard" radio button internally, when copying selected rows per quick menu. Closes #459. 2019-01-02 19:30:09 +01:00
Ansgar Becker
55ed9ae738 Make grid export dialog resizable, store/restore its width and height, and resize contained group boxes proportional to the window. See #19. 2018-11-13 19:45:30 +01:00
Ansgar Becker
2a10422373 Issue #8: provide two color presets for SQL editors in preferences dialog per dropdown, one for dark themes and one for light ones 2018-11-05 20:53:43 +01:00
Ansgar Becker
3759611c34 Issue #8: convert system colors applied by code into their theme color 2018-10-27 17:47:16 +02: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
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
36c5d90d39 Use unsecured heidisql.com url in donor check if secure one did not work. Closes #65 2018-01-02 18:55:06 +01:00
Ansgar Becker
19a1c3fbb4 Refactor exclusion of virtual columns in various places:
* introduce TDBQuery.ColIsVirtal() returning a boolean for a column index, and use that instead of examining a columns virtuality everywhere
* exclude virtual column when exporting SQL code in the grid export dialog - see #53
* sql export dialog must not activate edit mode on a result, as this introduces endless loops
* instead, move some code out of PrepareEditing into PrepareColumnAttributes, which we can now call separately without activating edit mode
2017-12-22 10:07:17 +01:00
Ansgar Becker
654dace688 Create a new menu item for copying rows to clipboard, and assign Ctr+Shift+C to it. See https://www.heidisql.com/forum.php?t=23190#p23490 2017-03-07 20:10:49 +00:00
Ansgar Becker
ba300916de Use the grid export dialog for setting values for copy-to-clipboard clicks on grids. Adds a new button in the lower left on that dialog. See https://www.heidisql.com/forum.php?t=23190 2017-03-06 19:31:55 +00:00
Ansgar Becker
31dc8f3f97 Use unsecure project web url for donor checks, as the ssl certificate seems not accepted on some Wine systems. 2017-03-05 17:40:11 +00:00
Ansgar Becker
c75054b63a Fix typos in encoding of xml exports. See https://www.heidisql.com/forum.php?t=23421 2017-03-03 13:48:37 +00:00
Ansgar Becker
d75ae736ea Make Markdown export code compatible to the parser on gitlab.com, by using 3 dashes instead of 1, below header columns. See http://www.heidisql.com/forum.php?t=22991 2016-12-25 11:35:37 +00:00
Ansgar Becker
795e5de4c2 Remove per-row comment in PHP array grid export, which blows up the result. See http://www.heidisql.com/forum.php?t=22749#p22798 2016-12-03 09:43:01 +00:00
Ansgar Becker
cdea0923b3 Don't encode html entities but escape quotes in JSON grid export. See http://www.heidisql.com/forum.php?t=22747#p22783 2016-11-26 15:10:55 +00:00
Ansgar Becker
462dcba8de Escape quotes and stuff in JSON keys and values. See http://www.heidisql.com/forum.php?t=22747 2016-11-24 18:01:58 +00:00
Ansgar Becker
208723e7bb Use double quotes for PHP values when exporting a PHP array from a grid. See http://www.heidisql.com/forum.php?t=22749 2016-11-24 17:52:46 +00:00
Ansgar Becker
b5de17c15d Wrap grid export code in a try/except block, so we can catch a potential "Cannot determine name of table" error, occurring while trying to get the WHERE clause for DELETEs. See http://www.heidisql.com/forum.php?t=21168 2016-04-28 18:13:47 +00:00
Ansgar Becker
24208cc039 Use b'' format only for BIT columns in MySQL only. See http://www.heidisql.com/forum.php?t=20333 2016-04-27 17:55:31 +00:00
Ansgar Becker
347ed4880e Add "SQL DELETEs/INSERTs" to grid export formats. See http://www.heidisql.com/forum.php?t=20929 2016-04-03 09:45:04 +00:00
Ansgar Becker
71144a9aec Escape and quote binary strings in grid export if "View binary data as text" button is active. See http://www.heidisql.com/forum.php?t=20320 2016-01-10 17:48:24 +00:00
Ansgar Becker
a8f6c8b023 Add support for JSON grid export format. See http://www.heidisql.com/forum.php?t=15307 2015-04-30 15:56:01 +00:00
Ansgar Becker
f8e75b5d2e Basic implementation of Markdown Here grid export option. See http://www.heidisql.com/forum.php?t=16483 2015-04-06 20:00:53 +00:00
Ansgar Becker
69f5503af3 Raise NodeDataSize of data and query grids from 4 bytes (PCardinal) to 8 bytes (PInt64), so TBaseVirtualTree.InsertNode does not barf in 64bit mode with a "Cannot set initial user data because there is not enough user data space allocated.". Fixes issue #3429. 2013-11-14 21:15:39 +00:00
Ansgar Becker
5520e84fc2 Issue #3304: Escape column names for PHP 2013-08-07 04:39:42 +00:00
Ansgar Becker
34fa56ab51 Escape exported PHP strings using some extra logic, instead of using incompatible TDBConnection.EscapeString. Fixes issue #3304. 2013-08-06 03:58:56 +00:00
Ansgar Becker
7de712b741 Fix unused FCSVNull value in efExcel grid export. 2013-07-30 05:30:23 +00:00
Ansgar Becker
8d191ef773 Provide edit box for custom NULL value, in grid export dialog. See http://www.heidisql.com/forum.php?t=13075 2013-07-30 05:21:36 +00:00
Ansgar Becker
51c27f7a27 * Silence various compiler warnings about non initialized variables.
* Globally turn off platform warnings
2013-07-16 04:45:28 +00:00
Ansgar Becker
99f62c4324 Process placeholders in filename also in grid export dialog. Provide a list of valid placeholders below the recent files pulldown menu. See http://www.heidisql.com/forum.php?t=12506 2013-06-01 05:45:17 +00:00
Ansgar Becker
c8e47298a9 Grid export: Remove zero padding to avoid octal => integer conversion in PHP. Fixes issue #3149. 2013-04-01 16:26:53 +00:00
Ansgar Becker
53c9553c5b Grid export: Export quoted empty string when blob value is empty (SQL INSERTS/REPLACES). Fixes issue #2941. 2013-02-21 10:48:30 +00:00
Ansgar Becker
4435346fc4 Fix erroneous formatted string in grid export dialog 2012-11-26 09:08:01 +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
015de362f1 Add fallback font family for HTML export. Fixes issue #2990. 2012-10-19 14:47:38 +00:00
Ansgar Becker
4eb450ce69 Fix confusion in save-as-dialog. Fixes issue #2921. 2012-08-31 13:51:13 +00:00