131 Commits

Author SHA1 Message Date
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
00414d9585 Leave NULL date/time values in grid untouched if user did not modify default value. Fixes issue #2708. 2012-02-07 00:23:12 +00:00
a83ca1c544 Follow up to r4002 and issue #2656: Set focus to textbox only if it's already shown, to avoid "Cannot focus a hidden or disabled control". 2011-12-30 13:02:54 +00:00
d1c25d0182 Focus textbox when user clicks "Custom" in default-value selector. Fixes issue #2656. 2011-12-26 23:21:38 +00:00
2fffb9d9b7 Silence EAccessViolations in TWinControl.WMKeyDown. Fixes issue #2439. 2011-06-06 20:00:15 +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
e3661efd58 Column type detection must not use the type index as enumerator any longer, as not all type indexes are used for all dbms. Fixes issue #2365. 2011-03-31 19:40:38 +00:00
a6d2271988 Avoid accessing connection object if not available, to fix an access violation in session manager when pressing "new". See http://www.heidisql.com/forum.php?t=8064 2011-03-30 05:22:39 +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
98300c9bd5 Make SET cell editor resizable, and store and restore its dimensions. Fixes issue #2212. 2010-11-13 21:16:36 +00:00
e6abc640dd Keep ignorance of DateToStr exceptions in date/time grid editor, but raise everything what can happen apart from that. 2010-10-19 21:57:46 +00:00
da114cfa32 Add support for large and negative TIME values in grid editor. Fixes issue #2203. 2010-10-19 21:45:36 +00:00
8e17e4a999 Fix date time grid editor for YEAR data type. Fixes issue #2078. 2010-07-20 06:29:14 +00:00
f49c871d31 Immediately call popup text editor for cells which either contain line breaks or huge text over 100k. Fixes issue #1651. 2010-07-16 17:44:56 +00:00
c0da6e5a21 Refactor "Copy table" dialog:
* Replace checkboxes, radio buttons and checklistbox by a VirtualTree using checkbox support
* Support selecting/deselecting single indexes
* Support foreign keys
* Place a SynMemo at the bottom in which the user can type an optional WHERE clause to filter incoming data. Fixes issue #2000.
* Move code for SQL generation into TTableColumn etc.
2010-06-14 00:21:33 +00:00
10ae384a81 Avoid attempt to access item index -1 of internal value list when nothing is selected in an enum editor. Fixes issue #1903. 2010-05-10 18:37:07 +00:00
593520dc1b Prefer server over local date/time as default value when starting grid editor on a NULL date/time. Fixes issue #1835. 2010-05-08 17:05:38 +00:00
05b07eb8f2 Implement editing capabilities into TMySQLQuery, and make query results editable by using all the same events as in DataGrid. Most probably some bugs to fix now.
* Fixes issue #723
* Fixes issue #873
2010-05-05 21:39:15 +00:00
016105220c Lower part of data type selector in table editor is hidden when exceeding lower edge of mainform. Decrease its height in such cases so that does not happen. Fixes issue #1864. 2010-04-18 09:40:50 +00:00