diff options
author | rowanbeentje <rowan@beent.je> | 2009-04-16 01:39:54 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-04-16 01:39:54 +0000 |
commit | 20c46135604cfd3a38c55647438264e5360c80a4 (patch) | |
tree | 7e0ac9e61ec9636584ce71ee11f50a58a8672f18 /Source/TableDocument.h | |
parent | 70b0c84d4e62117075d347f905b5543bc4d537ee (diff) | |
download | sequelpro-20c46135604cfd3a38c55647438264e5360c80a4.tar.gz sequelpro-20c46135604cfd3a38c55647438264e5360c80a4.tar.bz2 sequelpro-20c46135604cfd3a38c55647438264e5360c80a4.zip |
- Amend the connection sheet to add an "Add to favorites" button, remove the + and - buttons, and re-enable double-click to connect. This addresses the majority of Issue #232, although the "Edit" button is not yet functioning.
- Fix a bug where if an autoconnection failed, connection was automatically reattempted
- Add a name field to the connection sheet, and display the name in the window title in place of user@host if set
Diffstat (limited to 'Source/TableDocument.h')
-rw-r--r-- | Source/TableDocument.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/TableDocument.h b/Source/TableDocument.h index f6019e58..10b780a5 100644 --- a/Source/TableDocument.h +++ b/Source/TableDocument.h @@ -54,6 +54,7 @@ IBOutlet id favoritesButton; IBOutlet NSTableView *connectFavoritesTableView; IBOutlet NSArrayController *favoritesController; + IBOutlet id nameField; IBOutlet id hostField; IBOutlet id socketField; IBOutlet id userField; @@ -86,7 +87,6 @@ NSString *selectedDatabase; NSString *mySQLVersion; NSUserDefaults *prefs; - NSString *favoriteNameBeingChanged; NSMenu *selectEncodingMenu; BOOL _supportsEncoding; @@ -107,11 +107,11 @@ - (IBAction)cancelConnectSheet:(id)sender; - (IBAction)closeSheet:(id)sender; - (IBAction)chooseFavorite:(id)sender; -- (IBAction)removeFavorite:(id)sender; +- (IBAction)editFavorites:(id)sender; - (id)selectedFavorite; - (NSString *)selectedFavoritePassword; - (void)connectSheetAddToFavorites:(id)sender; -- (void)addToFavoritesHost:(NSString *)host socket:(NSString *)socket +- (void)addToFavoritesName:(NSString *)name host:(NSString *)host socket:(NSString *)socket user:(NSString *)user password:(NSString *)password port:(NSString *)port database:(NSString *)database useSSH:(BOOL)useSSH // no-longer in use @@ -164,6 +164,7 @@ - (void)closeConnection; //getter methods +- (NSString *)name; - (NSString *)database; - (NSString *)table; - (NSString *)mySQLVersion; |