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
b18866b252
Fix unresponsive Esc key in binary cell editor. Fixes issue #1861 .
2010-04-17 11:30:54 +00:00
b1ab76e0ba
Display first available text column value when editing InnoDB contents. Fixes issue #1849 .
2010-04-14 22:45:12 +00:00
f451d061eb
Introduce 2 new columns in Host > Databases: "Last modification" and "Events". Plus:
...
* enhance db object lists for storing additional details like last modification and data size
* remove home brown Min() and Max() functions and use those from Math unit which are not restricted to Integers.
2010-04-11 12:03:07 +00:00
5aa9b33cbd
When pressing Tab key in grids and the next column does not allow editing, just focus it, instead of jumping to the next editable cell. Fixes most situations described in issue #1677 .
2010-02-11 13:53:06 +00:00
1f39e59940
Disable non working column default values for given data type. Fixes issue #1519 .
2010-01-17 16:12:35 +00:00
5890aad90f
Do not pass <Enter> key to parent grid, if radio button or checkbox on default editor is currently focused. Fixes issue #1605 .
2010-01-17 13:31:49 +00:00
0d8653db6a
Override VirtualTree's incremental search event, make it case insensitive, and apply that event in FixVT to various lists and grids, which have IncrementalSearch enabled. Fixes issue #1605 .
2010-01-17 10:50:47 +00:00
9080ad7607
No need to use the Wide* version of string functions any longer.
2010-01-15 20:28:48 +00:00
52ea8f410a
Use Unicode enabled TStringList instead of TWideStringList in all places. Should have no visible effect, apart from a very minor performance optimization, as String reference pointers are handled by Delphi, WideString by Windows.
2010-01-14 19:41:58 +00:00
a4652d39a4
* Fix compiler warnings due to implicit AnsiString to (Unicode)String or vice versa
...
* Remove workaround for Unicode text to and from clipboard
* Fix writing/reading wrong encoded text into/from registry - no need to use Utf8Encode() any longer
* Implement TMySQLQuery.ColAsAnsi() for cases in which we read binary data.
2010-01-07 00:00:56 +00:00
7d401ffde8
Upgrade to Delphi 2010:
...
* Removes TNT Unicode controls, which are no longer required. All VCL controls now have native Unicode support.
* Remove Delphi 11 packages, otherwise we would either need to keep TNT or break Unicode
* PngComponents update from Uwe Raabe on http://cc.embarcadero.com/Item/26127
* Adjust auto build process
* Since Delphi 2009, Strings are now UnicodeStrings, not AnsiStrings any longer. Fix a bunch of compiler errors which came along with this change.
TODO: Project should compile but give tons of compiler warnings.
2010-01-05 23:14:33 +00:00
e356cb7ed7
Sanitize all "uses" clauses from unneeded unit references.
2009-12-22 23:19:56 +00:00
6ebdea449b
Browse to previous cell when pressing Shift+Tab in editing mode. No need to post messages for this logic. Fixes issue #1407 .
2009-12-21 20:05:32 +00:00
43fe695bc1
Make SHOW KEYS FROM <selected-table> and SHOW COLUMNS FROM <selected-table> superfluous. To achieve that, move parser for SHOW CREATE TABLE string from table editor to helpers unit, where it can be called by everyone. For consistency reasons the index list in table editor is converted from a TWideStringList to a TObjectList, like both table and foreign key list. However, that results in a large diff here.
2009-12-04 21:20:06 +00:00
2a57b0e1a7
Reserve slightly more needed space for a checkbox so its label "ON UPDATE CURRENT TIMESTAMP" is fully visible. Fixes issue #1334 .
2009-08-31 19:59:00 +00:00
9e731a78e1
Allow columns to have no default value at all. Important for TEXTs and BLOBs which cannot have one. Fixes issue #1261 .
2009-08-30 18:31:31 +00:00
8cfb99e0c6
Avoid a second round trip via EndEdit() and Destroy() after the editor was unfocused. Lead to an access violation in the second Destroy() call. Fixes issue #1304 .
2009-08-23 18:23:39 +00:00
4d7a301b78
TInplaceEditorLink.EndEdit() was called twice, first time via OnKeyDown event, second time implicitly by OnExit event. So the session was renamed, then again tried to renamed which caused the error "Session already exists". Fixes issue #1303 .
2009-08-18 18:49:59 +00:00
6517a04eff
Implement creation and editing of foreign key constraints in a separate new tab on the table editor. Fixes issue #400 .
2009-08-16 20:32:37 +00:00
74b36d8524
Do not overwrite FCellFont after adjusting its color. Fixes issue #1295
2009-08-15 18:17:49 +00:00
2cd3e99596
Placing a grid editor needs to leave space for various stuff left besides the edited text, e.g. the plus/minus button, an image and level indentation. Fixes issue #1293 .
...
A similar calculation is done in TBaseVirtualTree.GetDisplayRect(), only with lots of more logic. So this change may not be the last in TBaseGridEditorLink.GetCellRect().
2009-08-15 13:39:04 +00:00
2e7022a945
Bold font for primary key columns in table editor. Icons for all key columns, similar to earlier versions of ListColumns on mainform. Feels very useful for a quick look when the index editor is mostly not active.
2009-07-29 20:50:41 +00:00
b0595a7cd7
White background for column default editor - fits better into grid editing stuff as the tree also has white background. Forms with gray background appear like a foreign object here.
2009-07-27 22:33:25 +00:00
00cbfa7a08
Apply correct background color to grideditors (inplace + datetime), for cases where columns are sorted and have a gray background.
2009-07-26 08:45:21 +00:00
6d338d515f
Avoid flicker when any grid editor starts. This time, call Repaint before sending WM_SETREDRAW to avoid graphical glitches.
2009-07-25 09:49:19 +00:00
33937818a2
Default value editor: Set focus on checked radiobox to ensure the OnExit event can be fired and close the editor
2009-07-23 21:01:58 +00:00
0c3bc34802
Fix issue #1265
2009-07-22 05:50:07 +00:00
6e979b1706
Remove no longer used variable.
2009-07-21 06:00:29 +00:00
d37c7b9dc9
Fix non responding up and down arrows in date time cell editor when cursor is positioned right besides last segment.
2009-07-21 05:59:34 +00:00
886f67cb62
Refactor grid editors unit: Implement a base class with all stuff which was implemented redundant previously and let all other editors descend from this class. Saves ~300 lines of code and makes implementing new editors easier.
...
Additionally this implements tabbing through edited fields for all grid editors. And it fixes issue #1266 , issue #1267 , issue #1253 , issue #1178 , issue #1155 , issue #825 and issue #566 .
2009-07-20 23:07:28 +00:00
21b60479f6
Allow arrow up and down in the new data type selector, and enable incremental searching. MouseClick or Enter applies the value now.
2009-07-09 21:01:20 +00:00
0cc1172ad1
Fix hint height calculation in data type selector. Should fix issue #1252 .
2009-07-08 21:23:00 +00:00
2a619ab46b
Cancel editing in data selector when editor is unfocused (fixes issue #1251 )
2009-07-08 20:52:50 +00:00
ce42e054ff
Minimize the borders of the new data type selector, they should not be too thick for an inplace editor. (Only applies for Windows XP without theming)
2009-07-08 20:48:17 +00:00
a1ab1d8a9a
Data type selector: Do not set tree width to the parent column's width, which is mostly too small. Rather do an autofit on the first column so it's as wide as the text needs space.
2009-07-08 20:11:01 +00:00
c2221ae50f
Rename 'Text' to 'Custom' to make it clear that integers are entered here too.
...
See also http://www.heidisql.com/forum/viewtopic.php?t=960
2009-07-08 13:31:04 +00:00
e2b252a906
Implement a new datatype selector for the table editor, including groups, datatype colors and help hints. Fixes issue #1214 and issue #1165 .
2009-07-07 23:31:16 +00:00
6e28b38208
Fix issue #889 : Using TAB in edit-mode fails after focus on DATETIME field
2009-06-29 06:05:10 +00:00
890fb5eed6
DateTime editor: Shorten the timer delay before auto counting gets started to a subjectively better value.
2009-06-27 09:27:06 +00:00
5979e356e0
Auto-enlarge current tree column so the text in the edit is not cut
2009-06-27 09:23:25 +00:00
fd1385c7d2
No need to hide a component when it gets destroyed anyway nanoseconds later.
2009-06-27 09:16:31 +00:00