509 Commits

Author SHA1 Message Date
100d2d1f9c Highlight matching brackets in all SQL editors. Use code from the SynEdit Demo "OnPaintTransient". Fixes issue #1630. 2010-02-02 19:55:46 +00:00
fb09ac1aa7 Fix unresponsive query memo on large "replace all" actions. Also, move redundant code to DoSearchReplace. 2010-02-02 07:18:26 +00:00
02d29ea976 Implement a home brown find + replace dialog, supporting regular expressions, and using all stuff SynEdit gives us. Add main menu item "Search" next to "Edit". Fixes issue #1069. 2010-02-01 23:55:44 +00:00
c5699171f9 Silence compiler warning 2010-01-30 08:05:25 +00:00
efbf7a0b98 Add a toolbar button which, when pressed, allows BLOBs to be displayed as text. Explicitly ignoring weird effects in grid updates/inserts. Fixes issue #1624. 2010-01-30 07:57:07 +00:00
020bdd07f2 Suppress access violation caused by VCL bug. Fixes issue #1622. 2010-01-29 20:38:04 +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
99a4580be0 Work around a possible timing issue, when the db tree is painted with more nodes than the database has objects. Guess that occurs on a reconnection. Fixes issue #1621. 2010-01-26 20:00:13 +00:00
5d7b25d7e9 Add preference option to restrict number of application instances to 1. If the executable is open and called a second time, it's brought to foreground. Plus, if a filename was passed, a new tab is opened. Should fix a part of what is described in issue #1332. 2010-01-24 00:14:23 +00:00
b1a7e7780f Add formatted HTML to clipboard for "Copy rows as HTML". Fixes issue #1249 2010-01-19 00:45:31 +00:00
0d8653db6a Override VirtualTree's incremental search event, make it case insensitive, and apply that event in FixVT to various lists and grids, which have IncrementalSearch enabled. Fixes issue #1605. 2010-01-17 10:50:47 +00:00
ec1da49440 "Duplicate row" feature:
* Don't flag empty/non-NULL cells as modified.
* Ensure the right row data is referenced, some operations seems to work on a copy of records, some on the original one.
2010-01-16 21:30:30 +00:00
c2857f438a "Duplicate row" feature:
* Copy NULL flag from source row, not just the text "(NULL)". Fixes issue #1607
* Do not overtake values from an auto increment column. Fixes issue #1608
2010-01-16 17:46:11 +00:00
a3e5682316 Ignore stored ORDER columns for removed or renamed columns. Fixes issue #1594. 2010-01-16 08:26:42 +00:00
4847e55bf0 Enhance query tabs:
* Code cosmetic: use generics to avoid type casting on QueryTabs items
* Warn when trying to save a query via "Save as" to a filename which is already open in another tab. Fixes issue #1591.
* If the above warning is ignored and file gets saved, flag all other tabs with same filename as modified and display the asterisk on the tab
* Also flag as modified in "Save" action, without the warning popup.
2010-01-16 07:46:22 +00:00
43d98ec1be Ensure full width of key column values in base SQL of data grid. Also, do not blow SELECT query with LEFT() unless the column has a larger length than 256. Fixes issue #1602. 2010-01-15 21:20:42 +00:00
9080ad7607 No need to use the Wide* version of string functions any longer. 2010-01-15 20:28:48 +00:00
d70ea85786 Ask user if in-memory modifications to table, view, trigger or routine should get saved, this time including a Cancel button, which cancels either
* focusing a different object in database tree and/or
* closing application
TODO: Internal switching to different connection probably needs that too?
2010-01-15 17:13:24 +00:00
52ea8f410a Use Unicode enabled TStringList instead of TWideStringList in all places. Should have no visible effect, apart from a very minor performance optimization, as String reference pointers are handled by Delphi, WideString by Windows. 2010-01-14 19:41:58 +00:00
fcb62acc07 Enhance too bright NULL colors for grids. Fixes issue #1584. 2010-01-13 22:44:00 +00:00
24b675cb25 Tweak message in status bar "db: xyz object(s)", add count for all different object types. Fixes issue #1596. 2010-01-13 20:43:25 +00:00
473716c8b9 Refill data grid when pressing "Clear filter". Seems reasonable not only to clear the filter editor. Fixes issue #1598. 2010-01-13 19:50:44 +00:00
81c13edbf0 Wording: use "object" instead of "table". Related to issue #1596. 2010-01-13 06:56:50 +00:00
8abd2d0d76 Keep "Save" action enabled even if current query tab has no filename, so "Save" executes the "Save as" in such cases. Fixes issue #1590. 2010-01-11 21:58:19 +00:00
ef3501e9c1 Exit to avoid AV when query tab was closed and contents were saved. Fixes issue #1593. 2010-01-11 06:48:56 +00:00
4d47af1e9e Code cosmetic:
* Sanitize main unit from unused variables
* Move global variables to public scope
* Bring public vars into some reasonable order
* Move constants to const.inc, unless dependent from some used VCL unit
2010-01-10 17:11:42 +00:00
1a4db545c5 Refactor layout and code of about dialog. 2010-01-10 16:22:53 +00:00
43b010d227 Inject SVN revision into executable's version infos last segment (4.0.0.[r]). Don't modify main.pas any longer, just version.rc by a new console app. 2010-01-10 13:53:52 +00:00
25ac096554 Make more use of Generics, this time for columns, keys and foreigne keys lists, used by main unit and table editor. Frees code from annoying casting and makes it more type safe. 2010-01-08 00:30:51 +00:00
fd516f8b0c Avoid trying to set focus on a disabled TEdit. Fixes issue #1574 2010-01-07 23:21:49 +00:00
f65e5bbc68 Don't double check if a column is binary, just trust in the caller doing the right thing. Fixes cut binary values in data grid. Additionally, return hex code right away, so we don't convert the hex value to UnicodeString and back to AnsiString. Consistently rename ColAsAnsi() to BinColAsHex(). 2010-01-07 21:52:35 +00:00
936ed6a67b Support TIFF images in "Image view" action. Requested via forum: http://www.heidisql.com/forum.php?t=4623 2010-01-07 18:36:40 +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
d8f2c9831d Enhance datagrid: Set focus on the previous selected row, or at least on row #0, so the user sees the grid has focus 2010-01-02 07:46:55 +00:00
b85ee7cb1f Fix compiler error in previous commit 2010-01-02 07:46:00 +00:00
9ec5a0c204 Fix detecting a mouse click on a tab close button. MouseUp is also fired without MouseDown if the focused tab switched between MouseDown and MouseUp - don't close tab in that case. Fixes issue #1469. 2010-01-01 11:36:32 +00:00
2eacbdb558 Suppress automatically calling the database editor dialog in case we lost the connection and user clicks a table in a non-selected db, which triggers the reconnection logic and a USE <old-newdb>. Fixes issue #1550. 2010-01-01 09:41:27 +00:00
d82004c0cd popupQuery has grown quite large - move SQL function menu items into a submenu 2009-12-31 14:44:23 +00:00
9d28d5cb12 Tweak reformat SQL feature:
* Replace misleading icon with a nicer one
* Add menu item to main "Edit" menu
* Adjust the action so that any focused SynMemo can be processed - Fixes issue #1201
2009-12-31 14:28:10 +00:00
07ad990da9 Revert r2936, appendage of "approx." for InnoDB rows. Seems that annoys more users than it's worth. Fixes issue #1566, and unfixes issue #980. 2009-12-30 18:15:56 +00:00
c61b2ead2e Implement SQL pretty formatter, fixes issue #428. 2009-12-30 01:23:44 +00:00
6c74af1ec8 Add a menu item "Reset sorting", to remove ORDER BY columns with one click / shortcut. Fixes issue #561. 2009-12-27 16:39:54 +00:00
04c8181ba5 Append "(approx.)" to row count of InnoDB tables, to indicate that it's an estimation by the server. Fixes issue #980. 2009-12-27 16:10:54 +00:00
e5ae3a934d Include triggers in SQL export. Fixes issue #334. 2009-12-27 13:05:05 +00:00
cfe95db339 Handle mouse wheel scrolling in any VirtualTree under mouse, without having focus. Fixes issue #447. 2009-12-27 07:06:29 +00:00
02c7c26b9c Keep track of deleted and inserted row numbers in selected table. Fixes issue #1099. 2009-12-25 13:42:30 +00:00
401a9ec4e2 Code cosmetic in SelectDBObject(). 2009-12-25 13:11:56 +00:00
a08eaa1ee2 Fix AVs and automatic focus switching effects in dbtree, introduced in previous commit. 2009-12-25 13:10:52 +00:00
eff81d8e35 Code cosmetic: Let GetSelectedTable return a TDBObject which has the same properties as TListNode but even more. 2009-12-25 11:26:05 +00:00