aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryFavoriteManager.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-09-01 15:19:01 +0000
committerBibiko <bibiko@eva.mpg.de>2009-09-01 15:19:01 +0000
commitd4c06608e4154e30a9934d1393100c7c84727c64 (patch)
tree460addfc42ebdd9d351d390b051ffe2bb7256507 /Source/SPQueryFavoriteManager.h
parentb5ccc9bd71123ea6a45100c0353c40e42e489f3a (diff)
downloadsequelpro-d4c06608e4154e30a9934d1393100c7c84727c64.tar.gz
sequelpro-d4c06608e4154e30a9934d1393100c7c84727c64.tar.bz2
sequelpro-d4c06608e4154e30a9934d1393100c7c84727c64.zip
• query favorite manager
- first step to allow to manage global favs (stored in the prefs) and connection-based (not yet implemented - will be stored in ApplicationSupport/SequelPro) - fav table is now a grouped table à la Table List - second column in fav table will be used soon ;) - now the sheet has two buttons "Save" and "Cancel" in order to be able to dismiss changes - enabled table view inline editing of query names
Diffstat (limited to 'Source/SPQueryFavoriteManager.h')
-rw-r--r--Source/SPQueryFavoriteManager.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/Source/SPQueryFavoriteManager.h b/Source/SPQueryFavoriteManager.h
index c7ce22e0..820f2a1a 100644
--- a/Source/SPQueryFavoriteManager.h
+++ b/Source/SPQueryFavoriteManager.h
@@ -25,6 +25,14 @@
#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;
@@ -43,13 +51,21 @@
IBOutlet NSTableView *favoritesTableView;
IBOutlet NSTextField *favoriteNameTextField;
IBOutlet NSTextView *favoriteQueryTextView;
- IBOutlet NSArrayController *queryFavoritesController;
+ IBOutlet id removeButton;
+
+ NSMutableArray *favorites;
+ NSMutableArray *favoriteProperties;
+
+ NSMutableString *pendingQueryString;
+
+ NSUInteger selectedRowBeforeChangingSelection;
}
- (id)initWithDelegate:(id)managerDelegate;
// Accessors
-- (NSMutableArray *)queryFavorites;
+- (NSMutableArray *)globalQueryFavorites;
+- (NSMutableArray *)connectionQueryFavorites;
- (id)customQueryInstance;
// IBAction methods