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
3a7f67ad51
Add menu item "Invert selection", usable in grids and listboxes. Fixes issue #451 .
2009-12-25 07:59:30 +00:00
527cbdf423
Mask date portion in front of single queries in log file so the query is valid SQL. Fixes issue #1072 .
2009-12-25 07:05:51 +00:00
c181ffe902
Consistently disable menu items for creating a trigger when the upper host node is focused.
2009-12-25 06:53:26 +00:00
a265c45ba0
Add missing menu item reference from last commit.
2009-12-25 06:52:08 +00:00
684983b57b
Remove "perspectives" feature, to make data browsing less annoying. Restore old behavior where just the last set filter/columns/sorting was remembered. Fixes issue #822 .
2009-12-24 11:39:20 +00:00
42f14ae9fc
Exit grid loading earlier if no table or database was selected, to have less code indentation.
2009-12-24 07:03:50 +00:00
92eeced113
Don't raise exception when user enters an invalid filter, rather do that with a normal error dialog. Fixes issue #1559 .
2009-12-23 17:51:57 +00:00
b8abe2cc21
On a blank server with 0 databases, the dbtree stayed empty after creating a database. DBtree.ResetNode seems to solve this, better as DBtree.ReInitChildren. Unfortunately that also collapses expanded nodes.
2009-12-23 15:15:24 +00:00
c3d771eb5e
Add object names of selected database to SynMemo highlighter. Broken in r2879. Fixes issue #1557
2009-12-23 13:42:46 +00:00
029ac13101
Fix wrong node reference
2009-12-23 00:16:49 +00:00
54b6f31fa9
Safety check to avoid AVs in special cases.
2009-12-23 00:11:49 +00:00
5152b38937
Implement a "Duplicate row" action for quicker grid editing. Fixes issue #533 .
2009-12-23 00:03:48 +00:00
eb9915d5be
Invalidate columns and keys of an edited table when pressing the "Save" button, to avoid SQL errors when switching to "Data" tab. Fixes issue #1556
2009-12-22 23:38:38 +00:00
e356cb7ed7
Sanitize all "uses" clauses from unneeded unit references.
2009-12-22 23:19:56 +00:00
9d722e2f07
Don't auto-call database editor when focusing a table in dbtree. Fixes issue #1550 .
2009-12-22 14:01:02 +00:00
4501f070a9
Wrap Connection.Database in try..except blocks, so they don't throw access violations when the selected db was deleted from outside. Fixes issue #1445
2009-12-21 09:07:21 +00:00
495ed3a689
After refreshing the tree, select the upper host node as fall back, if previously selected database was deleted from outside. Ensures there is at least one focused node and the unavailable database does not remain selected internally.
2009-12-21 06:34:18 +00:00