From d5a558ca1a52e77dd4fe6e45c9e5ad9026870d86 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 24 Jul 2010 11:31:15 +1000 Subject: Updates from Scintilla-Cocoa project. Updated case mapping, modifier key for zoom, redo, mouse wheel, search and highlight. --- cocoa/ScintillaView.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'cocoa/ScintillaView.h') diff --git a/cocoa/ScintillaView.h b/cocoa/ScintillaView.h index 73903c369..0d66d36a4 100644 --- a/cocoa/ScintillaView.h +++ b/cocoa/ScintillaView.h @@ -53,6 +53,9 @@ extern NSString *SCIUpdateUINotification; // It uses the content view for display. Scintilla::ScintillaCocoa* mBackend; + // The object (eg NSDocument) that controls the ScintillaView. + NSObject* mOwner; + // This is the actual content to which the backend renders itself. InnerView* mContent; @@ -92,6 +95,11 @@ extern NSString *SCIUpdateUINotification; - (NSString*) selectedString; +- (void)setFontName: (NSString*) font + size: (int) size + bold: (BOOL) bold + italic: (BOOL) italic; + // Native call through to the backend. + (sptr_t) directCall: (ScintillaView*) sender message: (unsigned int) message wParam: (uptr_t) wParam lParam: (sptr_t) lParam; @@ -115,6 +123,12 @@ extern NSString *SCIUpdateUINotification; - (void) setInfoBar: (NSView *) aView top: (BOOL) top; - (void) setStatusText: (NSString*) text; -@property Scintilla::ScintillaCocoa* backend; +- (void) findAndHighlightText: (NSString*) searchText + matchCase: (BOOL) matchCase + wholeWord: (BOOL) wholeWord + scrollTo: (BOOL) scrollTo + wrap: (BOOL) wrap; +@property Scintilla::ScintillaCocoa* backend; +@property (retain) NSObject* owner; @end -- cgit v1.2.3