diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-09-07 10:11:35 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-09-07 10:11:35 +0000 |
commit | 252ac0be49bf409b1eda3726f4f4a47bd6b5b5b6 (patch) | |
tree | b9b3d8a22cfabab07a68534841f7166b0a6a8563 /Source/SPQueryFavoriteManager.h | |
parent | 9683c9df3cb0b1128429f42f108d4e03ca4550f1 (diff) | |
download | sequelpro-252ac0be49bf409b1eda3726f4f4a47bd6b5b5b6.tar.gz sequelpro-252ac0be49bf409b1eda3726f4f4a47bd6b5b5b6.tar.bz2 sequelpro-252ac0be49bf409b1eda3726f4f4a47bd6b5b5b6.zip |
• updated SPQueryFavoriteManager to mange document-based and global query favorites
• disabled "Select Active Query" in CMTextView if shown in the favorite manager
• code cleaning and simplifications
Diffstat (limited to 'Source/SPQueryFavoriteManager.h')
-rw-r--r-- | Source/SPQueryFavoriteManager.h | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/Source/SPQueryFavoriteManager.h b/Source/SPQueryFavoriteManager.h index 28a625d5..4268ffe0 100644 --- a/Source/SPQueryFavoriteManager.h +++ b/Source/SPQueryFavoriteManager.h @@ -25,14 +25,6 @@ #import <Cocoa/Cocoa.h> -enum sp_favorite_types -{ - SP_FAVORITETYPE_HEADER = 0, - SP_FAVORITETYPE_GLOBAL = 1, - SP_FAVORITETYPE_CONNECTION = 2, -}; - - @interface NSObject (SPQueryFavoriteManagerDelegate) - (void)queryFavoritesHaveBeenUpdated:(id)manager; @@ -47,33 +39,32 @@ enum sp_favorite_types BOOL delegateRespondsToFavoriteUpdates; + NSDocument *tableDocumentInstance; + NSURL *delegatesFileURL; IBOutlet NSPopUpButton *encodingPopUp; IBOutlet NSTableView *favoritesTableView; IBOutlet NSTextField *favoriteNameTextField; IBOutlet NSTextView *favoriteQueryTextView; IBOutlet id removeButton; + IBOutlet NSArrayController *favoritesArrayController; + NSMutableArray *favorites; - NSMutableArray *favoriteProperties; - - NSMutableString *pendingQueryString; - - NSUInteger selectedRowBeforeChangingSelection; + BOOL isTableCellEditing; } - (id)initWithDelegate:(id)managerDelegate; // Accessors -- (NSMutableArray *)globalQueryFavorites; -- (NSMutableArray *)connectionQueryFavorites; +- (NSMutableArray *)queryFavoritesForFileURL:(NSURL *)fileURL; - (id)customQueryInstance; // IBAction methods - (IBAction)addQueryFavorite:(id)sender; - (IBAction)removeQueryFavorite:(id)sender; - (IBAction)removeAllQueryFavorites:(id)sender; -- (IBAction)copyQueryFavorite:(id)sender; +- (IBAction)duplicateQueryFavorite:(id)sender; - (IBAction)saveFavoriteToFile:(id)sender; - (IBAction)exportFavorites:(id)sender; - (IBAction)importFavoritesByAdding:(id)sender; |