119 Commits

Author SHA1 Message Date
db014bda03 Use custom tab width and tabs-to-spaces setting uniquely in all places where we generate code. Provides a new CodeIndent() helper. Closes #1330 2024-05-19 12:22:43 +02:00
f3ce46af4d Update VirtualTrees component code to release v7.6.6 from Jan 12 2024 2024-01-29 15:00:26 +01:00
f9297d4c7d Use the same hotkey (Ctrl+S) for saving a table/trigger/... as for saving a query file. Closes #1619 2023-11-03 12:43:07 +01:00
05a3e5df9a Update VirtualTrees component code to release v7.6.5a 2023-10-15 11:19:09 +02:00
d28d03b6dd Highlight active tab of most page controls, by adding greyscale icons to image list and using these for all inactive tabs. See https://www.heidisql.com/forum.php?t=41323 2023-10-03 13:34:28 +02:00
f2cc5124d3 Restore previous scroll position after saving routine, trigger, event or view. See https://www.heidisql.com/forum.php?t=40291 2023-01-26 09:57:42 +01:00
d96daa80b1 Issue #1738: revert recent VirtualTrees update, back on master branch from 2022-06-18. Could not get query threads to work in 64 bit mode. 2022-12-31 11:26:24 +01:00
84221a747b Update VirtualTree component to release v7.6.3 2022-12-29 12:01:26 +01:00
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
965e88b579 Delphi 11.1: fix VirtualTree package files, fix missing uses clauses, and some newly required type casts 2022-06-18 18:08:00 +02:00
c4085bed4e Refactor: move structures for specific network types out of dbstructures, into their own dbstructures.xxx.pas, and include const.inc in project sources 2022-04-23 11:38:26 +02:00
e27d9c1b96 Refactor: create and use self explanatory TDBObjectEditor.ObjectExists method 2022-04-22 12:42:37 +02:00
459925977d Disable save and discard buttons of routine editor temporarily while saving changes. Closes #616 2022-04-17 10:06:06 +02:00
e505b54bdd Issue #1503: fix unsaved setup of columns in lists on object editors (table + routine editors effectively are the only ones with lists) 2022-02-21 17:35:25 +01:00
142e26ec22 Issue #1503: move SaveListSetup and RestoreListSetup to extra_controls unit, and handle column widths DPI independently 2021-12-26 13:58:25 +01:00
9baeb9f018 Outsource large list of MySQL functions into separate .ini files, one per server type. Todo: definitions for SQLite and Interbase. 2021-10-11 21:32:55 +02:00
dd38ba4f6f Code cosmetic: rename implodestr() to Implode() 2021-06-03 08:32:06 +02:00
c6d9af9a3a Separate Create > "Stored routine" menu item into two, one for procedures and one for functions. Closes #987 2021-01-17 14:37:34 +01:00
3eb3480e1c Get rid of global esc() function (which always refers to MainForm.ActiveConnection) and prefer the method's or unit's connection object instead 2020-05-10 13:41:15 +02:00
bb86bf4944 Don't auto-fit width of columns in routine parameter tree. Just store and restore what the user has set. Closes #903. 2020-02-22 16:47:18 +01:00
56e541a478 Introduce read-only mode for grid editors. Closes #631 2020-02-06 12:29:35 +01:00
340cd5066c Unify name and case of information_schema, per connection. Finally. Closes #855 2020-01-16 08:03:20 +01:00
1c39075d7c Issue #852: Implement Assign method on TTableColumnList and friends, TDBObject.LoadDetails and .UnloadDetails, and cross fingers that assigning details to Mainform.FActiveDbObj reduces the number of internal queries 2020-01-16 07:40:30 +01:00
53b8f544c2 Remove useless DPI helper panel from tabs in routine editor, table editor and table tools dialog 2019-07-25 07:44:04 +02:00
db9e76bd78 Move code from TDBObjectEditor.GetDefiners to new TDBConnection.AllUserHostCombinations 2019-07-22 07:44:19 +02:00
71d9ef9011 Same as for TExtForm: translate in TDBObjectEditor.OnCreate, not in all derived editor classed 2019-07-22 07:28:07 +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
2ebbdc6ba3 Issue #718: Fonts may still be too large because the monitor on which a form is created has DPI > 100%. Calculate DpiScaleFactor based on that first monitor. See https://www.heidisql.com/forum.php?t=34230 2019-07-18 19:08:32 +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
1d6a415f5f Refactor: rename mysql_structures unit neutrally to dbstructures 2019-06-22 14:26:41 +02:00
8927b6849c Fix misplaced buttons on procedure editor in high dpi mode. Closes #482. 2019-01-14 19:05:32 +01:00
cdb10d8005 Required code updates for recent VirtualTreeview update 2018-12-11 21:50:26 +01:00
aeba457257 Fix increasing height of upper table editor area on each table click. Closes #405. Also fix double-scaled controls on routine editor. 2018-11-25 14:46:04 +01:00
9983792b17 Issue #213: nest everything on broken TTabSheet's on a TPanel, to avoid overscaling in high-dpi mode 2018-11-01 19:05:00 +01:00
3759611c34 Issue #8: convert system colors applied by code into their theme color 2018-10-27 17:47:16 +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
a50c21a383 * unify context menu of various sql editors, by supporting all contained editors instead of searching for one with the name "SynMemoBody"
* disable actions which need to modify the contents on readonly editors
* add "save to textfile" and "un/comment" actions to the unified context menu
2017-05-18 13:10:59 +00:00
dec6f9ee63 Set each procedure parameter on its own line, and remove some tabs. See http://www.heidisql.com/forum.php?t=21166 2016-04-27 18:08:00 +00:00
ac8d6bb560 Add splitter on procedure editor. See http://www.heidisql.com/forum.php?t=21106 2016-04-13 17:27:40 +00:00
285007f9ad Only make first part of data type to uppercase, not the part in parentheses. See http://www.heidisql.com/forum.php?t=17845 2015-02-22 17:06:43 +00:00
e6e9560cf8 Open new help page on "Help" buttons of the various object editors. 2014-11-09 12:00:41 +00:00
8c3775fe0f Add "Save as textfile" action, and include that in routine editor > "CREATE code" tab > context menu. Fixes issue #3486. 2014-05-08 04:50:59 +00:00
25b471be0e Auto-uppercase data types of routine parameters. Fixes issue #3497. 2014-03-10 04:01:30 +00:00
fc015e61bd Let ParseRoutineStructure() cache values from IS.ROUTINES into TDBObject members. Fixes issue #3108. 2013-02-21 11:19:44 +00:00
95ab784008 Finally fix ramshackle detection of routine body. Fixes issue #3103, #3104. 2013-02-08 11:25:12 +00:00
28409cf78b Work around empty body detected in ParseRoutineBody, and get it from information_schema.ROUTINES in that case. See http://www.heidisql.com/forum.php?t=12075 . 2013-02-07 21:09:21 +00:00
39926ac729 Remove properties FFullDatatype, Connection and Datatype from TBaseGridEditorLink, for the benefit of a new property "TableColumn", which has everything we need. Using this TableColumn property, the data grid editors can now read the LengthSet attribute of the source column, which we need to read + write the microseconds part of DateTime values. Add some additional code to make editing microseconds peachy. Fixes the second part of issue #3003. 2012-12-24 13:12:25 +00:00
0dd802d13f Do not use translated words for CREATE/DROP code in routine editor:ApplyModifications. Fixes issue #3053. 2012-12-09 12:45:48 +00:00
fcc6ffee5b Follow up to r4266, issue #3051: Fix selection of the right routine type, based on the itemindex, not the combo box text. 2012-12-09 09:42:19 +00:00
3ef3092b42 Do not use translated combo box text for CREATE code, in routine editor. Fixes issue #3051. 2012-12-08 21:17:05 +00:00