326 Commits

Author SHA1 Message Date
bb76a60abb Enhance position and size of checkboxes in printer dialog. Some captions were cut, especially when you call the dialog for the command stats list. 2007-12-14 20:28:41 +00:00
2e859faf5e Fix bug #1850358 Table name autocomplete shows "dummy node" 2007-12-14 18:41:46 +00:00
249610072e Minor followup to rev 1170:
- Wording: "table" should be more clear than "objects"
- Source: Add TODO for platform specific method call
- GUI: Add right hand anchor for new radiobutton to ensure it's not covering some borders of the parent box
2007-12-13 18:04:49 +00:00
4e731b7fe5 Follow up to rev 1169: Add a more eye catching and user friendly solution to export to a directory.
- Add a fourth radiobutton + edit + button labeled "Directory" below the "File" option
- Code just uses that new option just like the File option. Only differentiate in the InitFileStream method.
- The SelectDirectory() method expects the unit FileCtrl in the USES clause. Silence a relevant compiler warning about usage of platform specific units - we will never compile anything else than a Win32 app here.
2007-12-12 21:42:49 +00:00
4793d275cd Add feature #1843670 "Multi-table Automated File Exporting"
The output filename gets parsed and the eventually existing "<table>" pattern gets replaced by either "header", "table1", "table2", ..., or "footer". That means, the single SQL files won't be complete in the end, as the header and footer is missing in the table-files. Not 100% sure if this is a good strategy. For me it seemed like the best/fast/lame way of working around the fact that the header potentially contains a CREATE DATABASE statement.
2007-12-10 21:02:06 +00:00
69e649b70b - Fix the copy+paste workaround in DBGrids, was malfunctioning when grid is in editormode.
- Add a reminder for enabling Unicode in this workaround
2007-12-05 13:01:09 +00:00
35ebc27761 Merge SynEdit sources with Unicode enabled version from http://www.mh-nexus.de/unisynedit.htm 2007-12-05 12:37:49 +00:00
db48c82110 Find a better fix for the black focus rectangle plus fix another graphical glitch for MEMO and BLOB cells, which didn't get covered completely by the (NULL). This fix just leaves the (MEMO) and only uses the grey color for it. 2007-12-05 00:36:03 +00:00
367cb4cc40 Fix a minor graphical glitch when a focus rectangle is displayed in a gridcell (broken in rev 1156) 2007-12-05 00:12:49 +00:00
42166f0975 Remove "Data always in edit mode" option again and setting that to False at designtime. (as discussed on the devels-mailinglist) 2007-12-04 23:51:41 +00:00
d3307814b5 Followup to rev 668 and rev 678: Reenable option "Datagrids always in edit-mode". Implement a simple workaround for the broken copy+paste shortcuts. However, don't touch the TAction items Copy+Paste to avoid unpredictable behaviour. 2007-12-02 13:01:52 +00:00
d6cda29f14 Add Nemanja (commandline parser) to authors list. Some GUI adjustments in the about window needed because that list got longer. 2007-12-02 07:52:04 +00:00
23c13d2531 Cleanup usage of background colors in grids and listviews:
* TNTGrid is not capable of displaying a sort arrow in column titles. So, signalize sort direction of columns in grids and listviews by lightgrey (= ascending) and mediumgrey (= descending)
* Remove special color for NULL cells in grids because it can conflict with the new sorting colors. Instead, place a grey (NULL) text in these cells. Less gaudy colors now.
* Also remove grey background in primary key columns for the benefit of sorting colors. PK cells have bold font anyway, should be noticable enough.
2007-12-01 22:37:21 +00:00
85faa5ffc3 Implement parser for connection parameters on commandline.
Code snippets by Nemanja, see discussion: http://www.heidisql.com/forum/viewtopic.php?t=252
2007-11-30 21:34:41 +00:00
8c0965166c Fix second part of issue #1839045: conditional around default charset winds on for too long, encapsulating "row_format" too. Lines 754-768 should probably be factored out into a general method for doing these conditionals. Hmm, and why are there different target MySQL versions when the export function generates multi-version SQL anyway? 2007-11-29 20:42:48 +00:00
92737fa072 When masking USING <indexing algorithm>, place the end of the conditional enclosing right after the name of the algorithm (at the first space. assuming the name is only one word), rather than after at the first comma or parenthesis. Fixes issue #1839045. 2007-11-29 20:36:49 +00:00
f6d4e637e3 Replace TSMDBGrid in Data + Query tabs by TTntDBGrid.
- Implement an alternative solution for handling sorted columns without usage of SMDBGrid's sortcolumns. Move relevant structures and functions from data_sorting.pas to childwin.pas and use them in both units.
- Upgrade some code parts to use WideStrings instead of Strings so they don't break with the new grid.
- Use Grid.OnDrawDataCell as an alternative to Grid.OnGetCellParams as the latter one is a feature of SMDBGrid
- Cosmetic: enhance screen real estate in viewdata()
2007-11-26 20:58:08 +00:00
415ef1d8c2 Fix bug #1832418 "access violation. no import" 2007-11-15 17:51:24 +00:00
4107c21e1d Fix order of developers in aboutbox. Active members should be listed at the top. 2007-11-14 19:35:54 +00:00
0cc2bd5f7f Get rid of deprecated and platform symbols. 2007-11-09 12:14:25 +00:00
e7bcbdf293 * Bugfix: plug the most obvious memory leaks.
* Clear some unused code and wrong comments.
2007-11-09 09:51:31 +00:00
51c23000f9 Correct some code comments. 2007-11-09 07:59:14 +00:00
727e79aa33 Parameter checking is not useful here, at least not until Insert Files makes use of the query thread. 2007-11-09 07:55:10 +00:00
a706163966 Bugfix: regression introduced in revision 1104 - Abort()ing in popupTreeView causes various misbehaviours.
Also added three debug statements so the rest of you can test and see that things happen in the right order now; feel free to remove these.
2007-11-08 12:10:37 +00:00
c8d8712a89 Fix bug #1827494 import csv file field terminated by not working 2007-11-07 19:01:02 +00:00
95125c1861 TTreeNode.AbsoluteIndex did not work exactly as I had imagined. With this patch we're back to right-click + refresh in tree view being unstable, in fact with the exact same exception as before. (But at least it should be easier to debug now.) 2007-11-07 12:09:59 +00:00
5f86b11cad * Bugfix: The TTreeView component has a nasty habit of inserting a bad memory reference into TTreeView.Selected whenever TTreeView.ClearSelection() or TTreeView.Items.Clear() are called. The bad memory reference is in turn picked up by GetActiveDatabase and GetSelectedTable, which are used all over the place, making stuff like this fun to debug. Worked around by constructing a 'fake' db tree in memory, then prodding the TTreeNodes structure from that on top of the regular DB tree. Someone bothered to do a bit of serialization / deserialization magic in TTreeNodes.Assign, making this work beautifully.
* Bugfix: When methods are called recursively, they should push/pop altered event handlers on a LIFO stack instead of blindly setting and unsetting them.

* Cosmetic: Reclaim screen real estate in ReadDatabasesAndTables().
2007-11-07 07:02:10 +00:00
a8c01d8f77 * Bugfix: node.Selected := true and tree.Selected := node is not the same, for some reason.
* Bugfix: Some state changes (tree.Selected) did not correctly take effect when tree.Items.{Begin,End}Update was used, causing an exception later on in GetSelectedTable, GetActiveDatabase etc.

To reproduce the bug, right-click a table, drop it, then right-click another table in same database and choose "refresh".
2007-11-06 14:53:12 +00:00
fcc066d3e0 Follow-up to r1103: Enable keys before unlocking the table, so things are done in reverse to the locking process. 2007-11-06 14:20:11 +00:00
62eb57abf1 Follow-up to r1104: popup menu entry click event handlers are invoked via window messages, sigh. 2007-11-06 14:19:21 +00:00
508bd4c96d Oops, forgot to check before committing. This line should not have been part of the last commit. 2007-11-06 13:38:22 +00:00
90035256ec Bugfix: Fix a whole slew of access violations when various routines try to read memory referenced by DBRightClickSelectedItem but already released (or reused). For example, the recurring AVs when opening the 'export tables' dialog. 2007-11-06 13:33:20 +00:00
6d326739c2 Bugfix: LOCK TABLES needs to be done before DISABLE KEYS. MySQL seemingly does not always enforce this correctly? Either way, it's the correct semantics, to prevent other writers leaving data in the table after keys has been disabled but before HeidiSQL locks it. 2007-11-06 13:07:39 +00:00
65cfbd462d Add user preference to disable snipping of long log lines. While it conserves memory, it is undesirable if you are debugging.
(Changed to help andipfaff troubleshoot issue #1815148.)
2007-11-06 12:48:31 +00:00
2220a2c081 Bugfix: Prevents the change of delimiter on focus query editor. 2007-11-06 04:34:06 +00:00
f0bc98f305 Fix bug #1826253 "Too easy to change delimiter by accident" 2007-11-06 04:22:48 +00:00
7cc7007de1 Fix one memory leak in threaded queries (detected by testing and comparing, using taskmanager) 2007-11-04 13:23:47 +00:00
a42a84ff6e Fix bug #1819886 "export silently overwrites target files" by later prompting for overwriting the target file. 2007-10-28 13:01:02 +00:00
d3529fd37d Fix bug #1820595 "Access violation in manage indexes" 2007-10-28 12:39:04 +00:00
22f5af0f8b Fix bug #1820597 "Can't delete the last index of a table" 2007-10-28 12:25:31 +00:00
9b90e38572 Fix bug #1685799 "interface allows selecting zerofill without unsigned" 2007-10-28 12:01:34 +00:00
382af79afc Fix issue #1819883. 2007-10-25 13:32:24 +00:00
e6977624cc My IDE seems quite eager to remove this property. Anybody using it? 2007-10-24 14:13:56 +00:00
0a3f6abdf9 Add a light "progress bar" to the percentage column of ListCommandStats to visualize the amount of the commands. 2007-10-23 22:58:20 +00:00
07be7a7222 GUI specific initializings and restoring registry settings belongs to ReadWindowOptions. So, move all two lines from FormCreate here. 2007-10-23 21:40:18 +00:00
edbfbedc2f Hide columns in ListTables if their header was "draggedout", which means: dragged up or down, not to the left or right. 2007-10-23 21:29:20 +00:00
cbc37695de Minor: Add/update documentation for MakeFloat 2007-10-23 19:00:54 +00:00
f085be1ca8 Rename mysql.pas and it's helper file installer_function_list_generator.php so their purpose is more clearer to newbies. 2007-10-23 18:49:14 +00:00
13e925b9fa Bugfix: Quick fix for multiple access violations in filter code, as described in issue #1704044. 2007-10-23 12:52:37 +00:00
88076cd475 Cosmetic: clarify a comment. 2007-10-23 12:17:59 +00:00