125 Commits

Author SHA1 Message Date
e6cb169193 Avoid unusable main form after failed session connect. Keep the old connection alive until it is verified that the new one is available. Moves code out of PerformConnect to DoAfterConnect.
Todo: Fix reconnection logic, see bug #858
2009-01-04 21:59:36 +00:00
58c034ded8 Add session menu items to main menu, submenu of "File" : "Connect to" 2009-01-04 15:54:07 +00:00
7ce39e4e58 Disable Zeos' disconnect message and create a nicer one in main.pas 2009-01-04 14:49:55 +00:00
bd797adebf Fulfill rfe #524: Ctrl+tab navigation 2009-01-04 14:34:57 +00:00
57efab6097 Implement connecting to a different session per connections pulldown menu. 2009-01-04 12:18:16 +00:00
4f74105032 Fix visible but unwanted tabs when lastUsedDB is empty 2009-01-03 21:19:18 +00:00
97879fa5a3 Fix handling of SessionName in command line mode 2009-01-03 21:08:18 +00:00
d6e40bef96 Use Main.SessionName as a replacement for FConn.Description. 2009-01-03 19:22:22 +00:00
d8246b485f Clean up start up routines:
* Merge code from ReadWindowOptions() into FormCreate()
* Move session unrelated stuff from InitConnection() to FormCreate() or - where necessairy - to FormShow()
2009-01-03 18:06:17 +00:00
909d31fd64 Simplify writing settings to registry:
* Keep only one TRegistry object in memory instead of creating a new one in each routine.
* Move out relevant functions and TRegistry object from main to helpers to make them usable globally.
2009-01-03 17:16:11 +00:00
9bd350cf58 Fix bug #934 2009-01-03 16:03:04 +00:00
9074d5b7ca Fix AV after cancelling connection dialog 2009-01-01 23:34:00 +00:00
f1b3f5501f Remove last traces of MDI (issue #513). Merges code, controls and events from childwin into main. 2009-01-01 23:24:36 +00:00
bc58797405 Implement per session background color selection for database tree. rfe #896. 2008-12-28 10:56:47 +00:00
d408dd3ba3 Code cosmetic: Printing list or grids doesn't make any difference now. 2008-12-27 19:47:30 +00:00
32c7c9e906 Add menu item "Copy grid data as SQL" to main menu. 2008-12-26 19:26:45 +00:00
561c5ad697 Add option to save grid data to SQL file. rfe #790 2008-12-26 19:21:40 +00:00
5a09fac960 Implement rfe #792: Copy grid data as SQL 2008-12-25 10:26:16 +00:00
6f600f281c Code cosmetic - use VT.Text[] instead of long named arrays in "HTML view" 2008-12-16 17:22:00 +00:00
3dd7e84220 Fix bug #915: HTML-View only export the first 256 characters in "Data" tab 2008-12-16 17:14:58 +00:00
9aca73cc5b Add inbetween panel to main statusbar, containing [line]:[char] for the query memo 2008-12-10 23:36:35 +00:00
9deb5391cd Fix bug #891: Wrong view loaded into view editor 2008-12-02 22:57:18 +00:00
2afcc9104b Fix bug #751 exporting a table: table is not marked in the export dialog 2008-10-20 23:38:31 +00:00
07cb5549e9 Remove a remainder of pre Delphi 11 support 2008-10-18 16:56:21 +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
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
d32d2e8661 Remove ToolbarTable completely from the main tool strip. Seemed worthless in terms of that I think all users rather use the context menu buttons instead of those on the toolbar which are far at the right top (= out of sight). Helps issue #738 a bit. 2008-09-25 22:20:11 +00:00
61c7d3246d Fix bug #757 error message when removing not-yet inserted row 2008-09-25 21:51:28 +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
09a42889b0 Fix bug #736 cannot drop a table when cursor is on top of the tree 2008-09-12 22:51:28 +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
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
44b8b70fb3 Minor cosmetic issue. 2008-09-02 20:17:33 +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
cc2f93b24e * Add a binary editor to allow editing (var)binary and (tiny|medium|long)blob fields without messing up NULs etc.
* Add a few notes about where AVs seem to randomly occur when GridPost{Insert,Update,Delete} and EnsureDataLoaded invokes the query logic from outside the main thread.

Fixes issue #659 as far as the grids go,  but not for export functions.
2008-09-01 21:46:28 +00:00
9a52593dc2 Use Vista's Segeo font for all forms by using the SetVistaFonts() in mainform plus the new routine InheritFont() which simply overtakes fontname and size from the mainform to all other forms. 2008-08-29 18:20:14 +00:00
76f2952a84 Try to fix issue #693 : Import CSV file: LOAD DATA fails with UTF-16 encoded file.
Pros:
- CSV/HTML/XML exports are now encoded as UTF-8, not UTF-16. Importing such CSV files should now work magically when using the Import CSV dialog.
- Exported files should now be significanty smaller when most content is latin1 encoded.
2008-08-28 16:05:56 +00:00
79d8db08b3 Support Unicode in list of wanted database names. 2008-08-19 21:35:04 +00:00
2d5c69a9cb Buttons/toolbar enhancement:
- Add missing "Cancel editing" button to main toolbar
- Add missing "Post updates" button to popupDataGrid
- Add shortcut "Ctrl+Enter" to "Post updates" action
2008-08-19 17:27:35 +00:00
9ae9a3a768 Refactor dataset2html/csv/xml routines:
- Use TMemoryStreams for copy actions, TFileStreams for export actions. Should save some memory when saving to files and improves performance by factor ~100 on larger grid results.
- Fetch text from the Grid.Text, not from the underlying TGridResult.Rows array. Fixes issue #685 .
- Removes non functionial export of image files from BLOBs
- Sanitize helpers function from GUI code (mousecursor, opening result file, ...)

Todo:
- Limit export to a user defined number of rows. Important for large tables.
- Fetch entire TEXT field content, currently limited to 256 chars
2008-08-18 21:55:59 +00:00
4adf27a845 Fix bug #678. Changes FSelectedTableColumns and FSelectedTableKeys to be properties, fetched on demand, set to nil to signalize they're invalid after renaming or deleting a column. 2008-08-13 21:31:15 +00:00
6e4cb43813 * Experimental: adjust row limit by dragging the data grid scrollbar instead of manually entering numbers in the toolbar.
* Experimental: fetch only first 256 bytes of large fields when loading rows into the data grid.
* Fixes rfe #362, rfe #459, rfe #475 and rfe #621.
2008-08-12 02:06:22 +00:00
2bf9736522 Correct a comment. 2008-08-11 20:07:25 +00:00
95b4b2a642 * Make virtual desktop name on application load, resolution change, monitor count change and monitor placement change.
* Store main window placement using above name.
 * Load main window placement using above name.
 * Fixes issue #568.
2008-08-11 19:54:20 +00:00
aabd4bbf57 Add some more support for databases and tables with unicode characters. 2008-08-08 19:32:24 +00:00
4c4387c155 * Close() yields mrCancel, remove the Close() call. The dialog closes anyway when a button is clicked, now with the correct modal result.
* Return an integer from ConnectionWindow() rather than Booolean, makes the code in caller easier to read.
* Close HeidiSQL if the user chooses not to connect to a server.
2008-08-08 10:17:50 +00:00
df37fb8be0 Terminology and similar updates (followup). 2008-08-08 08:22:42 +00:00
bf24403596 * Crashed tables were mistaken for views. Fixes issue #650.
* Add separate node type for crashed tables, so that some sort of a graphic can be associated with those.
2008-08-07 23:17:28 +00:00
7d168f5526 Now the memo editor has its own unit to live in the editor link should also live there. Moves relevant code from main and rename the object to TMemoEditorLink to be more clear. 2008-08-07 22:39:22 +00:00
6b17b239ba Give the memo editor its own unit + dfm file. Enables us to use the IDE for designing it. 2008-08-07 20:32:01 +00:00