446 Commits

Author SHA1 Message Date
dd306fbc64 Switch from yellow selected but unfocused cells to light blue background + black foreground. Hopefully fits somehow with most customized system colors. 2008-10-21 19:07:22 +00:00
3596975672 Only draw the focused grid cell using highlight fg/bg colors if multiple rows are selected. 2008-10-21 18:56:38 +00:00
90df5d3b29 Fix yet incompletely fixed bug #565 Post pending UPDATE when switching tables in data tab. Datagrid changes are now posted with the correct table name before any other table or db is selected. 2008-10-21 00:26:34 +00:00
1e2aa237b1 Ensure visibility of the just selected table in dbtree, for cases in which the table was autoselected via ListTables.DoubleClick or arrow_up/down within tree. 2008-10-20 23:05:13 +00:00
67cb14d1ef Find a better place for autosizing the second dbtree column. Fixes the column content from being cut at startup after loading the previously selected database. (Totally minor + cosmetic) 2008-10-20 22:57:32 +00:00
7ed97b3fe2 Fix bug #814 Query Tab Splitter 2008-10-20 22:36:17 +00:00
27783f402f Fix bug #791 missing background color on selected rows. Switches to full row selecting if more than one node was selected. 2008-10-20 22:08:09 +00:00
4e7a9723b3 Fix AV mentioned in issue #801 AV on "Set NULL" with no focused row in datagrid 2008-10-19 17:18:03 +00:00
f44d56a051 Usability enhancement: Colorize any unfocused cell in a focused row with clInfoBk (mostly light yellow). Helps with identifying the focused row. 2008-10-19 13:06:36 +00:00
8dc8c63c5b Fix bug #801 Set NULL cause Access Violation Error 2008-10-19 12:49:19 +00:00
89dd84b7e1 Fix unfocused grid on the second arrow_down, broken in r1871 2008-10-19 12:24:57 +00:00
0e11fdd184 Fix bug #795 : AV when inserting two rows.
Could be more pretty as the second arrow_down unfocusses the grid somehow and no new row is appended. Anyway, cosmetic now.
2008-10-19 10:53:55 +00:00
f4add11ea3 Work around VirtualTree's annoying behaviour when focussing a cell. The focused cell was horizontally centered previously, now the grid just scrolls as few as it needs to make the cell completely visible. Works for both Data and Query grid.
See also
* r1745
* r1758
* issue #700 (comment #5)
* issue #724
2008-10-19 10:34:59 +00:00
e7874bc4b7 Update UniSynEdit to latest version from October 3, 2008 (no repository available unfortunately)
* Merge with heidi related changes (basically only SingleLineMode)
* Readd missing file changelog.htm to keep that file list consistent with the downloaded one
* Merge our own compiler detection again
* Disable including a further compiler includefile jedi.inc
2008-10-18 13:09:16 +00:00
1306731b3c Fix width of info label above datagrid after resizing the window. Was too small always. 2008-10-16 23:59:18 +00:00
a591edebac Fix bug #714: Impossible to change limit^H^H^H^H^H^H sort order by implementing a fourth button with dropdown menu, enabling the user to save all query elements in one settings. 2008-10-16 23:49:17 +00:00
e14ec336e5 * Bugfix: where clauses can contain Unicode characters.
* Bugfix: don't add cell data for a row which were not found by the server.
* Bugfix: pop up a dialog if an INSERT or UPDATE unexpectedly failed.

Fixes issue #456.
2008-10-10 01:23:49 +00:00
35be9c3621 Fix bug #783 AV after while inserting record 2008-10-10 00:41:03 +00:00
4cf1864921 Enable customizing SQL colors for identifiers, delimited identifiers, conditional comments and symbols. 2008-10-08 19:12:20 +00:00
c8991495a7 Workaround: reclaim used memory when TVirtualTree crashes in allocation of child nodes. The correct fix would be to postpone creation of child nodes until they are actually needed (dynamic allocation), but I'm not in a mood to learn how TVirtualTree internals work and Mike didn't seem too eager to produce a fix, so this is it for now. Fixes issue #761. 2008-10-08 17:56:24 +00:00
3f8545d805 Implement rfe #763: Average columns for certain status variables 2008-10-05 14:35:20 +00:00
6f5e66bb96 Fix bug #780 (selected column in datagrid unclear) by highlighting the focused cell only instead of the full row. Probably needs some other row indicator now for cases in which the focused cell was scrolled out of sight. 2008-10-05 09:39:30 +00:00
d61070ef23 Fix bug #773 : Renamed column + column selection breaks grid editing 2008-09-30 17:18:20 +00:00
31ab8481aa Fix bug #772: cannot change value after set NULL 2008-09-30 16:56:12 +00:00
af6948f706 Fix annoyances in the filter memo:
* Do not steel focus if a filter is actice and F5 was pressed to refresh the grid
* Do not update memoFilter if a filter was not changed. Avoids the cursor to be moved to the left top.
* Add undo break before each automatic change, so these changes can be undone via Ctrl+Z
2008-09-30 16:52:54 +00:00
9f4a88e521 Fix bug #770 Data table don't is updated on edit, only on refresh 2008-09-28 23:16:41 +00:00
bd3143baa3 Fix bug #769: Query columns don't clear on update 2008-09-28 22:41:08 +00:00
c87d75efae Implement a simple crash indicator for SELECTing a table's data. This boolean registry value is always set directly before executing the relevant GetResults(). If the query succeeds, the indicator gets just removed directly after that GetResults(). If the table loads for a longer time and the user exits HeidiSQL by killing the process, the indicator is still present and will be used to automatically disable filtering and sorting when that table is loaded again. Helps with issue #714 . See also http://www.heidisql.com/forum/viewtopic.php?p=2638 for a user report which this fix is addressing. 2008-09-28 22:29:08 +00:00
609fcedcb2 Fix double masked tablenames in completion proposal, when finding column names after having typed "sometable." All we can do to fulfill rfe #639 "Back quote adding to tooltips fields that have spaces in them". The second suggestion was to display tables in the proposal after having typed "somet" [Ctrl+Space] . That *could* be done by adding the backtick to SynCompletionProposal1.EndOfTokenChr list of chars. But then again this would stop the first mentioned example from working (listing all column names after "sometable`.") which has - I'd say - more weight. 2008-09-25 22:46:21 +00:00
b15e0bf230 Fix reproducable part of issue #715: After dropping a db and recreating one with the same name the old tables were listed. 2008-09-25 21:19:39 +00:00
fd9c44b576 Implement background colors for NULL fields, part 2 of rfe #692 2008-09-23 23:20:20 +00:00
0ef84eb62f Implement preference options to enable/disable the new SET editor, plus color selection for the grid font in SET fields. 2008-09-23 22:33:06 +00:00
df880e0a27 Implement SET editor, rfe #764 2008-09-23 22:04:35 +00:00
a13b26cca0 Fix bug #760: Cannot drag column into query 2008-09-23 16:57:03 +00:00
3694fcfe01 Fix bug #754 grid not refreshed correctly after modifiying a record value when filter condition set 2008-09-21 22:18:14 +00:00
b9724a5aaf Fulfill rfe #750: Field editor - allow non quoted literals for default value 2008-09-17 20:25:00 +00:00
c880527ed8 Fix regression in previous revision: various code used an external variable that was moved to a place where setting it avoids race conditions. 2008-09-17 09:23:39 +00:00
9d2bb7697b Follow-up to r1791: a few more markers. 2008-09-17 09:14:26 +00:00
6167bbfc5d Follow-up to previous change: setting RootNodeCount on a TVirtualTree consumes a fair amount of memory, so include that in the relevant debug scope too. 2008-09-17 09:10:17 +00:00
88514afa0f Add markers to help debug issue #691.
To see them, run Sysinternals' DebugView (dbgview.exe) and filter by "mem: ".
2008-09-17 08:58:05 +00:00
cd7401d5af Previous change done right. Or so I hope. 2008-09-17 08:32:47 +00:00
cf07b2f397 Bugfix: typo causes memory leak on form close. 2008-09-17 08:30:04 +00:00
02ae49f203 Fix bug #749 : size of tables truncated to unreadable in the tree 2008-09-16 20:29:15 +00:00
87619ed69e Column width tweaking: Only memorize manually resized column sizes for the second refresh of a table, always do the auto calculation for non resized columns. Especially helpful when clicking a column for sorting, which then needs some extra space for the sort glyph. 2008-09-13 16:12:53 +00:00
fda3e0eb36 Enable printing grid content by using VirtualTree's Print method instead of a homebrown one. Optimizes various controls and code away from the printer dialog. 2008-09-13 10:30:00 +00:00
7e6b2b407f Fix bug #741: Switching from host node to table node in tree should activate table tab, not database tab 2008-09-12 23:26:02 +00:00
1476547afc Fix bug #735 invalid pointer operation, broken in r1766 2008-09-12 23:12:44 +00:00
1f194b4ba4 Tweaks for column width detection:
- Try to fix width for primary key columns which use bold font and need some more space then Canvas.TextWidth tells.
- Sort glyphs only belong to the header so add it early enough
- Minimize needed extra space, difference caused by using Tree.GetDisplayRect now
2008-09-12 22:36:23 +00:00
3805830818 Minor fixes for query grid filling:
- Optimize it using Begin/EndUpdate
- Unselect any nodes from previous result
- Reset view area to top left
2008-09-12 21:38:02 +00:00
d2f354275b Fix name, default value and meaning of preference option "Maximum column width". By default it's 300 now. 2008-09-11 22:44:28 +00:00