1268 Commits

Author SHA1 Message Date
1d6ff80121 Code cosmetic:
* Move "const" + "type" fragments to a unified place.
* Use mixed case instead of all upper in a variable
* No need to format the "uses" list vertically
* Move helper InheritFont() to helpers.pas
2009-08-30 06:27:53 +00:00
0ec73d7727 Clear column selection box before repopulating it after "Sort alphabetically" was clicked. Fixes issue #1330. 2009-08-30 06:20:36 +00:00
fe31264f6b Connect data filter editor to the auto completion object. Fixes issue #1045. 2009-08-29 18:31:32 +00:00
a554f209bd Fix unusable database tree after entering a regular expression with syntax errors into the filter combo. 2009-08-29 06:53:53 +00:00
8c3d298f95 Revert border adjustments from r2598, which were meant to minimize the border between the database filter and database tree. In the end that looks just ugly and non-standard. 2009-08-29 06:25:32 +00:00
4dc6ec2423 Minor: fix code indentation 2009-08-29 06:21:27 +00:00
a2ef629b81 Move "Databases" filter from session manager to an editable combobox below the database tree. Keeps session manager free from connection unrelated stuff, provides more comfort, adds a "recently used list" of old filters which is kept over session connects, and supports regular expressions now. Fixes issue #776 2009-08-27 22:18:50 +00:00
38b157830a Fix mixed up session folder in registry while storing LastUsedDB setting 2009-08-27 20:07:28 +00:00
a37a2af966 Catch (TNT-)comboboxes in copy + paste actions. Fixes issue #1321 2009-08-27 13:27:39 +00:00
6df4b7a706 It's legal for ActiveGrid() to return nil, as there are tabs without a data- or querygrid. Fix relevant functions so they don't barf with a "List index out of bounds" violation. Fixes issue #1320 2009-08-25 21:37:34 +00:00
45eba2139c Examine query error messages for "(errno: 123)" and add the more meaningful message returned by perror.exe . Adds a static error message list from my local 5.1.22 server. This is especially helpful in the foreign key editor, where any InnoDB error seems to be the more cryptic one by default, while there are lots of possible error causes. See issue #400. 2009-08-23 22:53:52 +00:00
b1aaeaaaf4 Disable foreign key editor for table engines which don't support that. Display a red hint label so the user knows what to do to enable foreign keys. 2009-08-23 21:59:57 +00:00
679bbb428c Fix column clause detection of SHOW CREATE TABLE result, so foreign key clauses are not displayed as columns. 2009-08-23 18:49:27 +00:00
4ee136dae0 Be sure DBTree.OnFocusChanged is called when doubleclicking a table in the Database tab or "Edit ..." menu item was explicitly clicked. Fixes issue #1225 with annoyance factor. 2009-08-23 18:33:37 +00:00
8cfb99e0c6 Avoid a second round trip via EndEdit() and Destroy() after the editor was unfocused. Lead to an access violation in the second Destroy() call. Fixes issue #1304. 2009-08-23 18:23:39 +00:00
a11b60cbd4 While the data grid is refreshed, certain objects are kept in memory instead of refetching them. This change fixes the "refresh detection" which only compared the table name, not the database name. Fixes issue #1300. 2009-08-23 10:25:50 +00:00
f4ee88f11f Allow higher TCP ports above 32767 in session manager. Was limited by TUpDown component which makes use of older 16 bit messages. Add a hack to work around that. Fixes issue #1307. 2009-08-23 10:03:06 +00:00
c058039c40 Allow reference table in foreign key tab to be from a different database. See comment #17 in issue #400 : http://code.google.com/p/heidisql/issues/detail?id=400#c17 2009-08-22 16:07:03 +00:00
eed0c7bbfb Ensure ListSessionFocusChanged is called after deletion. Fixes issue #1314 2009-08-21 06:13:24 +00:00
0d3aaacaab Create missing gridresult on a new query tab. Fixes an access violation. 2009-08-20 06:00:02 +00:00
d09f1380a1 Refactor query tabs code:
* Collect all relevant controls of one query tab and its variables in a new object
* Collect these tab objects into a TObjectList
* Fixes mixed up QueryMemoLineBreakStyle variable - was used for all tabs, now part of the above mentioned object
* Same goes for minor remembering of selected tab on queryhelpers list
* Use filenames on tabs if saved or loaded.
* On tab close ask if content should be saved.
2009-08-19 23:47:59 +00:00
b264ab16f3 Do not flag clicks on system menu items other than our own "Check for updates" and "About" items as *handled* . Broken in r2580. Fixes issue #1309 2009-08-19 18:07:58 +00:00
8e57faf265 Start editing in columns list only on exact label click. Should avoid annoyance described in issue #1305 2009-08-19 05:57:29 +00:00
d8944ad3eb Add items "Check for updates" and "About" to window menu of session manager. Fixes issue #1296 2009-08-18 20:33:14 +00:00
4bf22d785e Mainform.SessionName is used for write operations to registry. If you
a) connect a session
b) open the session manager
c) rename the current session
... your registry has a nearly empty session folder, after DoDisconnect() stores the last active database with the old session name.
This change fixes the SessionName variable and window caption immediately after a session was renamed.
2009-08-18 19:35:47 +00:00
4d7a301b78 TInplaceEditorLink.EndEdit() was called twice, first time via OnKeyDown event, second time implicitly by OnExit event. So the session was renamed, then again tried to renamed which caused the error "Session already exists". Fixes issue #1303. 2009-08-18 18:49:59 +00:00
3c4293a9a8 Work around weird effect with shortcuts on session manager. The inplace editor looses focus + ends editing when user types "p" because the password field label has "p" as shortcut. A better solution would be the inplace editor would avoid loosing focus in such cases but I don't know how to achieve that, so the shortcuts have to leave for now. 2009-08-18 17:28:07 +00:00
0eb09779e0 VirtualTree's internal text edit link has the bad habit of passing keyboard actions to its parent tree. Use our own editor instead which doesn't do that. Fixes issue #1297. 2009-08-17 17:42:42 +00:00
3fdad1fd9d Activate incremental search in sessions list. Fixes issue #1298. 2009-08-17 17:35:47 +00:00
6517a04eff Implement creation and editing of foreign key constraints in a separate new tab on the table editor. Fixes issue #400. 2009-08-16 20:32:37 +00:00
ab60b78dba Only autostart grid editor if mouse hit was *exactly* on the cell text. Avoids annoyance in index editor. 2009-08-16 09:50:57 +00:00
74b36d8524 Do not overwrite FCellFont after adjusting its color. Fixes issue #1295 2009-08-15 18:17:49 +00:00
2cd3e99596 Placing a grid editor needs to leave space for various stuff left besides the edited text, e.g. the plus/minus button, an image and level indentation. Fixes issue #1293 .
A similar calculation is done in TBaseVirtualTree.GetDisplayRect(), only with lots of more logic. So this change may not be the last in TBaseGridEditorLink.GetCellRect().
2009-08-15 13:39:04 +00:00
52b2092385 No need to create two instances of the session manager. 2009-08-14 19:41:24 +00:00
4cc0e67bf7 Show hints on all VirtualTree's, including table editor's columns list and index editor. 2009-08-14 18:08:27 +00:00
d7d1e71c4c Gather various button.enabled:=true/false calls in one ValidateControls() method. Also, display a help message if there are 0 sessions. 2009-08-12 20:01:18 +00:00
a8bae3c55e Do not create an empty session key, implicitly by GetRegValue(), if user clicks "No, don't save" 2009-08-12 19:05:09 +00:00
771a147733 Fix enabled "Open" button with no focused session. 2009-08-12 18:46:14 +00:00
0eeb422004 Revert r2530 and r2531: One click editing in datagrid. Too much annoyance by accidentally editing clicks. Have to find a better solution. Fixes issue #1272 2009-08-12 18:30:56 +00:00
64baec4b45 Fix AV on app close while session manager tries to store its window dimensions and main registry object is already destroyed. 2009-08-11 20:34:10 +00:00
334465a028 Implement connection counting on session manager. 2009-08-11 20:30:32 +00:00
22854433b0 Continuously update statistics labels on session manager, so they don't lie when the form is open for various minutes or closed + reopened some minutes later. 2009-08-11 18:15:52 +00:00
57d9d76bd5 Remember window dimensions of session manager for the next call. 2009-08-10 20:53:55 +00:00
3010c9e4ea Session manager: Widen the group box with details instead of the session list when the form gets resized. Plus - now the session list never gets wider - display hints on long session names. 2009-08-10 20:45:25 +00:00
2421c615c5 Remove crap, accidentally included in previous commit. 2009-08-10 20:23:37 +00:00
9f0c70a866 Don't try to, just do it. 2009-08-10 20:21:20 +00:00
da1e2e5892 Avoid implicit firing component state updates when loading session parameters 2009-08-10 17:37:59 +00:00
2216c630ce Try to fix a sporadic DateTime conversion error, showing up after locale settings have been touched. 2009-08-10 16:59:58 +00:00
4ff1acf408 Refactor session manager:
* Replace the pulldown by a list to get a better overview
* Display last connected and created date in details
* Prompt user on form closing if modifications should be saved
* Remove moreorless useless image
* Remove options "timeout" and "sort database"
TODO: Display some help text on the right side when no session at all is existant to help new users.
2009-08-09 23:57:52 +00:00
0e341f19cb Implement connecting via named pipe. Code contributed by gabylastar, minor modifications by me. Fixes issue #520. 2009-08-08 19:06:41 +00:00