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
ee2dc0b4b3
Adjust extra pixel addings to auto column width calculation. Seems necessairy on some machines (tested on w2k).
2008-09-11 22:33:46 +00:00
e5f42100ca
Do auto calculation of column widths also in the query results
2008-09-11 22:19:07 +00:00
d9ea3f3c9e
Implement auto calculation of optimal column width for DataGrid. Nothing stored in registry yet which is probably not really needed, if this automatism works fine enough. Fixes issue #732 .
2008-09-11 22:01:03 +00:00
1526f793ed
Don't ORDER BY xyz in SELECT COUNT(*) for datagrid preparation. Could possibly enhance performance on huge tables.
2008-09-09 23:27:51 +00:00
d93f3754f6
Fix bug #565 : Post pending UPDATE when switching tables in data tab . To be exact, there are two events which call actDataPostChanges now: 1. Switching to another table or refreshing the current one and 2. closing the whole form .
2008-09-09 22:59:25 +00:00
f1ff6e3eb6
Block the grid fields from getting NULLs via menuitem "Set NULL" or the mapped shortcut (Shift+Ctrl+N) if the table is also blocked for normal editing because of insufficient keys.
2008-09-09 21:54:29 +00:00
c85fd08c2e
Block editing of tables with only unique keys which allow NULLs in any of their columns. Fixes the contamination part of issue #720 . The AV was fixed before, I guess in r1767.
2008-09-09 21:34:14 +00:00
2221317a2c
Bugfix: (regression) missing space caused SQL error.
2008-09-09 10:05:58 +00:00
4efb511b95
* Bugfix: after an edit, a new row which did not match the filter was included in the grid.
...
* Bugfix: the entire width of all fields of edited columns were loaded, instead of a limited view.
* Bugfix: (follow-up to above) one too many rows were included in RootNodeCount after less rows were matched than expected from the data source.
* Bugfix: some memory was not released as early as it could've been when less rows were matched than expected from the data source.
Hopefully fixes issue #730 .
2008-09-08 16:09:20 +00:00
be23b392ae
Bugfix: some buttons were not disabled when canceling a change where no edits had happened. Fixes issue #729 .
2008-09-08 14:40:12 +00:00
1812171221
Terminology change: 'Changes' instead of 'Edit' in CancelChanges (and PostChanges), since 'edit' is used heftily in context of the data grid, where it means editing a single cell (as opposed to a whole row, which the former applies to).
2008-09-08 12:06:19 +00:00
64dcdc14a7
Bugfix: change the enable/disable code for data buttons into "enable this button when this and that condition is true" and put the logic in ValidateControls. Call ValidateControls in various appropriate places. Fixes issue #713 .
2008-09-08 11:35:40 +00:00
d819dfe8cd
Enhancement: Make it optional to display the tables/db sizes in the tree. Rightclick -> "Display sizes"
2008-09-07 20:29:18 +00:00
75efa8358e
Fix bug #728 cannot open the tree with cursor keys after starting HeidiSQL
2008-09-07 16:01:07 +00:00
efbadf5b58
Fulfill rfe #692 "Add color-coding settings to data-appearance tab in preferences". Including new default color for ENUM fields and settings to enable/disable the grid editors.
2008-09-07 15:13:24 +00:00
2fd3e5485c
Fix issue #722 Keyboard shortcut problem
2008-09-07 06:08:37 +00:00
1a3031414a
* DPI fix: The node height of editable Virtual Trees was still not optimal as an editing node didn't have enough height to show the editing cursor. Steal some code from StdCtrls.TCustomEdit.AdjustHeight which does basically what we need here.
...
* Detected the VirtualTree.Header.ParentFont property and activated that instead of fixing the header font in FixVT
2008-09-06 18:38:51 +00:00
86d034b7d0
* Exclude "0x" from XML and CSV files, making the hex strings easier to parse on import.
...
* Handle NULLs explicitly in HTML export.
* Switch CSV import defaults to match those used by export. Helps with issue #709 .
2008-09-04 13:07:48 +00:00
1defb9eaa6
* Bugfix: default enclose/separate for CSV should be " and ;. Takes care of export part of issue #709 .
...
* Indicate in CSV files which rows need to be UNHEX()ed with LOAD DATA INFILE during import. Takes care of export part of issue #709 .
* Optimization: stop copying records and arrays to stack where appropriate. See also note in helpers.pas.
* Factor out code to extract a cell in it's full width into EnsureFullWidth().
* Create method DiscardData() to release memory for a row.
* Bugfix: GridTo{Xml,Csv,Html} did not export cells in their full widths; they do now. Fixes remainder of issue #685 .
* Bugfix: remove superfluous field separator at end of each CSV record.
* Bugfix: CSV field enclose characters within field data must be escaped by printing the enclose character twice, as per de-facto (is it a standard when there are hundreds of applications supporting it, but *all* the major ones all come from the same company?..) CSV.
* Indicate in CSV files which cells are NULL by removing field enclosing (non-standard MySQL CSV extension).
* Indicate in XML files which cells are null and which cells are in hexadecimal format.
* Bugfix: always escape <, &, > in HTML and XML files.
2008-09-03 21:53:45 +00:00
0115bfa2ce
rfe #708 : No indicator of changed row . Adds a red small triangle at the top left corner of a modified cell. Background colors don't work here as the cell always has the selection color before modifications get posted.
2008-09-03 19:32:25 +00:00
18a9b29af6
Fix bug #710 : No CSV options on Vista by switching to a standard TSaveDialog.
2008-09-02 19:38:24 +00:00
2efb248325
Virtual Tree needs a further fix for usage with custom DPI settings: its default node height is hardcoded and only works for 96 DPI. Make that dynamically by checking the grid's font height. Fixes issue #705 : Unreadable text on Vista
2008-09-02 18:34:39 +00:00