diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-01-30 13:02:14 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-01-30 13:02:14 +0000 |
commit | c8fee6645a732f8a3e3a860a45bd6d66cea5df19 (patch) | |
tree | 6654a1e701a507ae87e3fa0e819c3b2da39311cd /Source/CMTextView.h | |
parent | bbe91a360d7c8a8c5c11a36045c846decf91c6e5 (diff) | |
download | sequelpro-c8fee6645a732f8a3e3a860a45bd6d66cea5df19.tar.gz sequelpro-c8fee6645a732f8a3e3a860a45bd6d66cea5df19.tar.bz2 sequelpro-c8fee6645a732f8a3e3a860a45bd6d66cea5df19.zip |
• current query highlighting is done now in drawRect: (much more faster and thanks to Jakob)
• improved snippet background drawings esp. for multiple lines (commit on behalf of Jakob)
• simplified code for changing and setting background colors and Pref setting for highlight current query by observers (much more faster)
Diffstat (limited to 'Source/CMTextView.h')
-rw-r--r-- | Source/CMTextView.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/CMTextView.h b/Source/CMTextView.h index 96028a5e..1546d1e8 100644 --- a/Source/CMTextView.h +++ b/Source/CMTextView.h @@ -65,8 +65,19 @@ static inline void NSMutableAttributedStringAddAttributeValueRange (NSMutableAtt NSInteger currentSnippetIndex; BOOL snippetWasJustInserted; + + NSColor *queryHiliteColor; + NSColor *queryEditorBackgroundColor; + NSRange queryRange; + BOOL shouldHiliteQuery; + } +@property(retain) NSColor* queryHiliteColor; +@property(retain) NSColor* queryEditorBackgroundColor; +@property(assign) NSRange queryRange; +@property(assign) BOOL shouldHiliteQuery; + - (IBAction)showMySQLHelpForCurrentWord:(id)sender; - (BOOL) isNextCharMarkedBy:(id)attribute withValue:(id)aValue; @@ -92,6 +103,7 @@ static inline void NSMutableAttributedStringAddAttributeValueRange (NSMutableAtt - (NSUInteger) getLineNumberForCharacterIndex:(NSUInteger)anIndex; - (void) autoHelp; - (void) doSyntaxHighlighting; +- (NSBezierPath*)roundedBezierPathAroundRange:(NSRange)aRange; - (void) setConnection:(MCPConnection *)theConnection withVersion:(NSInteger)majorVersion; - (void) doCompletionByUsingSpellChecker:(BOOL)isDictMode fuzzyMode:(BOOL)fuzzySearch; - (NSArray *)suggestionsForSQLCompletionWith:(NSString *)currentWord dictMode:(BOOL)isDictMode browseMode:(BOOL)dbBrowseMode withTableName:(NSString*)aTableName withDbName:(NSString*)aDbName; |