diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-07-31 11:13:50 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-07-31 11:13:50 +0000 |
commit | 43f758956eefb4525766f53d6c32ca4caab473a1 (patch) | |
tree | e8530fe3d682f41b0e46129a99f819e18c2996b9 /Source/SPPreferenceController.h | |
parent | 9d771214d578c0c81288969191d43b1a597fe7f2 (diff) | |
download | sequelpro-43f758956eefb4525766f53d6c32ca4caab473a1.tar.gz sequelpro-43f758956eefb4525766f53d6c32ca4caab473a1.tar.bz2 sequelpro-43f758956eefb4525766f53d6c32ca4caab473a1.zip |
• Favorite Preferences - Favorite name issues fixed:
- Trap and control the 'name' field of the new added favorite. If the user pressed 'Add Favorite' the 'name' field is set to "New Favorite". If the user do not change the 'name' field or the user deletes the field content it will be set to user@host automatically. This also fixes the issue for empty names.
- focus is set to 'Host' field after "Add Favorite"
- focus is set to 'Name' field after "Duplicate Favorite"
Diffstat (limited to 'Source/SPPreferenceController.h')
-rw-r--r-- | Source/SPPreferenceController.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/SPPreferenceController.h b/Source/SPPreferenceController.h index f5035787..515221e9 100644 --- a/Source/SPPreferenceController.h +++ b/Source/SPPreferenceController.h @@ -49,6 +49,12 @@ IBOutlet NSSecureTextField *socketPasswordField; IBOutlet NSSecureTextField *sshSQLPasswordField; IBOutlet NSSecureTextField *sshPasswordField; + IBOutlet NSTextField *favoriteNameTextField; + IBOutlet NSTextField *favoriteUserTextField; + IBOutlet NSTextField *favoriteHostTextField; + IBOutlet NSTextField *favoriteUserTextFieldSocket; + IBOutlet NSTextField *favoriteUserTextFieldSSH; + IBOutlet NSTextField *favoriteHostTextFieldSSH; KeyChain *keychain; NSDictionary *currentFavorite; @@ -67,6 +73,9 @@ NSToolbarItem *shortcutItem; NSUserDefaults *prefs; + + BOOL favoriteNameFieldWasTouched; + int favoriteType; } - (void)applyRevisionChanges; |