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
e2b67b5831
Cosmetic: Replace old style SQL wait mouse cursor with system default wait cursor. Especially prettier when running Vista.
2008-08-26 08:36:06 +00:00
79d8db08b3
Support Unicode in list of wanted database names.
2008-08-19 21:35:04 +00:00
bcf26b1c98
Bugfix: get rid of another Close() call which lead to a spurious mrCancel. Fixes issue #665 .
2008-08-11 15:23:52 +00:00
4c4387c155
* Close() yields mrCancel, remove the Close() call. The dialog closes anyway when a button is clicked, now with the correct modal result.
...
* Return an integer from ConnectionWindow() rather than Booolean, makes the code in caller easier to read.
* Close HeidiSQL if the user chooses not to connect to a server.
2008-08-08 10:17:50 +00:00
ffc58c022b
Revert broken r1561. Worse than before - more AVs, even when pressing a speedbutton which has loaded its icon correctly. Weird.
2008-07-02 22:33:05 +00:00
94822c33fa
Fix one critical AV, part of bug #580 . Loading a PNGImage from a TPNGImagelist onto a TSpeedbuttons seems buggy. Instead, assign icons at designtime. Ugly fix as we now have redundant icons, anyway, we should look after not using TPNGSpeedbutton in too many places.
2008-07-02 22:21:04 +00:00
f296b1730c
Move heading panels from above grids to tab captions (hostname, database, table) and status bar (uptime, MySQL version). Makes space for coming GUI changes.
2008-06-26 09:49:17 +00:00