aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-04-24 15:20:54 +0000
committerBibiko <bibiko@eva.mpg.de>2009-04-24 15:20:54 +0000
commitbd58198b9b166f1abfa3bbbc84acd46676b68d89 (patch)
tree54d8af0222777c9052d7e32c19c625ac8bf8794e /Source/CMTextView.m
parent180579d026ffae575a25e698c279c465dbd1bd6b (diff)
downloadsequelpro-bd58198b9b166f1abfa3bbbc84acd46676b68d89.tar.gz
sequelpro-bd58198b9b166f1abfa3bbbc84acd46676b68d89.tar.bz2
sequelpro-bd58198b9b166f1abfa3bbbc84acd46676b68d89.zip
• added a prototype to support an Help view for the current word in the Custom Query text view
- work in progress!
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r--Source/CMTextView.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m
index dcb5f2b6..4ccbe16e 100644
--- a/Source/CMTextView.m
+++ b/Source/CMTextView.m
@@ -22,6 +22,7 @@
// Or mail to <lorenz@textor.ch>
#import "CMTextView.h"
+#import "CustomQuery.h"
#import "TableDocument.h"
#import "SPStringAdditions.h"
#import "SPTextViewAdditions.h"
@@ -265,6 +266,13 @@ YY_BUFFER_STATE yy_scan_string (const char *);
[self copyAsRTF];
return;
}
+ if([charactersIgnMod isEqualToString:@"h"]) // ^C copy as RTF
+ if(curFlags==(NSControlKeyMask))
+ {
+
+ [[[[self window] delegate] valueForKeyPath:@"customQueryInstance"] getHelpForCurrentWord:self];
+ return;
+ }
// Only process for character autopairing if autopairing is enabled and a single character is being added.
if (autopairEnabled && characters && [characters length] == 1) {
@@ -1692,6 +1700,7 @@ SYNTAX HIGHLIGHTING!
[scrollView setHasHorizontalRuler:NO];
[scrollView setHasVerticalRuler:YES];
[scrollView setRulersVisible:YES];
+
}
- (void)textStorageDidProcessEditing:(NSNotification *)notification