f01893d08a
Experimental: Reintroduce table tab, this time by placing the existing editors for tables, views and routines as TFrames onto that tab. Unfortunately a whole bunch of GUI changes involved here which makes the diff unreadable. Should solve issue #1149 .
2009-06-04 12:56:55 +00:00
1d94ad0156
Bugfix: close user manager form when no access to privilege tables.
...
Forms are not closeable with Close() inside FormShow, you must either return -1 in response to a WM_CREATE message, post a WM_CLOSE (seen that fail too though), or just do the check before showing the form.
2009-03-04 14:43:35 +00:00
909d31fd64
Simplify writing settings to registry:
...
* Keep only one TRegistry object in memory instead of creating a new one in each routine.
* Move out relevant functions and TRegistry object from main to helpers to make them usable globally.
2009-01-03 17:16:11 +00:00
f1b3f5501f
Remove last traces of MDI (issue #513 ). Merges code, controls and events from childwin into main.
2009-01-01 23:24:36 +00:00
a849c0cc9b
Fix bug #852 : user manager delete/add object. The privilege enumeration relies on Combo.ItemIndex being the correct priv number which didn't work for privs which were marked as "deleted" and therefore hidden. Deleted access objects are now kept in the object pulldown and marked with a "deleted" icon plus a text postfix " (deleted)".
2008-11-03 23:44:42 +00:00
9a52593dc2
Use Vista's Segeo font for all forms by using the SetVistaFonts() in mainform plus the new routine InheritFont() which simply overtakes fontname and size from the mainform to all other forms.
2008-08-29 18:20:14 +00:00
6daf4b3f76
Fix most remaining Unicode unsafe GUI controls.
2008-08-25 20:24:00 +00:00
aabd4bbf57
Add some more support for databases and tables with unicode characters.
2008-08-08 19:32:24 +00:00
bfbf1ee2f1
Terminology update: a table consists of columns vs rows, and the intersection of a row and a column is called a field.
...
(Except for Delphi's TField and MySql's FIELD, obviously, which are harder to fix.)
2008-08-07 18:56:06 +00:00
2d59e35e38
Fix bug #584 "HeidiSQL GUI : Create New User Error(s)"
2008-06-23 19:16:45 +00:00
ea352df61d
Bugfix: removing a privilege did not work for the special case where UPDATE ... ON DUPE KEY instead of INSERT has to be used (for the server-level privileges jumbled together with lots of irrelevant stuff we don't want to touch in mysql.user).
2008-06-23 17:06:06 +00:00
2ed4507666
Code cosmetic: Sanitize NODETYPE_BASETABLE constant from superflous "BASE"
2008-06-14 12:48:04 +00:00
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
3ce71e04fd
Bugfix: some servers do not have all the max_xxx columns.
2008-05-13 12:37:34 +00:00
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
26c83c8274
Bugfix: selecting the limitations tab would cause the user to appear as modified.
2008-05-13 12:22:05 +00:00
6b1f0d1bfb
Move some of the hints to a separate tab. Logically uglier but visually prettier.
2008-05-13 12:10:12 +00:00
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
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
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
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
5e0c5a235a
Bugfix: consistency when editing the user name field.
2008-05-10 19:56:44 +00:00
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
dbe130ba74
Add a few more hints regarding the 'host' field.
2008-05-09 14:30:27 +00:00
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
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
a0546a403d
Bugfix: changing a limitation did not cause a 'modified' icon in the account dropdown.
2008-05-09 11:48:55 +00:00
d4ead47114
Flush privileges after apply.
2008-05-09 11:32:28 +00:00
d4c32d56d7
Implement a completely new user manager (look + feel + logic):
...
- Accounts and existing privileges are presented in a pulldown which makes it as easy to use as a toy
- Adding privileges calls the new SelectDBO dialog which is basically a tree like childwins dbtree
- Updating accounts canonicalizes various odd/legacy mechanisms in the MySQL user system
- Fullfills feature request #1547437 (btw)
- Wants to be tested heavily on different servers
A result of a team work. 1000 thanks to rosenfield for the admin friendly logic implementation, tons of fixes and usability ideas.
2008-05-08 20:45:51 +00:00
85f91d87aa
Dynamically fetch names of privileges on the "Add user" tab of the usermanager, as discussed on the mailinglist.
...
TODO: Refactor complete GUI of this dialog, nuke tabs and do both adding and editing users in one GUI.
2008-04-16 15:34:51 +00:00
38caa4cd99
Make most "btnCancelClick" procedures superflous by assigning the correct ModalResult (mrCancel) to the relevant cancel buttons.
2008-03-09 20:27:12 +00:00
bd597d0c1d
Use a PNGImageList and find replacements for nearly all icons in the application.
...
Sources:
- Mark James' Silk icons
- Everaldo's Crystal icons
Todo: Load icons at runtime
2008-03-04 00:20:38 +00:00
4e23728aa2
- Move all hardcoded preferences names (registry) plus their default values to const.inc to fix inconsistencies like the one described here: http://www.heidisql.com/forum/viewtopic.php?p=1739
...
- Consequently use Mainform.GetRegValue() to read these values, an overloaded method with either Boolean, String or Integer result. These methods keep a global TRegistry object (regMain) open while the application runs, rather than creating a new one for each caller.
- Remove Mainform.SaveRegValue() which was used in one or two callers. Rather use a TRegistry object and do that by hand. There's no significant advantage in using a SaveRegValue method currently.
2008-02-06 00:00:52 +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
b04631b21e
Bugfix: regression from r903: user manager was non-functional.
2007-09-17 16:41:21 +00:00
9409c798ab
Remove ActualDatabase and ActualTable variables, plus various minor optimizations that ensued from said change. Fixes a problem where when:
...
- viewing data in a table
- switching to query tab
- pressing master refresh
some of the tabs would disappear.
2007-09-11 15:58:47 +00:00
c44040387c
Fullfill feature wish #1754228 : Sort usernames in User-Manager
2007-09-06 14:46:44 +00:00
de5d74f295
Use new image index constants in all relevant places.
2007-08-03 17:44:57 +00:00
3e566dcf13
Fix selecting the correct database when opening the usermanager and when it's closed.
2007-07-13 05:42:52 +00:00
c02ae7a711
Move creation of EditUserForm from application startup to a place where it's done on demand.
2007-07-03 19:41:15 +00:00
dba536338c
Implement a caching mechanism which avoids tons of "SHOW COLUMNS FROM xyz" queries when navigating in the users-tree.
2007-06-28 23:52:19 +00:00
4d8c8114b0
* Fix AVs when setting "Active" property on not assigned TDataSet-objects. Call graceful FreeAndNil instead.
...
* Move ZQueryColumnNames from the global context to the local procedure where it's used.
2007-06-28 23:29:28 +00:00
3c8f123a81
Move *.pas, *.dfm and *.inc files from root directory to a new "source" subdirectory. Leaving just the readme in the root to give all newbies a very clear and unique starting point.
2007-06-28 20:00:04 +00:00