65 Commits

Author SHA1 Message Date
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
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
4c65ccc86f Fix issue #1193: Rename button is enabled if no session is selected in session manager 2009-06-06 05:48:39 +00:00
1980f92cb1 Bugfix: fix issue #1055. 2009-03-12 21:32:28 +00:00
362c327b81 Naming convention: Consequently use "session", not "description", and retitle connections.dfm to "Session manager" 2009-02-15 20:11:14 +00:00
2e1894b7e1 Normalize component names and procedures in session manager 2009-02-15 19:32:40 +00:00
549abf9441 Implement "Save as" action in session manager. See issue #951. Optimizes some redundant code away. 2009-02-15 14:32:58 +00:00
54c7eca938 Fix bug #970: Auto connect at startup not working any longer. Brings most startup connection logic into a proper order again. Also removes a TTimer workaround on the session manager in autoconnect mode. 2009-02-02 21:45:28 +00:00
d6e40bef96 Use Main.SessionName as a replacement for FConn.Description. 2009-01-03 19:22:22 +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
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
47563b8292 Fulfill rfe #887 : Do not close connection dialog on connection error 2008-11-25 17:50:41 +00:00
b4d7135b30 Remember previously tried session even if it didn't connect for some reason. 2008-11-25 17:41:05 +00:00
4c47dc04e1 Clean up connection dialog by making it a bit more compact, gathering all top buttons on a toolbar. Removes a workaround for loading images on a TPNGSpeedbutton and fixes some too wide labels using the Vista font. 2008-08-31 20:46:31 +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