diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPQueryFavoriteManager.h | 1 | ||||
-rw-r--r-- | Source/SPQueryFavoriteManager.m | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Source/SPQueryFavoriteManager.h b/Source/SPQueryFavoriteManager.h index 9e207356..05e822dd 100644 --- a/Source/SPQueryFavoriteManager.h +++ b/Source/SPQueryFavoriteManager.h @@ -70,5 +70,6 @@ - (IBAction)importFavoritesByAdding:(id)sender; - (IBAction)importFavoritesByReplacing:(id)sender; - (IBAction)closeQueryManagerSheet:(id)sender; +- (IBAction)insertPlaceholder:(id)sender; @end diff --git a/Source/SPQueryFavoriteManager.m b/Source/SPQueryFavoriteManager.m index 324a4850..8014c8c5 100644 --- a/Source/SPQueryFavoriteManager.m +++ b/Source/SPQueryFavoriteManager.m @@ -340,6 +340,15 @@ } /** + * Insert placeholder - the placeholder string is stored as tooltip + */ +- (IBAction)insertPlaceholder:(id)sender +{ + NSString *placeholder = [[[sender selectedItem] toolTip] substringToIndex:[[[sender selectedItem] toolTip] rangeOfString:@" – "].location]; + [favoriteQueryTextView insertText:placeholder]; +} + +/** * Closes the query favorite manager */ - (IBAction)closeQueryManagerSheet:(id)sender |