1201 Commits

Author SHA1 Message Date
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
d3b1cf80c9 End possible opened grid editor when tab focus changes, which unfortunately doesn't fire the OnExit event into the editor. Fixes issue #1273 2009-07-25 21:28:39 +00:00
e0761cedd9 Extend context menu of columns list in table editor with auto index creation/addition. Fixes issue #1269. 2009-07-25 19:35:09 +00:00
3ffeb708c1 Disable hottracking in non-Vista mode, looks ugly in XP but nice in Vista. Fixes issue #1263 . 2009-07-25 12:40:25 +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
af72ec197d Enhance r2530, immediate grid editing: Do not start editing if mouse click was outside any cell. 2009-07-25 09:20:12 +00:00
ea45014129 Experimental: Start editing by mouseclick into datagrid. 2009-07-24 06:25:08 +00:00
df9e9150b4 Now that all grid editors use MainForm instead of DataGrid as parent control, there is no need to leave extra space at the bottom of the tree to ensure larger editors keep visible. 2009-07-24 06:23:39 +00:00
6c0f5c9e9e Use preferred color in SET grid editor 2009-07-23 21:20:33 +00:00
c7da465f11 Do not use blended datatype colors for displaying a NULL default value in the table editor, instead use clGray. Seems to steel attention when everything's too much colored. 2009-07-23 21:08:04 +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
97839a0409 Prefer our own inplace editor for editing column names, length and other properties in the table editor. Fixes issue #1253 2009-07-22 20:23:31 +00:00
a6e0bb6dc8 Fix issue #1270, Table editor detects DEFAULT 'xyz' as DEFAULT NULL if table has collation 2009-07-22 20:18:41 +00:00
0c3bc34802 Fix issue #1265 2009-07-22 05:50:07 +00:00
c0f445185d Fix issue #1239: table copy from context menu copies wrong table 2009-07-21 06:10:18 +00:00
cd1000c601 The popup text editor is only called within the InplaceEditor. So it doesn't seem to have some advantage any longer to have an abstract base class for the memo and binary editor. 2009-07-21 06:03:30 +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
b12a115962 Add some intelligence to the table editor:
* Suggest length/set if required by newly selected data type
* Switch default value from NULL to empty string if "Allow NULL" was unchecked
2009-06-22 22:20:32 +00:00
3a5afde4d8 Table editor: Give default values a special color, leave text types black. 2009-06-22 21:57:04 +00:00
4ef58c5d89 Fix issue #1233: loop when SHOW VARIABLES fails. 2009-06-21 12:47:43 +00:00
923330d557 Fix issue #1234: "Empty table(s)..." / Shift+Del doesn't work in the database tree 2009-06-21 12:32:49 +00:00
ce155c1a98 Fix issue #1236 Wrong DEFAULT value detection in table editor 2009-06-21 12:24:19 +00:00
2d290595b5 Ask the user at application startup if statistic calls shall be activated. Otherwise that would be used by no one until a final release shows a checkbox for this feature in the installer. 2009-06-20 22:41:10 +00:00
ddbee4c536 Implement optional usage statistics call:
* Disabled by default, can be checked in preferences dialog
* If enabled, reports HeidiSQL revision and versions of recently used servers
2009-06-20 22:10:08 +00:00
0ab2599a17 Code cosmetic: Make CREATE and ALTER TABLE code more compact and readable by removing spaces between name/value pairs. 2009-06-18 19:45:14 +00:00
30f84c93a6 Use mainform's status panel and progressbar to display messages instead of a separate label on the table editor. 2009-06-18 19:33:51 +00:00
2f09c7760f A single quote in DEFAULT 'XYZ' and in COMMENT 'XYZ' gets escaped by single quote. Remove the escape char to fix duplicated single quotes in the end. 2009-06-18 19:12:56 +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
f6b4ac2a78 Add a workaround for a bug in SHOW FULL COLUMNS on 4.1 servers. Fixes issue #1224 2009-06-15 12:11:15 +00:00
33501d1a56 Minor graphical fix: Minimize gutter width in all TSynMemo's, tell them to auto-size themselves when more digits come. 2009-06-15 06:31:26 +00:00
88eb5e8b57 Minor optimization in TMainForm.LoadDatabaseProperties 2009-06-14 20:03:09 +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
f86330032e Table editor: Fix empty index and collation clauses and friends, in ALTER and CREATE TABLE statements, mentioned in issue #1203 . So the user gets a more specific error message 2009-06-13 10:20:16 +00:00
8b37a0bbaa Fix issue #1213: table editor columns misaligned 2009-06-13 06:58:54 +00:00
e684f8be78 Solve issue #1221 and issue #1222: unify window caption and taskbar text, and update them at the right event. 2009-06-12 18:29:59 +00:00