247 Commits

Author SHA1 Message Date
4a607ac702 Fix status/processes lists to update their state after the filter was modified. 2009-05-21 15:48:29 +00:00
cde5558bbc Remove code around "ValidateControls(*False*)" - a remainder of MDI times, where the mainform needed to know whether there is an open child window or not. Rather use a "Sender" parameter to be able to use it for various GUI events. 2009-05-19 23:30:55 +00:00
a92c3ed489 Fix issue #1089: Pressing Ins in filter textarea inserts new data line 2009-05-19 23:02:07 +00:00
321195e6a6 Fix duplicated SELECT data queries, broken in r2418 2009-05-19 22:46:46 +00:00
d139ab355d * Replace all "Edit table|view|..." buttons and menuitems by one single "Edit" item.
* Move "Create table|view|..." items into a submenu and have one single "Create" item
* Remove all above mentioned buttons from the main toolbar, leaving them in the context menus where there function is more predictable
* Streamline context menu of db tree and database tab
Fixes issue #1139, issue #1124, issue #1108, issue #820, issue #738, issue #595
(The diff tends to be unreadable here, as there are many automatic GUI adjustments after having removed a toolbar)
2009-05-19 22:37:22 +00:00
bc33729fdd Issue #436: Remove table tab from main tabs, and old field editor. Both were replaced by the new table editor. Doubleclicking a table opens the data tab now. 2009-05-17 16:02:28 +00:00
5eb2420efa Needed changes after VirtualTree update 2009-05-17 05:51:28 +00:00
20e21f6cc4 Try to fix issue #1127 and issue #1131 (handling float numbers in grids). Do not convert them back and forth using MakeFloat + FormatFloat. Breaks rfe #1012 and r2320 . FloatField.AsString returns an exponent number in various cases which is compatible between MySQL and Delphi. Only those exponent numbers must not be quoted in an SQL sentence - which fixes this commit. 2009-05-16 18:13:56 +00:00
5209995eed Enable (re)storing a VirtualTree layout on different forms without naming conflicts in registry. Plus: use that in the new table editor. 2009-05-12 22:41:24 +00:00
7f32b33505 Issue #436: Implement a new table editor dialog. Nukes both create + alter table dialogs. 2009-05-12 22:24:09 +00:00
3c48505494 Display a message regarding stored routines only when such an item is selected in the tree. 2009-04-29 13:21:15 +00:00
6c984b7be5 * Bugfix: wrap Tree.{Begin,End}Update in try..finally.
* Bugfix: avoid calling AutoCalcColWidths() from finally, since it can easily throw an exception.

Fixes issue #1111.
2009-04-29 13:06:20 +00:00
57b6530789 Bugfix: Seems that I broke the row counter statistics while doing InnoDB fixes. 2009-04-28 23:22:33 +00:00
eadeed1ae2 Use helper methods where possible, and leave GUI stuff in form units. 2009-04-28 22:35:00 +00:00
d25e271591 Detect and process NUL characters before giving loaded SQL to SynEdit. Works around issue #1093. 2009-04-28 21:16:18 +00:00
cbcdf27bbd Work around issue #1094: SQL editor silently converts newlines. By showing a popup info, saying that file contains mixed line breaks and they were converted to Windows breaks. 2009-04-21 22:26:43 +00:00
40ada7b69c Related to issue #1094: Try to handle consistent, non-Windows line breaks in query editor, so e.g. a loaded Unix text later gets saved using Unix breaks rather than Windows breaks.
This should also heal query execution for e.g. a loaded Unix text but it doesn't - queries always have Windows breaks when they arrive at the server. Seems that Zeos does a further replacement for non-windows breaks somewhere.
2009-04-21 22:15:00 +00:00
1d56021ee5 By default, set more reasonable SQL output file to <user name>\Application Data\<database>.sql, instead of <progam files>\HeidiSQL\export.sql . See also http://www.heidisql.com/forum/viewtopic.php?p=3156 2009-04-19 06:15:43 +00:00
26a884164e Bugfix: fix issue #1047, #1080 and #1084. 2009-04-15 22:10:12 +00:00
91716960bb Fix AV on opening one of the CREATE or ALTER TABLE dialogs for the second time, after an automatic reconnect. Related: r2312, r2328 and issue #858 2009-04-15 19:32:20 +00:00
92d6a938db Fix handling of session name in command line (-dMySession): Use it to *read out* session properties from registry instead of *saving* (potentially empty) values. 2009-04-09 23:35:37 +00:00
c601ece40c Work around wrongly calculated scrollbar range in host lists. Ignores hidden (= filtered) nodes now. 2009-04-09 22:22:38 +00:00
2b8e3ac271 Issue #1074: Make maximum number of total rows displayed in datagrid configurable 2009-04-08 20:16:33 +00:00
d3c505f032 Remove unused constants and code. 2009-04-05 11:54:02 +00:00
616400b37f Fix issue #1077, access violation when a filter returns 0 rows in datagrid. 2009-04-04 05:53:59 +00:00
cafd2a8c16 Enhancement in preferences dialog, SQL styles:
* Use AttrCount and Attribute[x] in SynEditHighlighters to iterate through available attributes, instead of doing less with more code.
* Use integer registry values for highlighter colors (were strings) and also integers for bold, italic, underline, strikeout (was one boolean per attribute).
a) optimizes registry access b) normalizes registry names and c) simplifies code. Unfortunately this breaks everyone's customized highlighter style - hopefully ok to do this is in an interim build.
2009-03-31 22:24:00 +00:00
bacb810ebd Fix issue #1070: autocomplete pops up in string 2009-03-31 17:56:28 +00:00
16ef4b8ac2 Remove accurate row counting, as requested by InnoDB users. Also removed for MyISAM, for ease of maintenance. 10.000 rows is guessed at, and the scrollbar is adjusted to a constant +20% of seen/guessed rows. Fixes issue #940. 2009-03-31 09:22:09 +00:00
eecd5423b4 Allow proposal popup to show on Ctrl+Space without any typed token. 2009-03-27 18:45:30 +00:00
20e865cbf2 Revert a part of r2355: mask database, table and column identifiers in InsertList. Breaks proposal functionality when user types the first letters of a table fx. 2009-03-27 18:41:55 +00:00
dc9d55fbe8 Recycle preferences form so certain things can be initialized once in FormCreate instead of each time the dialog is called. The selected tab is remembered after the dialog is closed now. FormShow keeps fetching registry values each time the dialog is opened, so, if the user cancels, the next time the dialog is shown, all modified options are reset (which is the correct meaning of "cancel"). 2009-03-26 23:33:07 +00:00
b7cd93a079 Enhance proposal popup:
* make it slightly wider and higher by default so items are better visible
* again introduce a first column displaying the type of object it represents (table, view, function, keyword ...)
* mask database, table and column identifiers in InsertList
2009-03-26 23:03:13 +00:00
21114256a7 Fix issue #1065: problem with autocomplete and two schemas 2009-03-26 22:20:30 +00:00
992e2a4236 Fix issue #953: Add checkbox to toggle bold font in SQL font preferences. Also adds italic option for all attributes. 2009-03-18 21:51:06 +00:00
3b376821bf Use descriptive database object icons in completion proposal pulldown, instead of colored labels ("table", "function", "keyword", ...). Saves some horizontal space also. 2009-03-18 20:12:58 +00:00
85a579943f Fix non clickable message "Please use stored routine editor ...", see issue #1048 2009-03-16 21:20:43 +00:00
8c578ae551 Fix issue #1048: "Bad Tab UI - Procedure routines". Seems that ControlX.Visible is broken if ControlX is placed on an inactive tabsheet. So, we don't hide DataGrid and ListColumns any longer - instead it gets disabled if the user selected a stored routine. 2009-03-15 16:43:32 +00:00
bcf44ff376 Revert r1870, a no longer working fix for VirtualTrees malfunctioning cell focussing. Was gladly fixed in VirtualTree itself. Fixes issue #1052. 2009-03-14 07:12:14 +00:00
8f74735c52 Avoid main window blinking into view when Cancel is pressed in the session manager. Happens because Application.Run() sets the main form to Visible before the message pump starts and gets to processing WM_QUIT (or whatever). 2009-03-12 20:23:41 +00:00
9a7a0b64a1 Revert r2316, and move code that's supposed to be run before the main form is visible from FormShow into a new procedure, Startup(). Fixes issue #1041. 2009-03-12 20:00:18 +00:00
1c1c1e8e36 Fix more candidates for issue #858 ("Cannot perform this operation on a closed dataset") 2009-03-12 19:36:44 +00:00
03748ec6eb Free cached session based datasets (and forms which make use of those) on session disconnect, not on FormClose. Fixes various closed-datasets-AVs after session switching. 2009-03-11 22:07:50 +00:00
d2f67ac673 Fix Issue #1042: Auto-show of Filter on "Data" tab 2009-03-09 22:46:53 +00:00
8b65a83953 Fix previous commit: Same float format in Query grid as in Data grid 2009-03-09 22:38:38 +00:00
917adf24ce Fix issue #1012: Formatting floats and decimals 2009-03-09 20:56:59 +00:00
a877f1ba10 Fix issue #1036: Switching to a different table while data tab is open sets focus to table tab. Broken in r2293 - seems that TControl.Show not only unhides a hidden control but also brings it to front via TControl.ShowParentControl. Whatever, fixed now by using Visible := True. 2009-03-08 20:55:45 +00:00
9c3f459802 Do an extra autofitting of the size column when a db was expanded. For cases in which the db was selected but not expanded at first. 2009-03-05 20:00:07 +00:00
6b49c31dc0 Bugfix: Clicking 'Retry' in the lost connection dialog caused the session manager to pop up, because FormShow() did a lot of stuff. Move everything from FormShow() to FormCreate(). 2009-03-04 19:54:18 +00:00
614b8c4851 Background: An optimal fix would be to programmatically disallow the GUI thread (fx inside event handlers) access to anything that happens over the network (fx executing queries on the database connection objects). There's a lot of that stuff going on in HeidiSQL as is however, so fixing things right is a lot of work. Therefore, this is a quick interim fix.
Bugfix: When the connection fails, prevent paint and present a modal dialog until the situation is resolved.
2009-03-04 18:59:25 +00:00
21134ac51e Bugfix: don't try to FocusGridCol() when there is no new column (a "column lost focus" event). 2009-03-04 18:54:18 +00:00