diff options
author | mltownsend <mltownsend@gmail.com> | 2010-06-01 22:09:47 +0000 |
---|---|---|
committer | mltownsend <mltownsend@gmail.com> | 2010-06-01 22:09:47 +0000 |
commit | f65e0fe8e01e81ec282347088f4cc8f43e12dc2e (patch) | |
tree | 359138b723c3bb1cd9de98377de14b80d5689073 /Source/SPConnectionController.h | |
parent | 7b8d1a80de102fd0ed4a3f68547d499e66e2595c (diff) | |
download | sequelpro-f65e0fe8e01e81ec282347088f4cc8f43e12dc2e.tar.gz sequelpro-f65e0fe8e01e81ec282347088f4cc8f43e12dc2e.tar.bz2 sequelpro-f65e0fe8e01e81ec282347088f4cc8f43e12dc2e.zip |
Added sorting of the favorites in the connection panel. Will use the same sort order as what is set in preferences as well. Fix for Issue#664
Diffstat (limited to 'Source/SPConnectionController.h')
-rw-r--r-- | Source/SPConnectionController.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/SPConnectionController.h b/Source/SPConnectionController.h index 6a47f9ac..aa45b74d 100644 --- a/Source/SPConnectionController.h +++ b/Source/SPConnectionController.h @@ -29,6 +29,7 @@ #import "SPDatabaseDocument.h" #import "SPKeychain.h" #import "SPSSHTunnel.h" +#import "SPConstants.h" @class BWAnchoredButtonBar; @@ -73,6 +74,7 @@ NSString *sshUser; NSString *sshPassword; NSString *sshPort; +@private NSString *favoritesPBoardType; NSString *connectionKeychainItemName; NSString *connectionKeychainItemAccount; @@ -106,6 +108,10 @@ IBOutlet NSButton *helpButton; IBOutlet NSProgressIndicator *progressIndicator; IBOutlet NSTextField *progressIndicatorText; + + BOOL reverseFavoritesSort; + SPFavoritesSortItem previousSortItem, currentSortItem; + } @property (readwrite, assign) id delegate; @@ -126,6 +132,7 @@ @property (readwrite, retain) NSString *connectionKeychainItemAccount; @property (readwrite, retain) NSString *connectionSSHKeychainItemName; @property (readwrite, retain) NSString *connectionSSHKeychainItemAccount; +@property (readonly, assign) NSString *favoritesPBoardType; - (id)initWithDocument:(SPDatabaseDocument *)theTableDocument; @@ -142,6 +149,8 @@ - (IBAction)editFavorites:(id)sender; - (IBAction)showHelp:(id)sender; - (void)resizeTabViewToConnectionType:(NSUInteger)theType animating:(BOOL)animate; +- (IBAction)sortFavorites:(id)sender; +- (IBAction)reverseSortFavorites:(id)sender; // Connection details interaction - (BOOL)checkHost; |