Commit Graph

462 Commits

Author SHA1 Message Date
Ansgar Becker
53034e9900 Only ListTables' column visibility is currently customizable. So, make sure to unhide the newer "Comment" column in ListColumns for some users which have used some inbetween revision to save ListColumns' layout. Thanks to Nico for the hint via pm. 2008-06-13 23:46:21 +00:00
Ansgar Becker
cf295905cc Add usefull "Expand all" and "Collapse all" menuitems to dbtree. 2008-06-13 23:29:59 +00:00
Ansgar Becker
cdbef6bb18 Display highlight icon of a database if a child node is selected. 2008-06-13 23:14:30 +00:00
Ansgar Becker
41074d211e Convert database tree from TTreeView to TVirtualStringTree.
- Fixes bug #271 "F5 shortcut in database tree not working"
- Fullfills rfe #519 "Highlight selected item in tree view when focus is elsewhere"
- Fixes inconsistent expansion state of nodes after refreshing
- Fixes plus sign staying when a db node with 0 tables was selected
- Slightly enhances painting speed within the dbtree
- Removes temporary storage of a rightclicked node (DBRightClickSelectItem). VirtualTree handles its right clicked selection exactly like the left clicked one, which makes makes coding a bit cleaner as we can always use the selected item instead of hacking with the right and left clicked node. On the other side it removes a quite user friendly feature. Well, we can reimplement this feature later, though it's not user UNfriendly currently.
- Reasonably rename the StringList "OnlyDBs" to "DatabasesWanted" and "OnlyDBs2" to "Databases"
2008-06-13 23:05:51 +00:00
rosenfield.albert
327f4c041d When running batch queries, pop up the 'executing query' dialog at least once every 2.5 seconds (if query execution speed allows it) to avoid getting trapped by Vista's broken frozen-app-check. Fixes issue #544. 2008-06-13 12:56:52 +00:00
Ansgar Becker
1b2f2479da Fix initial state of edit|create view actions 2008-05-30 18:54:42 +00:00
Ansgar Becker
86adf8b6b8 Implement dropping files onto the filter editor after having added the eoDropFiles option in r1421 which does nothing more than accept file drops. 2008-05-30 05:21:49 +00:00
Ansgar Becker
21ada0acc8 Fix setting customized font name and size of filter editor and process viewer. 2008-05-30 04:59:25 +00:00
Ansgar Becker
4d6a87bf94 Enable option "Hide unused, deactivated scrollbars. Only show them when they're needed." for Query and filter editor and SQL log. 2008-05-29 20:14:34 +00:00
Ansgar Becker
b6ab4a5fbf Enable reasonable option "Remember X position of cursor while moving the cursor up and down through short and long lines" for Query and Filter editor. 2008-05-29 20:06:29 +00:00
Ansgar Becker
e7af5a5173 Uniform reasonable options of SynMemoFilter to those of SynMemoQuery 2008-05-29 20:02:20 +00:00
Ansgar Becker
1bafdb6d2f Allow <Tab> and <Shift>+<Tab> for block (un)indentation in query and filter editor. Fullfills part 1) of 496. 2008-05-29 19:57:21 +00:00
Ansgar Becker
8c1bc8a54c Cosmetic fix for btnQueryStopOnErrors.Down mode 2008-05-29 17:17:04 +00:00
Ansgar Becker
882ff23a88 Fix minor bug in reselecting items in queryhelpers box for cases in which all items were previously selected. (broken in r1416) 2008-05-29 17:13:04 +00:00
Ansgar Becker
446a4e8a47 Implement rfe #302 "Multi-select Column Names in Column Name Windows" (and rfe #511 as a duplicate) 2008-05-28 20:52:26 +00:00
Ansgar Becker
069527bfc2 Implement rfe #500 : Wordwrap option/button for query editor 2008-05-28 19:22:14 +00:00
rosenfield.albert
4f48d961ee Implement rfe #301: "Copy Table Name from Tree- View to Query Window on Double-click". 2008-05-28 15:43:48 +00:00
rosenfield.albert
2e2fcf7cb1 Look for ftWideMemo rather than ftMemo fields when coloring cells. 2008-05-27 20:20:33 +00:00
Ansgar Becker
88d25c902d Add option "Also check for updated nightly builds" to preferences dialog and implement needed logic in updatecheck dialog and main unit. 2008-05-25 19:35:58 +00:00
Ansgar Becker
343254c8d0 Enhance regular expression for query code completion.
See siMKin's report on http://www.heidisql.com/forum/viewtopic.php?p=2076
1. correctly match tablenames and aliases which were quoted by backticks
2. only accept \w characters for both tables and aliases. Although this can be faulty in rare cases where the tablename was backtick-quoted and contains non-\w characters. But on the other side it avoids wrong matches in more popular cases where the tablename is preceeded by a bracket or comma: "SELECT * FROM (table1 AS one,table2 AS two"
2008-05-18 15:51:24 +00:00
Ansgar Becker
370b6d75ab Apply icons to tabs of query helpers box. 2008-05-17 18:10:09 +00:00
Ansgar Becker
d429597a35 Fix loading ANSI SQL files with critical characters into the Query editor. Applies to normal file loads as well as for snippet loading as both mechanism call QueryLoad(). Previously only UTF8 files were loaded correctly, ANSI files lead to an empty editor. With this overloaded LoadFromFile comes an auto detection which works at least for various files here. 2008-05-15 17:57:03 +00:00
rosenfield
36efcf48ed Rename Settings tab to Authentication.
Settings may be a bit too generic a word to be a useful term here.
2008-05-14 09:25:21 +00:00
rosenfield
9b42d2ac70 Remove ANSI support; see previous commit. 2008-05-13 18:33:49 +00:00
Ansgar Becker
074f160575 Adjust controls in "About" box:
- Remove the "Donate" button and add a more eye catching "Make donation by Paypal" logo below the MySQL logo
- Rename "Support forum" to what it is: a "User to user forum"
- Add a "Check for updates..." button right besides the version infos which basically calls the updatecheck dialog.
2008-05-13 18:29:30 +00:00
Ansgar Becker
7c876363ef Fix bug in TPrivilege.GetPrettyPrivNames: PrivNames with 4 chars or less (fx "File", "Drop") were converted to blank strings. Additionally stripping "_priv" was redundant here because it's already done before GetPrettyPrivNames is called. 2008-05-13 18:01:01 +00:00
Ansgar Becker
098893403e Rethinking minimum dimensions of usermanager form, now that the notes are placed on a seperate tab to take less room. 2008-05-13 17:39:26 +00:00
rosenfield
3ce71e04fd Bugfix: some servers do not have all the max_xxx columns. 2008-05-13 12:37:34 +00:00
rosenfield
6225147165 * Bugfix: minor inconsistency when re-editing password.
* Color the password field light grey when it's showing a hash.
2008-05-13 12:32:00 +00:00
rosenfield
26c83c8274 Bugfix: selecting the limitations tab would cause the user to appear as modified. 2008-05-13 12:22:05 +00:00
rosenfield
6b1f0d1bfb Move some of the hints to a separate tab. Logically uglier but visually prettier. 2008-05-13 12:10:12 +00:00
Ansgar Becker
8ab35a23a5 Fix firing queries in the wrong (= mysql) database after closing the user manager. ExecUseQuery also sets Connection.Database which is then compared with ActiveDatabase later in ExecXXQuery. 2008-05-12 22:28:59 +00:00
Ansgar Becker
8f26db8090 Try to create bigger and darker bullet icons for representing columns and its neighbours in ListColumns. The column icon is also used in the usermanager btw. I don't think they're too pretty now but they'll do their job better than before. Please shout if you find prettier icons. 2008-05-12 22:22:01 +00:00
Ansgar Becker
ea56b16601 Add a Help button to Maintenance dialog which basically calls the SQL help window and automatically browses to "OPTIMIZE". Other components slightly adjusted to fit. 2008-05-12 18:01:44 +00:00
Ansgar Becker
d0a0a22443 Display sizegrip in the lower right corners of all resizable forms which have no TStatusbar. (For copyright notices see code in helpers.pas) 2008-05-12 17:55:06 +00:00
Ansgar Becker
e28e530488 The usermanager dialog is once created and then held in memory by main.pas, not by childwin.pas. Move preparing hints from FormCreate to FormShow to ensure the SHOW VARIABLES part is executed on the relevant server connection. 2008-05-12 08:18:46 +00:00
Ansgar Becker
b095a2abb2 memoHints lacks a Transparent property and looks ugly in XP theming where the pages of a pagecontrol normally have a different color than clBtnFace. Convert the TMemo to a TLabel and set that to transparent. 2008-05-12 08:07:12 +00:00
Ansgar Becker
2688c224a4 Cosmetic: Adjust minimum width and height of usermanager dialog to match the dimensions changed in rev 1365 2008-05-12 06:56:31 +00:00
rosenfield
5e0c5a235a Bugfix: consistency when editing the user name field. 2008-05-10 19:56:44 +00:00
rosenfield
fc5459c443 * Bugfix: Vista fixation panels were incorrectly anchored.
* Add a few hints that are pretty crucial to understanding the quirks of the MySQL privilege system.
2008-05-10 19:43:32 +00:00
rosenfield
f7e5c5cb8f "disable login" seems more appropriate than "disable account", since disabling authentication with password does not render the privileges for an account unusable by other accounts.
Perhaps there should be a hint under privileges a la 'notice that privileges granted to more generic accounts will also affect this user'.  OTOH, the amount of hints has already grown to 'confusing'..
2008-05-10 11:14:49 +00:00
rosenfield
4873f32e10 Bugfix: work around misplaced icons on Vista.
(I'm in 16-color mode right now, so if things look weird then that's why!)
2008-05-10 11:04:18 +00:00
rosenfield
56ef11a142 Expand dialog slightly so everything fits, even using Segoe UI. 2008-05-09 14:58:43 +00:00
rosenfield
dbe130ba74 Add a few more hints regarding the 'host' field. 2008-05-09 14:30:27 +00:00
rosenfield
e57857c975 * Bugfix: Allow editing the 'fallback' password and privileges.
Note on verbiage:  I chose "Everybody" rather than "Everyone" or "Fallback" as the pretty name for this account.

"Fallback" just seemed like it was misplaced in the user dropdown list.

"Everyone" seems to mean individuals in a group, while "everybody" seems to mean the group as a whole.  Thus "everyone" is a bit more personal.

This could convey the notion that you need to have a personal account before these privileges will apply to you, which is not the case.  Anyone that logs in with a non-existent user name will get these privileges.

Therefore, "Everybody".  It hopefully denotes that the privileges are given to everyone with a personal account, PLUS people authenticating with a rubbish user name (and the password, if any).

This last category of logins are commonly called "anonymous users" in the MySQL documentation.  "Anonymous" does not quite fit this account however, because the privileges given also apply to everyone else.

* Bugfix: Copy + paste same text in the username field caused a warning.
2008-05-09 13:35:26 +00:00
rosenfield
9ca0cea574 Add two more icons: group {add,delete}. 2008-05-09 13:09:47 +00:00
rosenfield
e5a8981c66 Partial revert of r1348: restore the group edit icon, which is going to be used in a moment. 2008-05-09 12:49:09 +00:00
rosenfield
ec685f50b7 Bugfix: Host='' and Host='%' means the same. Canonicalization was in place here and there, but also missing in a couple of spots. 2008-05-09 12:38:56 +00:00
rosenfield
a0546a403d Bugfix: changing a limitation did not cause a 'modified' icon in the account dropdown. 2008-05-09 11:48:55 +00:00
rosenfield
d4ead47114 Flush privileges after apply. 2008-05-09 11:32:28 +00:00