Commit Graph

232 Commits

Author SHA1 Message Date
Ansgar Becker
7f32b33505 Issue #436: Implement a new table editor dialog. Nukes both create + alter table dialogs. 2009-05-12 22:24:09 +00:00
Ansgar Becker
eadeed1ae2 Use helper methods where possible, and leave GUI stuff in form units. 2009-04-28 22:35:00 +00:00
Ansgar Becker
5687b8d7bf Extend detection of irregular linebreaks into a more informative method, now detecting various (non)consistent linebreaks. Related: issue #1095 and issue #1094 2009-04-21 17:06:42 +00:00
Ansgar Becker
2b8e3ac271 Issue #1074: Make maximum number of total rows displayed in datagrid configurable 2009-04-08 20:16:33 +00:00
Ansgar Becker
d3c505f032 Remove unused constants and code. 2009-04-05 11:54:02 +00:00
Ansgar Becker
fc433bf38f Add background color feature to SQL highlighting via preferences 2009-03-31 22:57:08 +00:00
Ansgar Becker
cafd2a8c16 Enhancement in preferences dialog, SQL styles:
* Use AttrCount and Attribute[x] in SynEditHighlighters to iterate through available attributes, instead of doing less with more code.
* Use integer registry values for highlighter colors (were strings) and also integers for bold, italic, underline, strikeout (was one boolean per attribute).
a) optimizes registry access b) normalizes registry names and c) simplifies code. Unfortunately this breaks everyone's customized highlighter style - hopefully ok to do this is in an interim build.
2009-03-31 22:24:00 +00:00
Ansgar Becker
6566f160ed Fix international characters in grid column headers (issue #994) 2009-03-31 17:23:03 +00:00
rosenfield.albert
f2ecca5dcd The mysql protocol is broken design-wise a couple of places, this is one of them. The server sends us a string, but doesn't tell which encoding it's in.
Rewrite the old code a bit to make the automatic PChar->WideString conversion explicit, also add a block of code that tries to guess if the server is sending UTF-8 and react properly to that.

A step on the way to fixing issue #994.
2009-03-31 04:39:43 +00:00
Ansgar Becker
992e2a4236 Fix issue #953: Add checkbox to toggle bold font in SQL font preferences. Also adds italic option for all attributes. 2009-03-18 21:51:06 +00:00
Ansgar Becker
3b376821bf Use descriptive database object icons in completion proposal pulldown, instead of colored labels ("table", "function", "keyword", ...). Saves some horizontal space also. 2009-03-18 20:12:58 +00:00
Ansgar Becker
385d650d6a Fix issue #1050: Stored Routines become a one-liner. (Why the heck does Zeos prepared statements / parameter stuff, even after we switched TZQuery.ParamCheck off?) 2009-03-17 22:50:37 +00:00
Ansgar Becker
47662cac51 Work around malfunctioning escape key in various forms with TSynMemo's (view/routine editors, alter table ...).
See also closed (as invalid) bug report in SynEdit's tracker: http://sourceforge.net/tracker2/index.php?func=detail&aid=1096749&group_id=3221&atid=103221
2009-03-16 22:44:07 +00:00
Ansgar Becker
c1e24cdcc9 My change in r2327 found its way to VirtualTree's official branch. My nice comment not... 2009-03-14 07:22:00 +00:00
rosenfield.albert
4ae5b43c05 Bug workaround: not sure why, but seen this assertion fire. 2009-03-12 20:21:42 +00:00
rosenfield.albert
4ba459b0f8 Bug workaround: avoid dereferencing DriverManager if ZdbcIntfs has already been finalized. 2009-03-12 20:19:52 +00:00
rosenfield.albert
62915ceb60 Bugfix: don't dereference the MethodPatches object on finalization, it may never have been initialized, or it may have already been nil'd in RevertPatchedMethods(). 2009-03-12 20:16:45 +00:00
Ansgar Becker
71d52e52c6 Fix VirtualTree to fire the "normal" OnHeaderClick event if a column with an icon was clicked. This error shows up in datagrid if you click a column for sorting twice - the second click is ignored.
Plus: OnHeaderImageClick was called when you click exactly on the column header glyph. But if no procedure was assigned here, even OnHeaderClick was not fired which is silly from a users point of view.
2009-03-11 00:22:12 +00:00
Ansgar Becker
0bcc662c37 Merge updated VirtualTree component to 4.8.4 (r179) from svn://www.soft-gems.net/library/VirtualTreeview 2009-03-10 22:21:13 +00:00
Ansgar Becker
8b65a83953 Fix previous commit: Same float format in Query grid as in Data grid 2009-03-09 22:38:38 +00:00
rosenfield.albert
af6d15e0e9 * Clear the database hint after reconnection.
* Make the connected hint public, so an outside caller can check whether a Reconnect() is useful or not.
2009-03-04 14:14:34 +00:00
rosenfield.albert
1f112b6556 someone at MySQL...
... would have my balls for breakfast if he/she saw this ;-)

Fulfills rfe #383.
2009-03-04 12:15:11 +00:00
Ansgar Becker
dbb84e6df9 Integrate stored procedures and functions into the GUI flow, so they are visible like tables and editable from everywhere.
- FetchDbTableList now makes use of various tables in INFORMATION_SCHEMA if available - the only way of listing stored routines.
- If a routine is selected, Table + Data tab hide their grids and display a corresponding message instead. Seemed the only way to keep the normal flow of clicks, not changing too much click logic.
2009-03-02 21:40:44 +00:00
Ansgar Becker
36c8937abb Remove feature "Prefer SHOW TABLES for performance reasons" and support for pre 3.23 servers
* Leads to unpredictable errors in special cases
* Advantage over SHOW TABLE STATUS is hardly measurable
* Makes integrating stored routines into the database tab complex and unstable for the benefit of nothing
2009-03-01 10:34:39 +00:00
Ansgar Becker
f20dad8adb Implement stored routine editor, see issue #420
Todo: make routines visible in the database tab so they can be edited.
2009-02-28 22:57:55 +00:00
rosenfield.albert
694f3f15fd Try to make it easier to debug a memory read outside an array's bounds (issue #997) by putting each indexing on it's own source code line. 2009-02-17 22:07:22 +00:00
Ansgar Becker
058542b39b Increase the number of rows fetched in one chunk to reduce overhead (probably still too low, should be tested on production systems) 2009-02-16 23:25:34 +00:00
rosenfield.albert
9f9a1c77ab Remove unused variable. 2009-02-12 13:41:53 +00:00
Ansgar Becker
c824c4033c Fix bug #474: added column doesn't show up when a column filter is active. 2009-01-28 21:20:41 +00:00
Ansgar Becker
e791339e86 Try a pragmatic workaround for bug #761 (Large tables crash TVirtualTree) and bug #950 (Decrease memory usage for grid results). Makes the data grid hard limited to a maximum of 100,000 rows/nodes (means ~6M memory consumption just for the tree nodes). It seems reasonable to do this as on large tables you normally create a filter to find specific rows rather than scrolling and looking the rows up by hand. The grid is now able again to display superlarge tables without losing too much memory for data of few interest. However, I hope there's no complaint the other way around for why we don't display all rows instead. 2009-01-27 19:32:20 +00:00
Ansgar Becker
d4368bc33b Fulfill rfe #637: Reintroduce filter history drop down. Integrated as submenu of the existing context menu in filter memo. 2009-01-25 10:35:51 +00:00
Ansgar Becker
1f6e894ba5 Implement a preference option to limit the size of "Copy as CSV/HTML/XML/SQL" actions. Helps with bug #793: app freezes when 'copy as csv/xml/html' is selected. 2009-01-18 22:32:31 +00:00
Ansgar Becker
6998a88ac8 Change ListVariables to be updated on demand, when it gets painted or refreshed. Removes SHOW VARIABLES from startup queries. 2009-01-14 20:38:10 +00:00
Ansgar Becker
7ce39e4e58 Disable Zeos' disconnect message and create a nicer one in main.pas 2009-01-04 14:49:55 +00:00
Ansgar Becker
0b7f87c6c2 Get rid of redundant start log message 2009-01-03 18:11:02 +00:00
Ansgar Becker
6c941f2f9c Fulfill issue #885: Make create table form resizable 2008-12-28 11:33:13 +00:00
Ansgar Becker
bc58797405 Implement per session background color selection for database tree. rfe #896. 2008-12-28 10:56:47 +00:00
Ansgar Becker
32fad96276 The new inplace editor neutralizes the need for a preference option "Enable popup text editor". Remove it. 2008-11-25 19:35:02 +00:00
rosenfield.albert
19e7043a0a Attempt to fix issue #845. 2008-11-10 23:07:55 +00:00
rosenfield.albert
59bb5e45b8 Silence unhelpful 'Check what must be adapted' (?) messages from SynEdit developers to SynEdit developers. 2008-10-19 22:45:23 +00:00
Ansgar Becker
07cb5549e9 Remove a remainder of pre Delphi 11 support 2008-10-18 16:56:21 +00:00
Ansgar Becker
e7874bc4b7 Update UniSynEdit to latest version from October 3, 2008 (no repository available unfortunately)
* Merge with heidi related changes (basically only SingleLineMode)
* Readd missing file changelog.htm to keep that file list consistent with the downloaded one
* Merge our own compiler detection again
* Disable including a further compiler includefile jedi.inc
2008-10-18 13:09:16 +00:00
Ansgar Becker
a70a0f5bd8 Fix compiler error by accidently deleted line in previous commit. 2008-10-17 00:09:00 +00:00
Ansgar Becker
a591edebac Fix bug #714: Impossible to change limit^H^H^H^H^H^H sort order by implementing a fourth button with dropdown menu, enabling the user to save all query elements in one settings. 2008-10-16 23:49:17 +00:00
Ansgar Becker
4cf1864921 Enable customizing SQL colors for identifiers, delimited identifiers, conditional comments and symbols. 2008-10-08 19:12:20 +00:00
rosenfield.albert
c8991495a7 Workaround: reclaim used memory when TVirtualTree crashes in allocation of child nodes. The correct fix would be to postpone creation of child nodes until they are actually needed (dynamic allocation), but I'm not in a mood to learn how TVirtualTree internals work and Mike didn't seem too eager to produce a fix, so this is it for now. Fixes issue #761. 2008-10-08 17:56:24 +00:00
rosenfield.albert
9b4588912c Uniform project settings for a brighter tomorrow. 2008-10-08 17:33:39 +00:00
Ansgar Becker
c87d75efae Implement a simple crash indicator for SELECTing a table's data. This boolean registry value is always set directly before executing the relevant GetResults(). If the query succeeds, the indicator gets just removed directly after that GetResults(). If the table loads for a longer time and the user exits HeidiSQL by killing the process, the indicator is still present and will be used to automatically disable filtering and sorting when that table is loaded again. Helps with issue #714 . See also http://www.heidisql.com/forum/viewtopic.php?p=2638 for a user report which this fix is addressing. 2008-09-28 22:29:08 +00:00
Ansgar Becker
d32d2e8661 Remove ToolbarTable completely from the main tool strip. Seemed worthless in terms of that I think all users rather use the context menu buttons instead of those on the toolbar which are far at the right top (= out of sight). Helps issue #738 a bit. 2008-09-25 22:20:11 +00:00
Ansgar Becker
fd9c44b576 Implement background colors for NULL fields, part 2 of rfe #692 2008-09-23 23:20:20 +00:00