83 Commits

Author SHA1 Message Date
c8b25c75fa Bind session parameter object to session manager list nodes, to be able to show the right vendor icon in that list. 2011-04-17 23:21:05 +00:00
06e78d9d95 Code cosmetic: make handling of MySQL client flags more compact, remove unused options from published property. 2011-04-13 20:22:46 +00:00
049e4bb526 Group network types in fewer dbms names, to have less code. Also, support other MS SQL network types: tcp/ip, spx/ipx, vines and rpc. 2011-04-04 06:12:56 +00:00
4fbf2c23dd Introduce experimental MS SQL support 2011-03-29 23:20:21 +00:00
49a97584e6 Code preparation for non-MySQL connections: Extract abstract stuff into a new TDBConnection class, and let TMySQLConnection derive from that. Same with TDBQuery / TMySQLQuery. See issue #1008. 2011-03-17 23:03:54 +00:00
24adc029b2 Ensure we fetch all available database names without passing a custom list, in session managers database selector. 2011-03-14 19:27:00 +00:00
56595d6df6 Let the session manager benefit from the additional fall back in TMySQLConnection.GetAllDatabases(), if SHOW DATABASES fails when db pulldown is triggered. 2011-03-13 22:24:19 +00:00
199d7c6e0f Make plink.exe wait timeout configurable in session manager. Fixes issue #2236. 2010-11-28 12:47:00 +00:00
0fa6c15c9d Implement multiple connections per window. DBtree and friends now have their nodes bound to TDBObject instances. Fixes issue #2144. 2010-10-05 23:06:29 +00:00
8c34a9e15a Session manager: Add checkbox option for users who want to be prompted for username + password rather than saving that to registry. Prompt window itself is called from within TMySQLConnection.SetActive. 2010-07-19 20:06:09 +00:00
30a0b22770 Remove no longer required workaround for smallint's in TUpDown for connection port. Seems that value was turned to integer in some recent Delphi version. 2010-04-22 16:38:39 +00:00
97f01a175b Move database filter again from mainform to session manager, so people without privilege to run SHOW DATABASE are not stuck. Fixes issue #1485. Also, allow to see available databases when user does a dropdown. Also, simplify logic for refreshing database list in mainform. 2010-04-22 15:16:27 +00:00
53a78bb976 Don't ask for saving modified settings if focus is not changed to another session node. 2010-04-09 15:37:26 +00:00
4b2fef94c8 Refresh list of session names after "Save as". Fixes issue #1839. 2010-04-09 15:34:13 +00:00
6b7a76c7e9 Update old session parameters after saving, so later modifications are detected correctly. 2010-04-02 10:38:24 +00:00
3c9dcfaaa0 Last tweaks for SSH tunnel, issue #401:
* Only pass SSH port if not empty
* Put right default file extension for selecting a PuTTY private key file (*.ppk)
* Add text hints on more input fields
* Indicate modified session also if SSH host, port or key file was changed.
2010-04-02 07:33:36 +00:00
adf68ecc65 Issue #401: Extend SSH tunnel options: Allow user to set SHH host/ip and port, and a private key file used for authentication. If SSH host is not set, use what the user specified as MySQL server host. 2010-04-01 23:34:07 +00:00
0970f5c2bd Implement SSH tunnel with plink.exe on session manager. Fixes issue #401 Plus:
* Simplify code for getting connection parameters from registry by implementing helpers:LoadConnectionParams()
* Use combobox for network type instead of radio buttons, now that 3 options would need more horizontal space than we have
* Hide tabs on session manager which are irrelevant for the selected network type (e.g. no SSL options for named pipe)
* Some minor code simplifications
2010-03-30 23:22:08 +00:00
ed5ec1e122 Rethink portable releases:
* Remove complicated and unreadable NSIS stuff. No need to have a installer for a developer application. ZIP file is fine.
* On startup, if a portable_settings.txt exists in the application folder, heidisql.exe will read its contents into a unique registry key.
* In MainForm.OnDestroy, settings are written to that file again, and the reg key gets deleted.
* Avoid using Microsoft's .reg file syntax, as you need admin privileges to store and restore such files, even when using the appropriate Windows API functions.
2010-03-22 21:10:38 +00:00
256a921563 Do not mandate the user to save a entered or modified password with a popup dialog. Fixes issue #1371. 2010-03-17 00:10:16 +00:00
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
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
4e84c99a72 Introduce SSL support on session manager. Code parts from SuperNiFF. Fixes issue #518. 2010-02-26 00:13:17 +00:00
f9ea5dc1ec Add support for startup SQL script on session manager. Fixes issue #1716. 2010-02-25 20:45:16 +00:00
e045cb3d76 Delphi 2010 has PNG + alpha channel support in TImageList, so we don't need PNGcomponents any longer. 2010-02-08 00:36:17 +00:00
61a08ad653 Remove workaround from r2338 - no need to force the taskbar button active now that the "Retry connection" logic was removed. Could probably fix issue #1622. 2010-01-27 23:59:54 +00:00
9f139029b7 Enhance command line processing:
* Rewrite parameter parser
* Remove support for "-C" option (compressed). Anyway switched on by default.
* Add support for loading multiple SQL files at once instead of only one: "fileA.sql fileB.sql ..."
* Also process connection parameters when "Allow multiple application instances" is disabled
* If a session name is specified with -dXYZ, load params from registry, but allow the user to override these by passing e.g. a different user name "-uOtherUser"
Fixes issue #1332.
2010-01-27 23:39:34 +00:00
a4652d39a4 * Fix compiler warnings due to implicit AnsiString to (Unicode)String or vice versa
* Remove workaround for Unicode text to and from clipboard
* Fix writing/reading wrong encoded text into/from registry - no need to use Utf8Encode() any longer
* Implement TMySQLQuery.ColAsAnsi() for cases in which we read binary data.
2010-01-07 00:00:56 +00:00
7d401ffde8 Upgrade to Delphi 2010:
* Removes TNT Unicode controls, which are no longer required. All VCL controls now have native Unicode support.
* Remove Delphi 11 packages, otherwise we would either need to keep TNT or break Unicode
* PngComponents update from Uwe Raabe on http://cc.embarcadero.com/Item/26127
* Adjust auto build process
* Since Delphi 2009, Strings are now UnicodeStrings, not AnsiStrings any longer. Fix a bunch of compiler errors which came along with this change.
TODO: Project should compile but give tons of compiler warnings.
2010-01-05 23:14:33 +00:00
e356cb7ed7 Sanitize all "uses" clauses from unneeded unit references. 2009-12-22 23:19:56 +00:00
a80e9cb91d Fix point where last (successful connected) session name is saved to registry. The session manager is not the only place where Mainform.InitConnection is called. 2009-11-29 17:59:26 +00:00
809edef3d4 Remove unused variable and fix compiler notice 2009-11-06 21:52:04 +00:00
7f0bdf9e14 Fix duplicated message box asking if modified session parameters shall be saved when clicking "Open" button 2009-11-06 21:34:39 +00:00
589c6a76a6 Missing file for previous commit 2009-10-28 00:11:23 +00:00
c0d5b47e4a Resize both list of sessions and groupbox with details on FormResize, so both benefit from more space, not only the details box. See http://www.heidisql.com/forum/viewtopic.php?p=3482 2009-08-31 21:36:04 +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
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
eed0c7bbfb Ensure ListSessionFocusChanged is called after deletion. Fixes issue #1314 2009-08-21 06:13:24 +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
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
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
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