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
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
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
92c8f62b85
High DPI:
...
* remove ParentFont flag from forms again (introduced in 9cdcd631454f6f9e999893ea89fcf502d994474c 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
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
4f9613b05c
High DPI: fix growing window dimensions on each opening. Related to #378
2019-07-07 21:22:19 +02:00
1d6a415f5f
Refactor: rename mysql_structures unit neutrally to dbstructures
2019-06-22 14:26:41 +02:00
b64b8bf3cf
Exchange icon index of "Check all" button on CSV import dialog, to make it more intuitive (?). Closes #612
2019-04-16 19:50:53 +02:00
85a8355e1d
Add new log category lcScript, for queries from large scripts and import operations. By default disabled, which should speed up importing large files.
2019-04-16 07:19:47 +02:00
5aafc46fca
Sort encoding names in CSV import dialog alphabetically. Closes #579 .
2019-03-18 20:22:52 +01:00
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
eed5629b0c
Text file import: Support having (one) line feed at end of file. Closes #329
2018-08-19 08:52:18 +02:00
71dbb9ecb0
Give side-by-side group boxes on text import dialog the same width
2018-08-18 18:02:59 +02:00
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
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
f8e84b5871
Text import: Use very last value from last row, even if it's not followed by a field or line terminator. See http://www.heidisql.com/forum.php?t=18899#p18911
2015-07-14 09:48:14 +00:00
a60264b600
CSV import: Disable features supported in MySQL only, if active connection is not MySQL. See http://www.heidisql.com/forum.php?t=18899
2015-07-13 17:56:32 +00:00
2c7cf7ace0
Add "check/uncheck all" button to column selector in textfile import dialog. See http://www.heidisql.com/forum.php?t=13566
2014-11-08 14:28:42 +00:00
5506e385ae
Introduce TPgConnection.GetCharsetTable, forgotten to implement yet. Fixes a crash in text import dialog.
...
* User report: http://www.heidisql.com/forum.php?t=16181
* Ticket at 2ndquadrant: https://support.2ndquadrant.com/rt/SelfService/Display.html?id=37948
2014-08-25 17:33:37 +00:00
d64662d17f
Add fallback "DELETE FROM..." to CSV import dialog's option "truncate table", and even catch errors for both and show an error dialog in the end when both alternatives gave an error. Fixes issue #3339 .
2013-11-26 05:37:04 +00:00
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
1a5d91e236
Revert r4503, except for the removed helpers.ScanNulChars() and helpers.RemoveNulChars(). Seem Delphi's encoding detection is totally broken. Also, TStreamReader has bugs and hangs on the second call to ReadTextfileChunk(). Most files should be read fine again, including those mentioned in issue #3331 . Also fixes issue #3328 .
...
TODO: fix reading specific UTF8 files, mentioned on http://www.heidisql.com/forum.php?t=13044
2013-09-08 05:34:11 +00:00
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
58b2a66800
Get column names from VIEW per IS.COLUMNS, not per SHOW COLUMNS, to support MSSQL here. Fixes empty grid results for MSSQL VIEWs. See comment #46 of issue #3212 .
2013-08-05 04:15:01 +00:00
6371ff5557
Issue #3212 : Introduce TDBConnection.QuotedDbAndTableName(), callable with a db and table string. Internally calls TDBObject.QuotedDbAndTableName(), so we get the schema between db and table if required.
2013-06-22 04:45:53 +00:00
645a9f3c7f
Make message strings from const.inc translatable
2012-11-29 06:15:44 +00:00
f96288fce9
Translate string variables and literals in .pas files. TODO: translate constants.
2012-11-26 05:44:01 +00:00
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
4151f0d82a
Text import: Uncheck critical "Truncate table" checkbox, to avoid accidental data removal. See http://www.heidisql.com/forum.php?t=11260
2012-09-30 12:20:19 +00:00
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
4e5783a510
Missing file for previous commit
2012-05-01 07:05:15 +00:00
ba14143238
Export whole CREATE VIEW code, not only the VIEW body. Fixes issue #2625 .
2012-02-04 06:52:21 +00:00
cb4775c328
Fix memory leak
2011-11-10 22:18:42 +00:00
53444c700a
Add "truncate table" feature to text import dialog. See http://www.heidisql.com/forum.php?t=9367
2011-11-10 22:15:42 +00:00
a69041d17d
Add support for Windows 7 task button progress. Unify all callers of ProgressBarStatus in a set of 5 functions in main unit instead of helpers, as this is where the progress bar is placed and also we need the handle of the main window.
2011-11-08 22:27:52 +00:00
ef23060601
Suppress error dialog when user lacks privilege for SHOW CREATE DATABASE. See http://www.heidisql.com/forum.php?t=8862
2011-07-12 17:55:19 +00:00
14150b15be
Disable move buttons as long as there is no movable column. Fixes issue #2488
2011-07-06 17:19:38 +00:00
e96fa77cbd
Do not cache dialog instances any longer. OnCreate code is mostly very quick, and caching them adds quite some pitfalls into the code. Not to mention 30 lines less code in main.pas now :)
2011-06-26 20:01:42 +00:00
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
478c0306c7
Use modern TaskMessageDlg as a replacement for MessageDlg where appropriate.
2011-05-26 06:08:19 +00:00
4fbf2c23dd
Introduce experimental MS SQL support
2011-03-29 23:20:21 +00:00
49a97584e6
Code preparation for non-MySQL connections: Extract abstract stuff into a new TDBConnection class, and let TMySQLConnection derive from that. Same with TDBQuery / TMySQLQuery. See issue #1008 .
2011-03-17 23:03:54 +00:00
809236e534
Fix compiler warnings, newly deprecated stuff.
2011-02-01 23:05:46 +00:00
6f95a796e1
Modify identifier quoting logic:
...
- Move QuoteIdent() and DeQuoteIdent() out of TMySQLConnection, make them classless
- Remove TMainForm.mask(), instead always use QuoteIdent()
- Introduce a third parameter to QuoteIdent(): "AlwaysQuote" - setting this to false will quote only if required
- Set AlwaysQuote to false for all stuff which drops some code into the query editor, see http://www.heidisql.com/forum.php?t=6986
2010-11-24 23:12:13 +00:00
6c2a100945
Implement combo box for definer in routine + view + trigger editor. Fixes issue #2189 . Some related changes here:
...
- Remove ensureValidIdentifier() and its partly uncatched exceptions. Instead, disable "OK" buttons for empty table/view/proc name.
- QuoteIdent and DeQuoteIdent now take the glue char instead of a "HasMultiSegments" boolean param, so they're more exact when "user@host" or "db.name" come in.
2010-10-12 22:13:08 +00:00
5d13d0677b
The 3 procedures Parse(Table|View|Routine)Structure() already do some connection specific stuff, and now even more, so they're moved to TMySQLConnection now. In order to display the right collation even if only the character set was found in a CREATE TABLE code, the default collation per charset is detected via CollationTable. See http://www.heidisql.com/forum.php?t=6348 .
2010-10-08 20:16:53 +00:00
0fa6c15c9d
Implement multiple connections per window. DBtree and friends now have their nodes bound to TDBObject instances. Fixes issue #2144 .
2010-10-05 23:06:29 +00:00
f86a72dd36
Attempt to fix some weird effects on tree node selection and refreshing logic. Unhides "Data" tab after creating a new table. Fixes issue #2148 . Details:
...
* Do process OnFocusChanged also while tree db refreshes, just avoid calling actEditObjectExecute.
* Make SelectedTable a property, rename to SelectedDbObj
* Remove calls to debug(), prefer LogSQL with lcDebug parameter
2010-09-15 23:09:43 +00:00
9a58fc526b
Load text file: Fix usage of wrong indexed db object when selecting a table via drop down box. Fixes issue #2174 .
2010-09-14 19:05:13 +00:00
6fa29605fd
SHOW VIEW may be not allowed. Disable VIEW editor in that case, but do not run regular expression into a no-match AV. Fixes issue #2159 .
2010-09-08 19:48:18 +00:00