aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-30 14:42:50 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-30 14:42:50 +0000
commit78381153755568f86fef8896156ae8b841ef7179 (patch)
treeb30247dc53581b8d1743709cbb110e67be8c304b /Source/CMTextView.h
parent1927d1cd94f0b728867238ffbceb9ef50b0e20e1 (diff)
downloadsequelpro-78381153755568f86fef8896156ae8b841ef7179.tar.gz
sequelpro-78381153755568f86fef8896156ae8b841ef7179.tar.bz2
sequelpro-78381153755568f86fef8896156ae8b841ef7179.zip
• added observer for all Query Editor colors to avoid initialising colors each time for syntax highlighting which speed it up a bit; now if one changes a color the changes are done in view after a delay of 0.1 s if text buffer < 100k for speed reasons
• fixed: before highlighting the current query ensure that the text storage is in a stable and clean status; otherwise SP crashes for ranges which aren't rendered yet
Diffstat (limited to 'Source/CMTextView.h')
-rw-r--r--Source/CMTextView.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/CMTextView.h b/Source/CMTextView.h
index 1546d1e8..ea0b36cc 100644
--- a/Source/CMTextView.h
+++ b/Source/CMTextView.h
@@ -68,6 +68,13 @@ static inline void NSMutableAttributedStringAddAttributeValueRange (NSMutableAtt
NSColor *queryHiliteColor;
NSColor *queryEditorBackgroundColor;
+ NSColor *commentColor;
+ NSColor *quoteColor;
+ NSColor *keywordColor;
+ NSColor *backtickColor;
+ NSColor *numericColor;
+ NSColor *variableColor;
+ NSColor *otherTextColor;
NSRange queryRange;
BOOL shouldHiliteQuery;
@@ -75,6 +82,13 @@ static inline void NSMutableAttributedStringAddAttributeValueRange (NSMutableAtt
@property(retain) NSColor* queryHiliteColor;
@property(retain) NSColor* queryEditorBackgroundColor;
+@property(retain) NSColor* commentColor;
+@property(retain) NSColor* quoteColor;
+@property(retain) NSColor* keywordColor;
+@property(retain) NSColor* backtickColor;
+@property(retain) NSColor* numericColor;
+@property(retain) NSColor* variableColor;
+@property(retain) NSColor* otherTextColor;
@property(assign) NSRange queryRange;
@property(assign) BOOL shouldHiliteQuery;