From 402fee4b8e3c3d6a5ae3ff018df0279edf0b191a Mon Sep 17 00:00:00 2001 From: abhibeckert Date: Sat, 6 Sep 2008 01:03:18 +0000 Subject: added 'addto favourites' button to connect sheet. stubbed out remove from favourites button.' --- TableDocument.m | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'TableDocument.m') diff --git a/TableDocument.m b/TableDocument.m index b15006d5..a8d7d326 100644 --- a/TableDocument.m +++ b/TableDocument.m @@ -307,6 +307,17 @@ reused when user hits the close button of the variablseSheet or of the createTab return [keyChainInstance getPasswordForName:keychainName account:keychainAccount]; } +- (void)connectSheetAddToFavorites:(id)sender +{ + [self addToFavoritesHost:[hostField stringValue] socket:[socketField stringValue] user:[userField stringValue] password:[passwordField stringValue] port:[portField stringValue] database:[databaseField stringValue] useSSH:false sshHost:@"" sshUser:@"" sshPassword:@"" sshPort:@""]; +} + +- (void)connectSheetRemoveFromFavorites:(id)sender +{ + NSBeep(); + NSLog(@"Remove from favourites is not yet implemented."); +} + /** * add actual connection to favorites */ -- cgit v1.2.3