aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryFavoriteManager.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-09-07 10:11:35 +0000
committerBibiko <bibiko@eva.mpg.de>2009-09-07 10:11:35 +0000
commit252ac0be49bf409b1eda3726f4f4a47bd6b5b5b6 (patch)
treeb9b3d8a22cfabab07a68534841f7166b0a6a8563 /Source/SPQueryFavoriteManager.h
parent9683c9df3cb0b1128429f42f108d4e03ca4550f1 (diff)
downloadsequelpro-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.h23
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;