Ansgar Becker
62dbda76ff
SQL completion proposal: Be more exact when detecting the current query and its table aliases, don't mix that up with a potential following or preceding query. See also http://www.heidisql.com/forum/viewtopic.php?p=3419
2009-08-07 16:41:40 +00:00
Ansgar Becker
386187b99d
Also stop at comma and parenthesis in detection of previous token. Fixes issue #1242
2009-08-05 19:26:30 +00:00
Ansgar Becker
08fcaa813b
Enable missing auto completion popup on new query tabs
2009-08-05 19:09:19 +00:00
Ansgar Becker
a4f2e2aee8
Ignore a dangerous shortcut pressing when neither DBTree nor ListTables has focus. Fixes issue #1284
2009-08-05 19:01:30 +00:00
Ansgar Becker
d9c317277d
Prefer an image over a text character on the tab close buttons - the character was nice but displayed differently in Bulgaria. Fixes issue #1283
2009-08-05 18:47:49 +00:00
Ansgar Becker
f21a81e057
Fix fallback to default collation when that is missing in a SHOW CREATE DATABASE result. Fixes issue #1246
2009-08-05 17:51:30 +00:00
Ansgar Becker
16e84c282c
Add some safer logic to find out if a given tab is a query tab
2009-08-04 19:29:16 +00:00
Ansgar Becker
a965b30441
Add a button right beside the last query tab which can open a new query tab, so it's more clear that we have multi tabs now.
2009-08-04 19:19:24 +00:00
Ansgar Becker
36e9dabd15
Repair position of tab close buttons when tabs reveal or change their caption length.
2009-08-03 23:22:31 +00:00
Ansgar Becker
7e9fcc6586
Implement multiple query tabs. Fixes issue #443 .
2009-08-03 23:16:16 +00:00
Ansgar Becker
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
Ansgar Becker
0e15201c71
Again, found a table with ON UPDATE CURRENT_TIMESTAMP clause which was not correctly detected. Fix case sensitiveness.
2009-07-27 22:38:07 +00:00
Ansgar Becker
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
Ansgar Becker
be834ab34a
Fix detection logic in table editor for columns which allow NULL. Fixes issue #1270 .
2009-07-27 22:15:57 +00:00
Ansgar Becker
c15654aacb
Do not eat last char of data type, using .+ in regular expression. Fixes issue #1260 .
2009-07-27 20:10:05 +00:00
Ansgar Becker
7a91fa36f6
Move auto refresh main menu items to a dropdown menu on main refresh button.
2009-07-27 18:53:51 +00:00
Ansgar Becker
4d9d5a1ff7
Enable multi row selection in table editor's column list. Relevant functions adjusted:
...
* Add to index
* Create index
* Remove Column(s) (=> makes the "Clear columns" button superfluous)
2009-07-26 19:45:02 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
ea45014129
Experimental: Start editing by mouseclick into datagrid.
2009-07-24 06:25:08 +00:00
Ansgar Becker
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
Ansgar Becker
6c0f5c9e9e
Use preferred color in SET grid editor
2009-07-23 21:20:33 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
a6e0bb6dc8
Fix issue #1270 , Table editor detects DEFAULT 'xyz' as DEFAULT NULL if table has collation
2009-07-22 20:18:41 +00:00
Ansgar Becker
0c3bc34802
Fix issue #1265
2009-07-22 05:50:07 +00:00
Ansgar Becker
c0f445185d
Fix issue #1239 : table copy from context menu copies wrong table
2009-07-21 06:10:18 +00:00
Ansgar Becker
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
Ansgar Becker
6e979b1706
Remove no longer used variable.
2009-07-21 06:00:29 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
0cc1172ad1
Fix hint height calculation in data type selector. Should fix issue #1252 .
2009-07-08 21:23:00 +00:00
Ansgar Becker
2a619ab46b
Cancel editing in data selector when editor is unfocused (fixes issue #1251 )
2009-07-08 20:52:50 +00:00
Ansgar Becker
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
Ansgar Becker
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
rosenfield.albert
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
Ansgar Becker
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
Ansgar Becker
6e28b38208
Fix issue #889 : Using TAB in edit-mode fails after focus on DATETIME field
2009-06-29 06:05:10 +00:00
Ansgar Becker
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
Ansgar Becker
5979e356e0
Auto-enlarge current tree column so the text in the edit is not cut
2009-06-27 09:23:25 +00:00
Ansgar Becker
fd1385c7d2
No need to hide a component when it gets destroyed anyway nanoseconds later.
2009-06-27 09:16:31 +00:00
Ansgar Becker
d04d5e2c6e
Store and restore cursor position in new date/time grid editor
2009-06-27 09:15:01 +00:00
Ansgar Becker
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
Ansgar Becker
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