f47eb39316
Merge 5 GridToXYZ export routines into one, so there is less code to maintain and to make it easier to add further export formats.
2010-06-30 22:34:42 +00:00
5f1c8ae5ff
Create query tab array early enough so we don't access them before by actDataPreviewExecute(). Fixes an AV on startup when preview panel was active.
2010-06-30 18:31:14 +00:00
b1b81bd803
Increase auto calculated column width slightly, so the flashing "..." button has room when editing cells, without cutting text. Fixes issue #2051 .
2010-06-28 19:49:41 +00:00
315d7dcdfe
Do not annoy user with error popup when accessing table data in information_schema.
2010-06-20 16:59:18 +00:00
d436df314a
Use TOpenTextFileDialog instead of TOpenDialog for two places where we load SQL and text cell contents. That dialog has an additional "Encoding" dropdown, where the user can select the file's encoding, which can be required if the auto detection did not succeed. Fixes issue #2025 .
2010-06-20 10:05:37 +00:00
1d9ae863b2
Tweak LaTeX export: Fix case in all occurrences of "LaTex" - must be "LaTeX" and remove trailing "\r\n" in output.
2010-06-18 17:00:12 +00:00
edb9ce1487
Split identifiers with dot only in explicit cases, so column names containing a dot can be loaded and created. Fixes issue #2026 .
2010-06-18 16:52:41 +00:00
163a8c13d6
Implement LaTeX output for "Copy as" actions. Code parts from brampton. Fixes issue #2020 .
2010-06-18 16:32:20 +00:00
978ac7e5d6
Load all rows in data grid when pressing Ctrl+End. Fixes issue #1949 .
2010-06-16 22:52:16 +00:00
074978be5e
When total command count is very low, percentage values in command stats tab were miscalculated. Fixes issue #2015 .
2010-06-16 19:12:43 +00:00
d114097d48
Enhance wrapped text in result tab hint text. See issue #2014 .
2010-06-16 18:19:30 +00:00
63be11dd14
Implement recent filters in "Copy table" dialog, selectable via button + dropdown menu.
2010-06-15 18:36:58 +00:00
e0f835c995
Wrap hint text at 100 chars. Fixes issue #2014 .
2010-06-15 17:13:27 +00:00
c0da6e5a21
Refactor "Copy table" dialog:
...
* Replace checkboxes, radio buttons and checklistbox by a VirtualTree using checkbox support
* Support selecting/deselecting single indexes
* Support foreign keys
* Place a SynMemo at the bottom in which the user can type an optional WHERE clause to filter incoming data. Fixes issue #2000 .
* Move code for SQL generation into TTableColumn etc.
2010-06-14 00:21:33 +00:00
08e40a62d6
Tweak auto setting column widths in datagrid: do not recalculate them on "Quick filter" clicks. Fixes issue #2005 .
2010-06-13 10:21:31 +00:00
74f28c4cff
Find a way to fix issue #1970 again, this time without breaking remembered data grid node/col as in r3385. Fixes issue #2007 .
2010-06-12 00:38:47 +00:00
24295f111e
Immediately prepare editing when data grid fetches rows, as that implicitly fixes BLOBs detection and enables "Image preview" action. Fixes issue #1948 .
2010-06-11 19:52:42 +00:00
d3b6dd6399
Do not create drop down menu on foreign key'd cells in data grid if the foreign table contains more rows than we display in the drop down. That way, the user is able to enter other foreign values than those provided by the dropdown list. See http://www.heidisql.com/forum.php?t=5736#p5930
2010-06-11 19:38:57 +00:00
ada591c368
Repeat automatic calculating optimal column widths in data grid on refresh, as long as user did not resize some column. Fixes issue #2005 .
2010-06-10 19:05:14 +00:00
4a78cad0a9
Keep scroll offset when refreshing data grid. Fixes issue #2003 .
2010-06-10 18:48:25 +00:00
3476fbed01
Reset stored db and table names when dbtree focus changed, so the grid also refreshes when you add or remove column(s) in the table editor, switch to another table and then back. Fixes issue #1970 .
2010-06-10 17:40:09 +00:00
7d29518d7f
Fix sporadic AV reported in forum: http://www.heidisql.com/forum.php?t=5911#p5925
2010-06-10 08:37:44 +00:00
6b9dbf18ee
Avoid an AV in cases when main tab is "Data" on startup.
2010-06-09 22:24:43 +00:00
743f9aff2a
Cancel grid editors early enough on main tab changes. Fixes issue #1996 .
2010-06-09 22:22:47 +00:00
95f1f59cde
Node can be non-assigned in Grid.OnFocusChanged - avoid AVs in such cases. Fixes issue #1990 .
2010-06-04 18:05:54 +00:00
0767d5387a
Replace "Image view" action code which opened BLOBs in external app by a home brown preview area for images in BLOBs, using GraphicEx library for detecting image types. Also, add a "Save to file" action for any grid cell content. Fixes issue #1960 . Fixes issue #492 . Fixes issue #955 .
2010-06-03 23:19:27 +00:00
d447a9a1a7
AnyGridEnsureFullRow already does a safety check for the right grid and returns True on all other grids.
2010-05-31 22:29:55 +00:00
125995f37f
Fix "LEFT(blobcol)" from being used as column name in quick filter menu.
2010-05-31 22:28:05 +00:00
f01823fb56
Fix AV when checking if "Image view" shall be enabled or disabled. Fixes issue #1974 .
2010-05-31 22:18:05 +00:00
84c638f0de
Prefer VCL function StripHotkey() over StringReplace
2010-05-30 23:19:23 +00:00
00cf4d95cc
Straighten popup menus for data grid and query grids - use one for both, and disable those few irrelevant items when on a query grid. Reveals some missing items for query grids, such as "Set NULL". Also, turn "Set NULL" into a TAction including an icon.
2010-05-30 23:09:06 +00:00
3fe935b5be
Disable ImageView action early so the user does not run into error message only because some non-BLOB is focused.
2010-05-29 16:19:03 +00:00
9b1ba49939
Silence two compiler notices.
2010-05-29 00:23:24 +00:00
d71f9c7295
Be sure to free the allocated TFileStream also in error cases, to avoid successive AVs when trying to write the same file.
2010-05-28 23:23:44 +00:00
2e301d1095
Code cosmetic: Do not pass default parameter in one zillion callers of ShowStatusMsg()
2010-05-28 23:09:38 +00:00
ac50ae75ce
Display status message on long running sort operations in query grids.
2010-05-28 23:00:57 +00:00
32c905524e
Set result grid's parent control *before* hiding it. Fixes issue #1973 .
2010-05-28 22:48:20 +00:00
5351f8df23
New feature: When mouse hovers over status bar panel holding the server version, display various connection related details in a hint.
2010-05-28 19:41:17 +00:00
389d9a5a9c
Invert background colors of selected/unselected result tabs, to enhance readability.
2010-05-28 14:04:02 +00:00
8f1e3107fa
Code cosmetic: Move default status message to the right procedure.
2010-05-28 13:44:58 +00:00
56ce17181f
Move detection of best table name to helpers unit, away from several methods where we make use of it. Fixes issue #1967 .
2010-05-27 18:11:51 +00:00
823269e2ca
Fix cosmetic bug in r3347: If very right status bar panel has empty text the hourglass icon was displayed. Instead, force its text in these situation to "Ready".
2010-05-27 07:36:37 +00:00
d14efcc922
Indicate SQL errors in progress bar, if Aero is activated.
2010-05-27 00:09:21 +00:00
e9063271f1
Draw various icons in status bar.
2010-05-26 23:58:30 +00:00
9984bf0236
Issue #1135 : Implement tabs for multiple batch results in a query tab. Does not yet show multi results of stored procedures. Maximum number of tabs is customizable in Preferences > Data.
2010-05-26 23:11:08 +00:00
6468776ba0
Display size of SQL file while loading into query editor, so it's easier to decide whether to load or run the file.
2010-05-22 06:34:09 +00:00
58b8f5451d
"Run current query" ran previous query when cursor is placed behind the delimiter of it. Fixes issue #1956 .
2010-05-22 06:19:53 +00:00
779b08bdc8
Fix offset number current query while executing a query batch.
2010-05-21 06:02:50 +00:00
336f991bc2
Display original length of snipped queries in SQL log.
2010-05-21 06:01:43 +00:00
e38db938b7
Rewrite parseSQL routine into two new ones: GetSQLSplitMarkers() and SplitSQL(). Also, use these to turn "Run current line" query action into "Run current query". Fixes issue #821 .
2010-05-20 18:30:55 +00:00