Commit Graph

1303 Commits

Author SHA1 Message Date
Ansgar Becker
86031234ac When a db node gets checked, its not yet initialized children are unchecked - fix that. 2009-09-15 18:47:27 +00:00
Ansgar Becker
ab3cf3c586 Bugfix: When both QUICK and EXTENDED options were checked in CHECK mode, a switch to CHECKSUM mode didn't uncheck one of the options like it's needed, as they're mutually exclusive for CHECKSUM. 2009-09-15 18:28:44 +00:00
Ansgar Becker
31e52f4df1 When a db node in the table tools tree has "mixed" state and it contains unaddressable stored routines, it is impossible to change the db node's check state. Fix that by removing checkboxes for stored routines. 2009-09-15 18:20:55 +00:00
Ansgar Becker
6e66726e79 Fix "List index out of bounds", when the table tools dialog is called the second time, and some databases were deleted or filtered. 2009-09-15 17:57:04 +00:00
Ansgar Becker
658aab45c6 Temporary workaround to make the maintenance results work on servers with the notorious binary collation bug. How to add a workaround without breaking Unicode results here?? 2009-09-14 20:39:36 +00:00
Ansgar Becker
e0796b153f Refactor maintenance dialog:
* Replace checklist box by a virtual tree with checkboxes
* Make "Maintenance" a single tab on a TPageControl, so there may follow other tools (e.g. issue #529)
* Replace button layout by a combobox
* Add "CHECKSUM" operation and various options
2009-09-14 00:09:03 +00:00
Ansgar Becker
2146332be6 Automatically refresh children of active database node after creating a new table or renaming one. Fixes issue #1248 and part 1 of issue #1352 2009-09-12 06:47:17 +00:00
Ansgar Becker
77ec7315e8 Revert r2630, edit delay for database filter. Not needed any longer as the filter works in real-time now. Also, this delay has the chance to annoy users. Related to issue #1350. 2009-09-11 21:12:27 +00:00
Ansgar Becker
eb1e857810 Optimize database filter:
* Issue #1350: Enhance performance for database filter: Only use regular expressions, avoiding to do a second exact StringList search which is slower. 10,000 databases are filtered now in <1 sec (>10secs before)
* Now a part of a db name matches - previously the match had to be exact or a regular expressions.
* Pink background if filter doesn't match any dbs or the regular expression contents syntax error(s).
2009-09-11 20:58:34 +00:00
Ansgar Becker
f940c20b06 Add the same timer based delay to the db tree filter as for the filter panel in r2627, was also complained about in issue #1350. 2009-09-11 20:01:58 +00:00
Ansgar Becker
5e35c1811d Optimize performance for populating the database tree: SynEdit's InitializeKeywordLists() is very slow when you put a large number of dbs into SynEdit's list of tables - 10 seconds for 4,000 dbs here, vs. 1 second if we don't do that. Decided to remove that "feature", databases are not tables anyway. Fixes issue #1350. 2009-09-11 19:53:37 +00:00
Ansgar Becker
8f52879369 Fix enabled instead of disabled timer 2009-09-11 18:53:09 +00:00
Ansgar Becker
2e42a79138 Optimize grid filter logic:
* don't call filter procedure immediately in TEdit.OnChange, rather add a timer interval of 1 second after user has finished typing. On larger grids this can save you from waiting a certain period on each typed character.
* Remove regular expression support for the sake of performance. Was not documented anyway so no one will miss it.
2009-09-11 18:45:49 +00:00
Ansgar Becker
20ed8ac990 No need for an explicit call to UpdateVerticalScrollbar(), seems that's already called internally by VT.IsVisible 2009-09-11 18:18:57 +00:00
Ansgar Becker
38b51116ed Fix vertical scrollbar dimensions when nodes are filtered.
See also http://code.google.com/p/virtual-treeview/issues/detail?id=30
2009-09-10 17:55:57 +00:00
Ansgar Becker
58b97d8112 Minor code optimization 2009-09-09 20:30:44 +00:00
Ansgar Becker
6d7935ce63 Same as r2621 - remove relevant height constraints from object editors. Finally fixes issue #1348. 2009-09-09 20:23:45 +00:00
Ansgar Becker
743c8e62cc A doubleclick on the snippets box loads the selected item into the memo. In case there is no selection, do not access the list items. Fixes issue #1339 2009-09-09 20:04:53 +00:00
Ansgar Becker
542c3c309d Fix issue #1348 and issue #1196 - both caused by some VCL bug, changing the .Height property of uninvolved components when some MinHeight constraint is set on another component. Unfortunately this reopens the cosmetic issue #1147, which looks - compared to the above mentioned - acceptable to me. 2009-09-09 19:46:47 +00:00
Ansgar Becker
b2b7e4d66d Make filter panel in "Host" tab usable for all tabs. Plus: support regular expressions and one filter per tab. Fixes issue #810. 2009-09-07 23:40:28 +00:00
Ansgar Becker
2ec8938074 Enable database renaming again, this time by renaming all tables and views into the target db. Fixes issue #1338. 2009-09-07 05:52:44 +00:00
Ansgar Becker
7013441d1f Table editor: When adding a new column and the focused one is used as template, make sure we don't overtake the AUTO_INCREMENT default, as there can be only one auto-inc column in a table. 2009-09-05 09:59:10 +00:00
Ansgar Becker
2f11cbca88 Table editor: When creating a new index by using the columns context menu "Create index", use the concatenated column names as index name, instead of "Index 123". 2009-09-05 09:50:02 +00:00
Ansgar Becker
eb955ac3b3 D'oh - missing file for previous commit 2009-09-05 09:48:06 +00:00
Ansgar Becker
1dc45965c7 Allow, store and restore empty database filter, but avoid duplicate filters. 2009-09-05 09:40:49 +00:00
Ansgar Becker
9642425441 Add "Copy" menu item to table editor's column list. 2009-09-05 09:33:38 +00:00
Ansgar Becker
a7eedd3823 Table editor, "Add column" action: Pointer to added TColumn object was mixed up with an existing column. ALTER code also needs to follow the order of tree nodes. Fixes issue #1340 . 2009-09-05 09:30:49 +00:00
Ansgar Becker
a2c327fd26 Find a more self-explanatory name for ResetVTNodes() 2009-09-03 22:26:40 +00:00
Ansgar Becker
be2ec499f8 Refactor internal handling of columns in table editor. Replaces the multi TStringList workaround with a more readable, object oriented approach. One minor visible effect is lightning fast initializing on very huge tables with several 100 columns. Apart from that this change should not affect any visible stuff. 2009-09-03 22:18:29 +00:00
Ansgar Becker
c0d5b47e4a Resize both list of sessions and groupbox with details on FormResize, so both benefit from more space, not only the details box. See http://www.heidisql.com/forum/viewtopic.php?p=3482 2009-08-31 21:36:04 +00:00
Ansgar Becker
2a57b0e1a7 Reserve slightly more needed space for a checkbox so its label "ON UPDATE CURRENT TIMESTAMP" is fully visible. Fixes issue #1334. 2009-08-31 19:59:00 +00:00
Ansgar Becker
9ff75351fd Don't eat leading whitespace, needed for separation to base ALTER query. Fixes issue #1333 2009-08-31 19:54:00 +00:00
Ansgar Becker
9e731a78e1 Allow columns to have no default value at all. Important for TEXTs and BLOBs which cannot have one. Fixes issue #1261. 2009-08-30 18:31:31 +00:00
Ansgar Becker
506a187239 Enlarge the "Allow NULL" checkbox image slightly, makes it look more like a standard checkbox. 2009-08-30 06:53:10 +00:00
Ansgar Becker
33936541c1 Create one new query tab for each dropped file coming from Explorer or elsewhere. Fixes issue #1329. 2009-08-30 06:36:04 +00:00
Ansgar Becker
1d6ff80121 Code cosmetic:
* Move "const" + "type" fragments to a unified place.
* Use mixed case instead of all upper in a variable
* No need to format the "uses" list vertically
* Move helper InheritFont() to helpers.pas
2009-08-30 06:27:53 +00:00
Ansgar Becker
0ec73d7727 Clear column selection box before repopulating it after "Sort alphabetically" was clicked. Fixes issue #1330. 2009-08-30 06:20:36 +00:00
Ansgar Becker
fe31264f6b Connect data filter editor to the auto completion object. Fixes issue #1045. 2009-08-29 18:31:32 +00:00
Ansgar Becker
a554f209bd Fix unusable database tree after entering a regular expression with syntax errors into the filter combo. 2009-08-29 06:53:53 +00:00
Ansgar Becker
8c3d298f95 Revert border adjustments from r2598, which were meant to minimize the border between the database filter and database tree. In the end that looks just ugly and non-standard. 2009-08-29 06:25:32 +00:00
Ansgar Becker
4dc6ec2423 Minor: fix code indentation 2009-08-29 06:21:27 +00:00
Ansgar Becker
a2ef629b81 Move "Databases" filter from session manager to an editable combobox below the database tree. Keeps session manager free from connection unrelated stuff, provides more comfort, adds a "recently used list" of old filters which is kept over session connects, and supports regular expressions now. Fixes issue #776 2009-08-27 22:18:50 +00:00
Ansgar Becker
38b157830a Fix mixed up session folder in registry while storing LastUsedDB setting 2009-08-27 20:07:28 +00:00
Ansgar Becker
a37a2af966 Catch (TNT-)comboboxes in copy + paste actions. Fixes issue #1321 2009-08-27 13:27:39 +00:00
Ansgar Becker
6df4b7a706 It's legal for ActiveGrid() to return nil, as there are tabs without a data- or querygrid. Fix relevant functions so they don't barf with a "List index out of bounds" violation. Fixes issue #1320 2009-08-25 21:37:34 +00:00
Ansgar Becker
45eba2139c Examine query error messages for "(errno: 123)" and add the more meaningful message returned by perror.exe . Adds a static error message list from my local 5.1.22 server. This is especially helpful in the foreign key editor, where any InnoDB error seems to be the more cryptic one by default, while there are lots of possible error causes. See issue #400. 2009-08-23 22:53:52 +00:00
Ansgar Becker
b1aaeaaaf4 Disable foreign key editor for table engines which don't support that. Display a red hint label so the user knows what to do to enable foreign keys. 2009-08-23 21:59:57 +00:00
Ansgar Becker
679bbb428c Fix column clause detection of SHOW CREATE TABLE result, so foreign key clauses are not displayed as columns. 2009-08-23 18:49:27 +00:00
Ansgar Becker
4ee136dae0 Be sure DBTree.OnFocusChanged is called when doubleclicking a table in the Database tab or "Edit ..." menu item was explicitly clicked. Fixes issue #1225 with annoyance factor. 2009-08-23 18:33:37 +00:00
Ansgar Becker
8cfb99e0c6 Avoid a second round trip via EndEdit() and Destroy() after the editor was unfocused. Lead to an access violation in the second Destroy() call. Fixes issue #1304. 2009-08-23 18:23:39 +00:00