diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-01-05 11:46:41 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-01-05 11:46:41 +0000 |
commit | de9bca67824b192ede852ae74eab175dacb2f686 (patch) | |
tree | 1ee55d891b84caf810807945afc01a72bf20fc11 /Source/CustomQuery.h | |
parent | c4815ab7eed05ceb82470e524e5066d1c22c8f3b (diff) | |
download | sequelpro-de9bca67824b192ede852ae74eab175dacb2f686.tar.gz sequelpro-de9bca67824b192ede852ae74eab175dacb2f686.tar.bz2 sequelpro-de9bca67824b192ede852ae74eab175dacb2f686.zip |
• added Save/Copy History List to "Query History"'s popup menu
• moved "Clear History" from gear menu to "Query History"'s popup menu and added a confirmation sheet to it
• "Clear History" now distinguishes between Untitled and SPF doc
- if Untitled: clear global history list stored in the Prefs
- if SPF doc: clear the document-based history list only
Diffstat (limited to 'Source/CustomQuery.h')
-rw-r--r-- | Source/CustomQuery.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Source/CustomQuery.h b/Source/CustomQuery.h index 121b4853..960859d0 100644 --- a/Source/CustomQuery.h +++ b/Source/CustomQuery.h @@ -45,6 +45,9 @@ #define SP_SAVE_ALL_FAVORTITE_MENUITEM_TAG 100001 #define SP_SAVE_SELECTION_FAVORTITE_MENUITEM_TAG 100000 #define SP_FAVORITE_HEADER_MENUITEM_TAG 200000 +#define SP_HISTORY_COPY_MENUITEM_TAG 300000 +#define SP_HISTORY_SAVE_MENUITEM_TAG 300001 +#define SP_HISTORY_CLEAR_MENUITEM_TAG 300002 @class SPQueryFavoriteManager; @@ -69,7 +72,11 @@ IBOutlet NSMenuItem *queryHistorySearchMenuItem; IBOutlet id queryHistorySearchFieldView; IBOutlet NSSearchField *queryHistorySearchField; - + IBOutlet NSMenuItem *clearHistoryMenuItem; + IBOutlet NSMenuItem *saveHistoryMenuItem; + IBOutlet NSMenuItem *copyHistoryMenuItem; + IBOutlet NSPopUpButton *encodingPopUp; + IBOutlet CMTextView *textView; IBOutlet CMCopyTable *customQueryView; IBOutlet NSScrollView *customQueryScrollView; @@ -83,7 +90,6 @@ IBOutlet NSMenuItem *runSelectionMenuItem; IBOutlet NSMenuItem *runAllMenuItem; - IBOutlet NSMenuItem *clearHistoryMenuItem; IBOutlet NSMenuItem *shiftLeftMenuItem; IBOutlet NSMenuItem *shiftRightMenuItem; IBOutlet NSMenuItem *completionListMenuItem; @@ -161,6 +167,9 @@ - (IBAction)helpSelectHelpTargetWeb:(id)sender; - (IBAction)filterQueryFavorites:(id)sender; - (IBAction)filterQueryHistory:(id)sender; +- (IBAction)saveQueryHistory:(id)sender; +- (IBAction)copyQueryHistory:(id)sender; +- (IBAction)clearQueryHistory:(id)sender; // Query actions - (void)performQueries:(NSArray *)queries withCallback:(SEL)customQueryCallbackMethod; @@ -195,6 +204,7 @@ - (void)commentOutCurrentQueryTakingSelection:(BOOL)takeSelection; - (NSString *)usedQuery; - (NSString *)argumentForRow:(NSUInteger)rowIndex ofTable:(NSString *)tableForColumn andDatabase:(NSString *)database; -- (unsigned int)numberOfQueries; +- (NSUInteger)numberOfQueries; +- (NSString *)buildHistoryString; @end |