diff options
author | stuconnolly <stuart02@gmail.com> | 2010-03-27 15:34:31 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-03-27 15:34:31 +0000 |
commit | 0b4ee446f7052f964f704d8dfabe53103733325b (patch) | |
tree | f09193b597cf3f9771d77a4694d8dd0b5b0a98ed /Source/SPPreferenceController.h | |
parent | 0559e08ff40bc2496c6af22beb4df99cf112e13b (diff) | |
download | sequelpro-0b4ee446f7052f964f704d8dfabe53103733325b.tar.gz sequelpro-0b4ee446f7052f964f704d8dfabe53103733325b.tar.bz2 sequelpro-0b4ee446f7052f964f704d8dfabe53103733325b.zip |
Add the ability to sort the connection favorites table view in the preferences. Sort options are by name, host or type as well as the option to be sorted in reverse order. This implements issue #490.
Diffstat (limited to 'Source/SPPreferenceController.h')
-rw-r--r-- | Source/SPPreferenceController.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/Source/SPPreferenceController.h b/Source/SPPreferenceController.h index e8e7a50d..029993d9 100644 --- a/Source/SPPreferenceController.h +++ b/Source/SPPreferenceController.h @@ -25,6 +25,8 @@ #import <Cocoa/Cocoa.h> +#import "SPConstants.h" + @class SPKeychain; @interface SPPreferenceController : NSWindowController @@ -57,15 +59,13 @@ IBOutlet NSTextField *favoriteHostTextFieldSSH; IBOutlet id tableCell; - - SPKeychain *keychain; - NSDictionary *currentFavorite; - + IBOutlet NSTextField *editorFontName; IBOutlet NSTextField *globalResultTableFontName; - NSInteger fontChangeTarget; - + SPKeychain *keychain; + NSDictionary *currentFavorite; + NSToolbar *toolbar; NSToolbarItem *generalItem; @@ -80,7 +80,10 @@ NSUserDefaults *prefs; BOOL favoriteNameFieldWasTouched; - NSInteger favoriteType; + NSInteger favoriteType, fontChangeTarget; + + BOOL reverseFavoritesSort; + SPFavoritesSortItem previousSortItem, currentSortItem; } - (void)applyRevisionChanges; @@ -89,10 +92,12 @@ - (IBAction)addFavorite:(id)sender; - (IBAction)removeFavorite:(id)sender; - (IBAction)duplicateFavorite:(id)sender; - - (IBAction)updateDefaultFavorite:(id)sender; +- (IBAction)updateDefaultFavorite:(id)sender; - (IBAction)showCustomQueryFontPanel:(id)sender; - (IBAction)showGlobalResultTableFontPanel:(id)sender; - (IBAction)setDefaultColors:(id)sender; +- (IBAction)sortFavorites:(id)sender; +- (IBAction)reverseFavoritesSortOrder:(id)sender; // Toolbar item IBAction methods - (IBAction)displayGeneralPreferences:(id)sender; |