231 Commits

Author SHA1 Message Date
0444ebbdb7 Issue #861: support hiding row id column through new preference checkbox 2023-10-12 07:27:00 +02:00
62f27dbf0a Add code for TClipboardHelper.TryAsText, missing in previous commit 2023-10-10 17:23:46 +02:00
9f05f5ff8b Fix crash in various places where we just try to get the current clipboard text 2023-10-09 07:24:24 +02:00
2d648c60bb Issue #861: fix crash in data grid when row id column has focus, and ensure that column never gets focus 2023-10-09 06:51:59 +02:00
5316e2c0da Issue #750: add Andi's reformatter on sqlformat.org as a third option to format the current SQL code 2023-10-02 18:18:01 +02:00
0be3f8a410 Issue #750:
* move code from apphelpers.ReformatSQL to reformatter.ReformatInternal
* remember last used formatter
* use ReformatInternal in texteditor (as previously ReformatSQL)
* display HTTP response content in error dialog (EIdHTTPProtocolException.ErrorMessage)
2023-09-24 18:59:21 +02:00
184b064f1b Sequal suggest:
* add combo box with recent prompts
* add Sequal logo with link in lower corner of dialog
* remove port number from API url
* unify user agent
* remember form dimensions and last prompt
2023-05-08 07:10:31 +02:00
d5acd1358a Basic implementation of Sequal Suggest as a dialog, under Tools. For generating SQL queries through natural language. 2023-05-01 16:08:12 +02:00
d9d1f26278 Auto detect need to create HTML clipboard header, remove CreateHTMLHeader parameter from StreamToClipboard() 2023-04-06 08:07:58 +02:00
85928522cf Refactor HTML clipboard code. See https://www.heidisql.com/forum.php?t=9893 2023-03-30 07:35:44 +02:00
a7d76c0916 Make HTML export format compatible to Google Chrome. See https://www.heidisql.com/forum.php?t=9893 2023-03-29 21:38:24 +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
075aa18bc7 Refactor: Move connection reference out of TSortItems.ComposeOrderClause, so the caller must pass it as a parameter 2023-01-22 13:34:01 +01:00
0e6d814e03 Replace two versions of TSortItem.Create with an even simpler TSortItems.AddNew function 2023-01-22 13:23:51 +01:00
7ff9b2e9b7 Refactor internal structures for grid/table sorting, prefer TObjectList over Array 2023-01-22 12:49:53 +01:00
4ccf6e07f8 Do not auto-create "c:\Users\Anse\Documents\HeidiSQL\", as we only use it for snippets which can also have a custom path. Closes #1751 2023-01-19 20:31:25 +01:00
d7689d5abf Issue #1721: Let the user disable a session's SSH tunnel configuration, similar to the SSL checkbox 2023-01-02 20:40:33 +01:00
1744ae02c5 Issue #1730: add preference option for disabling incremental search through typing in grids 2022-12-31 11:41:43 +01:00
ae883a0a80 Include some System.Generics.* units without using project's unit scopes or aliases 2022-12-29 17:59:23 +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
6219e928ea Issue #418: restart via task scheduler after build update, decreasing privileges to the normal user instead of administrator 2022-12-25 13:18:37 +01:00
2c609a6c61 Issue #1725: add history menu pulldown to global filter edit box 2022-12-09 16:46:08 +01:00
7b36063ec6 Add option to turn off warning dialog for active but unused SSL settings. See https://www.heidisql.com/forum.php?t=40080 2022-12-06 19:05:00 +01:00
78dd4c2bd2 Fix too narrow column widths restored with high DPI setting, due to Delphi's Round() function using the nearest *even* number. Use the better suited "kaufmännisch runden" approach. 2022-11-30 21:12:00 +01:00
7bea342b9f Make clicks on grid column headers configurable, so the user may disable it, preventing him from accidental sortings on large tables. See https://www.heidisql.com/forum.php?t=40026 2022-11-28 20:55:39 +01:00
def6ec67b1 Issue #1691: make timer interval for auto completion proposal configurable, while keeping 500ms as a default value. 2022-10-26 19:18:35 +02:00
59bb389650 Add preference option for adding timestamp to log messages. Helpful for debugging performance issues. 2022-10-20 18:47:10 +02:00
18b16e29eb Issue #1669: turn off always-format setting by default 2022-09-27 16:20:41 +02:00
f2a50aba63 Issue #1669: turn customize-highlighter button into dropdown button with additional items "Format code once" and "Always format code". Usable for SQL and JSON. 2022-09-27 11:10:43 +02:00
8e38e4ee99 Use empty default host/ip for new SQLite sessions, to avoid running into some out-of-memory issue. Closes #1602 2022-09-21 07:49:54 +02:00
47f5058ae3 Fix previous approach in TDBQuery.HasFullData and StrHasNumChars, which used CharNextW() and stopped at null bytes within binary strings. Again use Length() instead, but let it be longer than GRIDMAXDATA. Closes #1658 2022-09-18 11:33:53 +02:00
2ca233afbf Issue #1659:
* fix exception on closing customize dialog
* use empty string when converting clNone to and from web color, instead of #ffffff
2022-09-12 07:32:26 +02:00
ddca97c07a Issue #1659: create dialog for customizing highlighter colors and style, for use on grid text editor 2022-09-11 13:52:59 +02:00
770e469804 Strip comments from procedure parameters before parsing. Closes #1477 2022-07-18 14:45:26 +02:00
ce8a401cac Create context menu item "Empty recent filters" on database and table filter above tree view. See https://www.heidisql.com/forum.php?t=39447 2022-07-05 07:27:28 +02: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
9c1249bf7c TSHFileOpStruct.pFrom needs a trailing nul char, see https://stackoverflow.com/a/1594859/4110077 and/or https://docs.microsoft.com/de-de/windows/win32/api/shellapi/ns-shellapi-shfileopstructa?redirectedfrom=MSDN#members 2022-06-08 19:50:00 +02:00
9ec40f0703 When deleting tab backup file, delete it to recycle bin, for cases where the user did that by accident. Same for snippet file and overwritten export/zip file. See https://www.heidisql.com/forum.php?t=39355 2022-06-08 19:25:33 +02:00
25d15d8b41 Optimization: set up a single TSynMemo instance instead of all, e.g. when creating a new query tab 2022-05-25 13:16:27 +02:00
1ee23b1682 Issue #1351: optimize StrHasNumChars 2022-05-18 07:56:10 +02:00
bb608ff52c Make counting characters in TDBQuery.HasFullData more precise for diacritical characters. Fixes EnsureFullRow not doing its work when a cell contains some emoji. Reported in the forum: https://www.heidisql.com/forum.php?t=39239 2022-05-17 19:50:48 +02:00
354e984b37 Leave away delimiter at the end of a query batch, in one-go mode. Closes #1583 2022-05-10 07:30:39 +02:00
56262e50a4 Issue #1577: make apphelpers.SelectNode more intelligent, returning true/false to indicate whether it successful went through OnFocusChanging event 2022-05-05 19:13:42 +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
2ddb8451af Issue #892: support custom line break style when saving log panel contents or CREATE code tabs to file, using the existing "LineBreakStyle" option introduced in 59159c7afd8ea875b604d639bded105984b5e2c8. 2022-04-21 12:37:42 +02:00
c8d9bd716b Replace redundant ExtractBaseFileName() with TPath.GetFileNameWithoutExtension() 2022-04-13 07:29:10 +02:00
76f9a77637 Use default snippets directory if custom one is an empty string 2022-03-20 22:00:47 +01:00
2c5e64299d Issue #202: always assign randomly initialized HasNulls variable, to fix wrong read-only state in grid editor 2022-02-27 12:23:49 +01:00
61a08e0947 Issue #202: replace NUL characters in cell text with a space, and activate read-only mode in such cases 2022-02-26 17:38:20 +01:00