Ansgar Becker
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
Ansgar Becker
1476547afc
Fix bug #735 invalid pointer operation, broken in r1766
2008-09-12 23:12:44 +00:00
Ansgar Becker
09a42889b0
Fix bug #736 cannot drop a table when cursor is on top of the tree
2008-09-12 22:51:28 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
e5f42100ca
Do auto calculation of column widths also in the query results
2008-09-11 22:19:07 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
48a0f43644
Get rid of no longer used includes.
2008-09-09 21:44:19 +00:00
Ansgar Becker
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
rosenfield.albert
5959297f2d
Bugfix: we're not Internet Explorer, so stop pretending to be.
2008-09-09 11:21:58 +00:00
rosenfield.albert
2221317a2c
Bugfix: (regression) missing space caused SQL error.
2008-09-09 10:05:58 +00:00
rosenfield.albert
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
rosenfield.albert
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
rosenfield.albert
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
rosenfield.albert
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
Ansgar Becker
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
Ansgar Becker
75efa8358e
Fix bug #728 cannot open the tree with cursor keys after starting HeidiSQL
2008-09-07 16:01:07 +00:00
Ansgar Becker
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
Ansgar Becker
5aa13c8195
Preferences dialog: Make data appearance options more compact, giving room for coming data color + editor options. Rename components reasonably.
2008-09-07 09:03:59 +00:00
Ansgar Becker
2fd3e5485c
Fix issue #722 Keyboard shortcut problem
2008-09-07 06:08:37 +00:00
Ansgar Becker
672b5aec84
Revert r1745 to fix issue #724 "grid does not scroll when using the left or right cursor key". Will have to find a better way to avoid annoyance like described in issue #700 .
2008-09-07 06:01:07 +00:00
Ansgar Becker
82740972fe
Rounding for copy tabe dialog:
...
- Fix cut labels using Vista font
- Fix wording in several places
- Normalize positions of controls, use default 8px margin to form edges
- Put a "Select / deselect all" checkbox below the field selection box
- Move registry related constants to const.inc and normalize their names
2008-09-06 19:19:07 +00:00
Ansgar Becker
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
rosenfield.albert
ff25e466d6
* Bugfix: fix issue #717 .
...
* Rely on IsFloat instead of a more obscure check to determine float values.
2008-09-05 12:28:00 +00:00
Ansgar Becker
ca726ca567
Normalize node heights in dbtree and all other virtual trees, make them slightly less high. Keeping 120 DPI compatibility for editing boxes.
...
Cosmetic todo: Fix Vista selection colors and tree collapse/expand buttons
2008-09-04 19:22:35 +00:00
rosenfield.albert
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
rosenfield.albert
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
Ansgar Becker
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
Ansgar Becker
502d15cca1
CSV import: Allow charset selection on server versions 5.0.38 +, but not on 5.1.0 to 5.1.17
2008-09-03 17:27:47 +00:00
Ansgar Becker
562e44782f
Remove no longer relevant and unimportant name from the "Thanks" box in the about dialog, move the others around in a better order of importance.
2008-09-03 06:09:00 +00:00
Ansgar Becker
789e6672d6
LOAD DATA with charset is supported since MySQL 5.1.17. On prior versions it makes no sense to fill the comboCharset on the Import textfile dialog.
...
See http://dev.mysql.com/doc/refman/5.1/en/load-data.html
2008-09-02 23:21:44 +00:00
Ansgar Becker
cc901ae8d3
Fix bug #693 Import CSV file: LOAD DATA statement breaks data if the CSV file has a different charset than the current DB. Implements the discussed pulldown on the first page of the dialog, below the file input. Defaults to UTF-8 selection.
2008-09-02 23:11:05 +00:00
Ansgar Becker
48aca3d928
Disable VirtualTree's totally annoying autoscroll feature for both DataGrid and QueryGrid. Just seen and then focused fields tend to get lost for the eye.
2008-09-02 21:51:17 +00:00
rosenfield.albert
44b8b70fb3
Minor cosmetic issue.
2008-09-02 20:17:33 +00:00
rosenfield.albert
c1e48c3bf5
Bugfix: buffer length is the input buffer, not the output buffer.
...
Bugfix: HexToBin() will simply stop when hitting invalid characters, make sure the buffers are valid in that case (should add code to raise an exception).
2008-09-02 20:09:55 +00:00
Ansgar Becker
18a9b29af6
Fix bug #710 : No CSV options on Vista by switching to a standard TSaveDialog.
2008-09-02 19:38:24 +00:00
Ansgar Becker
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
Ansgar Becker
c15f1ce7a5
Vista, Field editor: Work around for higher DPI settings no longer needed using the Segeo font. Instead, fix the pulldown's ItemHeight in that case which per default only fits for 96 DPI.
2008-09-02 18:22:18 +00:00
Ansgar Becker
ff5480682a
Fix bug #706 Unintuitive connection buttons. At least the buttons are completely visible now in all DPI modes.
2008-09-02 17:44:34 +00:00
rosenfield.albert
5c9a096179
Use WideFormat() instead of Format().
2008-09-02 15:07:25 +00:00
rosenfield.albert
881da41fa0
* Export binary data to SQL without corruption.
...
* Add todo notes in GridTo[Xml,Csv,Html}.
* Whitespace adjustments.
Partly fixes issue #659 .
2008-09-02 15:05:02 +00:00
rosenfield.albert
807484ab6e
Use Format() where appropriate.
2008-09-02 14:19:58 +00:00
rosenfield.albert
952cdd5a18
Fix a wrong comment.
2008-09-02 09:32:36 +00:00
rosenfield.albert
5d877d7f18
Avoid overflowing the target compatibility box.
2008-09-02 07:21:23 +00:00
rosenfield.albert
883cd1e7d8
Avoid mucking with other client applications character_set_connection: do not emit a SET CHARACTER SET into exported SQL files. Instead rely on the receiving application to correctly interpret files in Unicode format.
2008-09-02 07:14:33 +00:00