150 Commits

Author SHA1 Message Date
bcce290a57 Issue #937: * disable the call to Tree.SetFocus in TBaseVirtualTree.DoEndEdit, which ends the grid editor when tabbed into a new cell. See de863b4417
* reveal exception messages happening in the main control's WindowProc to the SQL log panel
2020-07-17 07:47:52 +02:00
8b548862de Prefer String.IsEmpty over self-baken IsEmpty(String) 2020-07-04 08:12:17 +02:00
08597e18a8 Issue #935: cancel editing in grids other than query result grids, when main page control tab changes. Fixes crash when changing tab while editing a column via table editor. 2020-03-26 11:33:06 +01:00
56e541a478 Introduce read-only mode for grid editors. Closes #631 2020-02-06 12:29:35 +01:00
6c77fc7bc3 Remove the SHAutoComplete() call to revert the solution for #144 - this introduces too many new bugs. 2019-10-08 19:26:51 +02:00
0daecec22f Revert 355db1403aff5c7d061962f3ca21c62bcd8001f8 for #144, which makes the Tab key ineffective. Closes #765 2019-10-07 20:27:21 +02:00
355db1403a Issue #144: Let grid editors call TExtForm.FixControls on their MainControl, to support Ctrl+Backspace there. 2019-09-25 20:39:54 +02:00
1d6a415f5f Refactor: rename mysql_structures unit neutrally to dbstructures 2019-06-22 14:26:41 +02:00
d039aad9be Issue #74: turn expression + on update edit boxes into drop down boxes, with known MySQL functions in them 2019-04-29 14:30:15 +02:00
9fc7150a9f Issue #74: attempt to support all kinds of expressions in column DEFAULT + ON UPDATE clauses 2019-04-21 15:40:18 +02:00
fe3660b274 Fix crash in checklist cell editor, eg used for column selection in foreign key list. Closes #473. 2019-01-13 13:54:28 +01:00
cdb10d8005 Required code updates for recent VirtualTreeview update 2018-12-11 21:50:26 +01:00
f5cc9efc4f Display column name in title bar of popup blob editor. Related to #395. 2018-12-05 21:22:09 +01:00
6d4d4e0d97 Display column name in title bar of popup text editor. Closes #395. 2018-11-28 20:58:51 +01:00
a119aa0cbc Make memo box for data type help text slightly higher, so the contained text does not lead the last line to be hidden. Closes #398. 2018-11-19 20:10:35 +01:00
b6d10d0462 Issue #8: fix crash when leaving any grid editor per OK/Cancel button, e.g. the column default editor 2018-11-13 18:59:29 +01:00
4c75d24b4c Issue #8: give the info text memo a 1px border, so its background color does not mix with the underlying panels or whatever is behind it. 2018-11-09 18:02:12 +01:00
3759611c34 Issue #8: convert system colors applied by code into their theme color 2018-10-27 17:47:16 +02:00
e2ff578834 Try to fix access violation in table designer, after click on "Add column" button. See https://www.heidisql.com/forum.php?t=25418#p25767 2018-09-30 18:43:19 +02:00
4bde1c213e Show 16 instead of only 8 items in drop down menus of grids. Closes #90 2018-02-18 12:05:24 +01: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
9228488032 Finally fix the weird EAccessViolation in TCustomComboBox.KeyDown. Fixes issue #3461. See also various forum threads, and the latest one of them: http://www.heidisql.com/forum.php?t=18325 2015-05-05 18:32:03 +00:00
5a5eaabeef * Fix microseconds in MSSQL date/time data types, hidden in data and query grids.
* Add support for microsecond precision of MSSQL date/time types in table editor, show these in "Length/Set" column
* See http://www.heidisql.com/forum.php?t=17728
2015-03-01 18:21:59 +00:00
aa6ed7d9dd Fix non working addition of new columns in MySQL. See http://www.heidisql.com/forum.php?t=16948
PostgreSQL: Detect all array style types as unknown type, e.g. TEXT[].
2014-11-14 17:09:08 +00:00
f832178eec Allow applying CURRENT_TIMESTAMP to DATETIME columns. See http://www.heidisql.com/forum.php?t=16715 2014-11-02 13:33:25 +00:00
3a169b8a27 Support data types with spaces in them, for example "DOUBLE PRECISION" on PostgreSQL. See http://www.heidisql.com/forum.php?t=16072#p16169 2014-08-21 18:14:37 +00:00
c330f78514 Remove obsolete code 2013-11-01 15:18:32 +00:00
5e9d3d828f Fix usage of no longer present constant, removed in previous commit. 2013-11-01 14:57:13 +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
821c6cb4db Fix various compiler warnings and notices 2013-11-01 06:17:52 +00:00
317bf5e88e Get code running in both XE + XE5 compilers:
* Conditionally including units does not really work, because of a IDE bug: http://stackoverflow.com/questions/13776195/how-to-conditionally-include-some-units . So, we define a unit alias for System.Actions in XE, which we do not need in XE5.
* Dynamically use the fitting numeric type per compiler for a TUpDown.OnChangingEx event.
2013-10-20 08:29:28 +00:00
dc1bf33ad4 Since recent update to VT 5.2.1 we need to initialize root nodes by hand for some reason. Fixes issue #3389. 2013-10-17 15:01:22 +00:00
6dd9e896f9 Revert r4538 (ctrl backspace bug), as this broke tabbing through grid cells. See issue #3168. 2013-10-07 16:56:04 +00:00
ddaaa7b34e Get Ctrl+Backspace hotkey to work in grid inplace editor, by enabling autocompletion + autosuggestion. Fixes issue #3168. 2013-09-29 08:09:04 +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
51c27f7a27 * Silence various compiler warnings about non initialized variables.
* Globally turn off platform warnings
2013-07-16 04:45:28 +00:00
8b36ccdce3 Display values in grid columns which the user explicitly sets to be a UNIX timestamp in date/time format. Fixes issue #3215. 2013-06-08 04:27:48 +00:00
108c5037aa Turn column default text memo into a TButtonedEdit, and use a right button drop down menu which displays ENUM and SET values. Fixes the ENUM+SET part of issue #1160. 2013-05-10 05:12:41 +00:00
d03ae628cc Reposition default value editor so it's not outside the main form. Fixes issue #2868. 2013-02-24 10:13:26 +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
645a9f3c7f Make message strings from const.inc translatable 2012-11-29 06:15:44 +00:00
9d8b4cd83a Make more inline strings translatable. 2012-11-28 23:27:31 +00:00
80d41dcc9e Fix typos and optimize a bunch of translations. Technical stuff such as variable names and version numbers should not be subject of translations. 2012-11-27 21:26:59 +00:00
f96288fce9 Translate string variables and literals in .pas files. TODO: translate constants. 2012-11-26 05:44:01 +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
5cb54b3711 Remove helper function ToggleCheckListBox, replace the few callers with simple code alternatives 2012-05-01 06:50:57 +00:00
40234cd3f4 Work around a magic automatic TAB key arriving the pulldown grid editor if the user got into this cell via TAB. Only seen for a TComboBox with style=csDropDown. Fixes issue #2809. 2012-03-31 10:56:44 +00:00
af3f590723 Use one color pulldown for setting grid text colors, not one per data type. Use all TDBDatatypeCategory's here, so this introduces a separate color for floats and integers, which were "numeric" before. 2012-02-27 22:16:05 +00:00
cc09d87dc3 Try a blank default date/time value for grid editing. Hopefully fixes issue #2708 finally. 2012-02-15 09:24:45 +00:00
21a6381a3c Move modified flag to the right place. Fixes issue #2709. 2012-02-07 21:09:16 +00:00