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
d04d5e2c6e
Store and restore cursor position in new date/time grid editor
2009-06-27 09:15:01 +00:00
96708f385c
Implement a user friendlier grid editor for date and time columns, based on a TMaskEdit + TUpDown, rather than Windows' hopelessly limited picker control. Fixes issue #1219 : Impossible to enter 00:00:00 (midnight) in data grid
2009-06-27 00:24:16 +00:00
9db8a6c6ea
Detect all column properties from a SHOW CREATE TABLE result, instead of SHOW FULL COLUMNS, so the missing ON UPDATE CURRENT_TIMESTAMP can be taken into account. The new parsing part in is probably slightly unstable yet, although tested on 4.0, 4.1 and 5.1 servers. Fixes issue #1133 .
2009-06-18 19:02:07 +00:00
d26d93aefa
Sanitize MySQL structure unit:
...
* Remove old, unused code (TMysqlIndex, TMysqlField)
* Move relevant code from helpers to mysql_structures unit
* Rename various stuff to more compact names
* Use ordinal values instead of constants for datatypes and their categories
* Replace TGridColumn.IsXYZ boolean's by a new .DatatypeCat property
2009-06-14 19:45:48 +00:00
a9ded30c49
Remove debug output from r2467
2009-06-09 18:40:02 +00:00
6c4b998069
Fix issue #1204 : unable to delete a "0" char in Default field in the table editor
2009-06-09 18:38:50 +00:00
6deb924b13
Fix issue #1159 : Defaults editor in table editor partly hidden in bottom columns. Moves the defaults editor various calculated pixels to left and top so it fits into the client area.
2009-06-08 19:18:36 +00:00
60d300b75a
Fix non resizable columns with an activated TEnumEditor by removing a non working Vista-fix. Setting TComboBox.ItemHeight is effective only in OwnerDraw mode which we do not have here.
2009-06-06 06:17:13 +00:00
8ca38b4e48
Fix issue #1161 : Enum editor pops up in the upper left corner
2009-06-06 06:12:34 +00:00
3d0682bea5
Fix issue #1174 : Table editor, column editing: Let Esc cancel the defaults editor and Enter accept changes.
2009-06-05 17:32:47 +00:00
b665ea93df
Fix issue #1167 and friends: "Cannot focus a disabled or invisible window" in active + hidden enum editor
2009-05-25 20:16:23 +00:00
ea71eb13f9
Fix issue #1132 : Error on Create Table in the Table Editor
2009-05-16 06:00:12 +00:00
7f32b33505
Issue #436 : Implement a new table editor dialog. Nukes both create + alter table dialogs.
2009-05-12 22:24:09 +00:00
eadeed1ae2
Use helper methods where possible, and leave GUI stuff in form units.
2009-04-28 22:35:00 +00:00
f6a6379e20
* Fix text editor getting original celltext instead of already modified text from inplace editor.
...
* Set modification flag on popup editor in that case.
* Nukes duplicated error message from r2387 (see issue #1097 ).
2009-04-26 16:29:09 +00:00
a827f68509
Work around for issue #1097 : Text editor mangles text containing NUL. Pops up a warning if text contains one or more #0 chars and removes all of them for editing.
2009-04-25 18:08:31 +00:00
f20dad8adb
Implement stored routine editor, see issue #420
...
Todo: make routines visible in the database tab so they can be edited.
2009-02-28 22:57:55 +00:00
b69c3b7957
Add F2 shortcut to inplace editor for starting the popup text editor. Issue #947 .
2009-01-19 19:39:17 +00:00
e1402e48e6
Don't assume there were changes for a changed and then reverted grid cell content
2009-01-16 23:25:10 +00:00
f1b3f5501f
Remove last traces of MDI (issue #513 ). Merges code, controls and events from childwin into main.
2009-01-01 23:24:36 +00:00
bce67dc113
Fix bug #812 : unable to edit time of datetime in datagrid. Displays two picker controls on datetime and timestamp columns to overcome a limitation of the TDatePicker, which allows either the date or the time portion to be edited but never both of them.
2008-12-28 16:27:21 +00:00
f7a4832169
Fix bug #907 : Editing a ´set´-field (can't see dropdown when record is the last row on screen). Adds extra space below the last row so that the SET editor is fully visible.
2008-12-15 12:44:13 +00:00
04cb62571e
Fix transparent SET editor, mentioned in issueid #884
2008-12-02 22:38:09 +00:00