Commit Graph

1775 Commits

Author SHA1 Message Date
Ansgar Becker
059b7ebe56 Left instead of right alignment for "Rows" and "Size" columns in "Database" tab, now that these columns display colored bars, that looks nicer. 2010-03-12 21:39:39 +00:00
Ansgar Becker
1540c74d31 Missing change for r3124 - wrong column type detection 2010-03-12 21:29:42 +00:00
Ansgar Becker
e417eef591 Datagrid: To reduce network traffic and loading time, reintroduce the old LEFT() strategy for potentially large columns. 2010-03-12 21:27:19 +00:00
Ansgar Becker
1e7b3e235c Decide for a slightly darker gray value for non-focused cells of selected nodes. Fixes issue #1757. 2010-03-11 21:59:43 +00:00
Ansgar Becker
1e13ecae2a ListTables.OnBeforePaint is a fine place to check if db objects in active db are already cached. Also, there is no need to clear the whole cache after renaming a table. Fixes issue #1755. Fixes issue #1758. 2010-03-11 21:55:50 +00:00
Ansgar Becker
680389a7a6 Slightly enhance colors of selected grid cells:
* Use system default colors for highlighted cell
* Do not colorize a focused cell in a non-selected node, so it does not look as if it's selected
2010-03-10 20:45:32 +00:00
Ansgar Becker
20048c230a Fix empty table name in SELECT and following AV when hiding tabs auto selects the data tab for a millisecond. Reproducible when you have the table editor open and click a different database in the tree. 2010-03-09 23:45:42 +00:00
Ansgar Becker
f7ee77561b Display colored bar for table size and row count columns in ListTables, and for process time column in ListProcesses. Also, extend the preferences dialog so this color can be customized and/or disabled. 2010-03-09 23:30:44 +00:00
Ansgar Becker
b2b84ba47a Extend "about" menu item with version string, so the session manager's system menu also shows it. 2010-03-08 23:31:38 +00:00
Ansgar Becker
7bb3cfdfb5 Ensure both overloaded SelectNode procs do the same with the desired node. 2010-03-08 23:23:37 +00:00
Ansgar Becker
d35815de77 Code cosmetic: rename showstatus to ShowStatusMsg 2010-03-08 23:21:34 +00:00
Ansgar Becker
8baeb35652 Fix stuff on "Import Textfile" dialog:
* Store settings in FormDestroy instead of btnImportClick
* Restore settings in FormCreate instead of FormShow
* Turn editFilename into a TButtonedEdit, including the file browse button
* Turn SpeedButtons for column moving into a TToolbar, to remove hackish code for assigning icons
* Increase dropdown items on charset pulldown, to decrease the need to scroll.
2010-03-08 23:07:17 +00:00
Ansgar Becker
f3f8e540c9 Various AVs (e.g. after SessionConnect) caused by ListTables nodes, still bound to old TDBObject items. Fixes issue #1747. 2010-03-08 21:13:47 +00:00
Ansgar Becker
9f02608e62 Strip "CHARSET xyz" from routine body. Fixes issue #1744. 2010-03-08 21:05:21 +00:00
Ansgar Becker
987154e5ae Slightly increase minimum dimensions of user manager dialog. Fixes issue #1746 2010-03-08 19:07:06 +00:00
Ansgar Becker
e6b70f0647 Accidentally deleted event for previous commit 2010-03-08 07:15:06 +00:00
Ansgar Becker
31db8b4b61 Display focused row and column number of active grid in status bar 2010-03-08 07:10:49 +00:00
Ansgar Becker
65d0b59eba Minor: Reset highlighter's list of table names when selecting a new db and not having fetched its objects. 2010-03-07 17:37:27 +00:00
Ansgar Becker
cc0b931551 Internal refactoring: Directly bind TDBObject's to nodes in ListTables, instead of copying everything to an internal array structure first. Most events on ListTables have their own procedures now. Also, when selecting a database in the tree without expanding it and a query tab is selected, do not fetch objects. Could annoy some SQL writers which won't see the objects in selected db highlighted in that case. On the other hand this avoids loading objects in situations where you don't need them. For larger databases this should be really helpful, e.g. for the reporter of issue #1742. 2010-03-07 09:46:49 +00:00
Ansgar Becker
c1db0a2b7a Restore focused cell in data grid for tables which were selected before. Fixes issue #1586. 2010-03-06 11:54:36 +00:00
Ansgar Becker
553bcc54c7 Include HTML portion when copying SQL to clipboard, so rich text applications like MS Word get highlighted SQL. Fixes issue #1740. Todo: Find out why OpenOffice Writer does not accept these HTML fragments. 2010-03-06 08:46:37 +00:00
Ansgar Becker
527fcb0ba5 Session manager bugs: When clicking "New" and the selected session has modifications, RefreshSessionList caused the new session name to disappear which then again caused AVs. Different click situations fixed here. Fixes issue #1741. 2010-03-05 00:24:26 +00:00
Ansgar Becker
9d29e1876c Turn filter input box into a TButtonedEdit, and add a "X" button to the right edge which clears its content. 2010-03-04 20:18:26 +00:00
Ansgar Becker
5e4238fa7f Minor: Just process initialized nodes in DeInitializeVTNodes(). Can produce AVs otherwise on startup, and makes superfluous loops on non initialized ones. 2010-03-03 23:49:23 +00:00
Ansgar Becker
b8fd48a6cb After setting grids to multi line mode their vertical scrollbar was not updated. Fix that. Additionally, let FixVT() do what's required instead of doing that in OnInitNode respectively the "Apply" action on the preferences dialog. 2010-03-03 23:46:01 +00:00
Ansgar Becker
bc487d089c Avoid AVs when index lists are in editing mode and user clicks "Remove" or "Clear" button. Fixes issue #1733. 2010-03-02 23:23:02 +00:00
Ansgar Becker
c426bc5e16 Enable variable node height in data and query grids. Customizable as number of lines per row. Fixes issue #1082. 2010-03-02 23:11:48 +00:00
Ansgar Becker
8f92ee7f3f Use folder/magnifier icon instead of blue folder from Crystal icon set. 2010-03-01 22:30:42 +00:00
Ansgar Becker
0ad436e7dc Fix wrong maximum length restriction in popup text cell editor. Seems PMYSQL_FIELD._type returns wrong FIELD_TYPE_BLOB on a MEDIUMTEXT field - should be FIELD_TYPE_MEDIUM_BLOB. Also, other properties such as PMYSQL_FIELD.length and PMYSQL_FIELD.max_length return nonsense values here. 2010-03-01 22:05:43 +00:00
Ansgar Becker
8c1fafc491 Organize controls on session manager into 3 tabs "Settings", "SSL options" and "Statistics", so less important stuff does not spam the initial screen. 2010-03-01 21:41:24 +00:00
Ansgar Becker
458b4c3acf Introduce a more simple strategy in data tab grid for loading data:
* Load in OnBeforePaint, if the tree's tag is set to NOTLOADED
* Load 1,000 rows in one step, up to a maximum of 100,000 rows. Both values are customizable.
* Load next chunk when user presses PageDown on the last node, or, more explicitly, when user clicks "Next rows" button
* Should fix all AVs which seem to be a timing issue with loading data on demand.
* Fixes issue #1675, fixes issue #1580, fixes issue #1721, fixes issue #1734, fixes issue #972
2010-03-01 16:44:36 +00:00
Ansgar Becker
5c37b3024d Old servers need TYPE instead of ENGINE in CREATE TABLE statement. Fixes issue #1732. 2010-03-01 07:52:23 +00:00
Ansgar Becker
15d698dfdb Do not truncate contents of column contents if it contains NUL chars. Fixes issue #1731. 2010-02-27 15:10:43 +00:00
Ansgar Becker
243b9bbe17 Item caption for "Add to index" > [Primary Key] should always be "PRIMARY", not a custom name. Fixes issue #1726. 2010-02-26 22:58:10 +00:00
Ansgar Becker
f37811e46b Remove database name from UPDATE and INSERT queries, triggered by data tab grid, making it consistent with DELETE queries. Seems that queries including the database name get ignored on replicated servers. Should have no effect in Heidi when we remove it. Fixes issue #1727. 2010-02-26 17:03:26 +00:00
Ansgar Becker
8a00d312fa Routine comments can have single quotes escaped by single quotes. Fixes issue #1728. 2010-02-26 16:53:51 +00:00
Ansgar Becker
4e84c99a72 Introduce SSL support on session manager. Code parts from SuperNiFF. Fixes issue #518. 2010-02-26 00:13:17 +00:00
Ansgar Becker
f9ea5dc1ec Add support for startup SQL script on session manager. Fixes issue #1716. 2010-02-25 20:45:16 +00:00
Ansgar Becker
3e4d47d1c9 Don't prompt more than one time if a table, trigger etc. should be saved, after user clicked "No" and focused a different db tree node. Fixes issue #1715. 2010-02-24 23:07:17 +00:00
Ansgar Becker
601edef305 Realign most controls on SQL help dialog, sanitize them from weird paddings and margins. Remove statusbar which was just there to display the size grip in the lower right corner. 2010-02-24 22:53:45 +00:00
Ansgar Becker
19fa02b4c6 Add filter input above SQL help tree. Fixes issue #1718. New code mostly from SuperNiFF. 2010-02-24 22:22:22 +00:00
Ansgar Becker
b730230b09 Add "EXPLAIN query" to context menu of process list. Fixes issue #1717. 2010-02-24 18:56:29 +00:00
Ansgar Becker
c9950e1c51 Keep EXPLAIN link disabled if selected process is a SHOW command or even has an empty SQL. Fixes issue #1717. 2010-02-24 18:46:37 +00:00
Ansgar Becker
06333f36bf Only replace updater tool in temp directory if it has become outdated. Avoids annoyance for users which have whitelisted this .exe in their antivirus or whatever software. 2010-02-23 23:32:49 +00:00
Ansgar Becker
524faddf7e Fix enabled EXPLAIN link on startup and avoid AVs on click, as long as no FocusChanged event has fired. 2010-02-23 23:15:08 +00:00
Ansgar Becker
25be03a4b0 Parse result of SHOW CREATE PROCEDURE, instead of querying information_schema.ROUTINES, which seems broken as escaped quotes appear non-escaped here, on a 5.1.22 server. Fixes issue #1713. 2010-02-23 21:25:48 +00:00
Ansgar Becker
e3be57c4ee The new EXPLAIN feature needs to prepend a "USE dbxyz" to the EXPLAIN, or that will only run without error if the user has selected the relevant database. 2010-02-23 18:25:48 +00:00
Ansgar Becker
06dd22af9d Again, increase length of fetched SQL column from 10kb to 50kb, so it's less likely that we cut important queries. Fixes issue #1714. 2010-02-23 18:21:43 +00:00
Ansgar Becker
64cfe945da Tweak help menu items:
* Link issue tracker instead of separating them for bugs + features
* Rename "user to user forum" into "Support forum"
* Add "Changelog" item
2010-02-22 09:29:40 +00:00
Ansgar Becker
484fcdbd46 Place a "EXPLAIN" link label to the process viewer, which creates a new query tab and executes "EXPLAIN [selected process query]". 2010-02-22 08:56:13 +00:00