diff options
Diffstat (limited to 'cocoa/ScintillaView.h')
-rw-r--r-- | cocoa/ScintillaView.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/cocoa/ScintillaView.h b/cocoa/ScintillaView.h index b341dd225..41861226f 100644 --- a/cocoa/ScintillaView.h +++ b/cocoa/ScintillaView.h @@ -10,6 +10,11 @@ #import <Cocoa/Cocoa.h> +#import "Platform.h" +#import "Scintilla.h" +#import "SciLexer.h" + +#import "InfoBarCommunicator.h" #import "ScintillaCocoa.h" @class ScintillaView; @@ -21,7 +26,7 @@ @interface InnerView : NSView <NSTextInput> { @private - Scintilla::ScintillaView* mOwner; + ScintillaView* mOwner; NSCursor* mCurrentCursor; NSTrackingRectTag mCurrentTrackingRect; @@ -38,7 +43,7 @@ @property (retain) ScintillaView* owner; @end -@interface ScintillaView : NSView +@interface ScintillaView : NSView <InfoBarCommunicator> { @private // The back end is kind of a controller and model in one. @@ -50,12 +55,20 @@ NSScroller* mHorizontalScroller; NSScroller* mVerticalScroller; + + // Area to display additional controls (e.g. zoom info, caret position, status info). + NSView <InfoBarCommunicator>* mInfoBar; + BOOL mInfoBarAtTop; + int mInitialInfoBarWidth; } - (void) dealloc; - (void) layout; - (void) sendNotification: (NSString*) notificationName; +- (void) notify: (NotificationType) type message: (NSString*) message location: (NSPoint) location + value: (float) value; +- (void) setCallback: (id <InfoBarCommunicator>) callback; // Scroller handling - (BOOL) setVerticalScrollRange: (int) range page: (int) page; @@ -71,9 +84,14 @@ - (void) setString: (NSString*) aString; - (void) setEditable: (BOOL) editable; +// Native call through to the backend. ++ (sptr_t) directCall: (ScintillaView*) sender message: (unsigned int) message wParam: (uptr_t) wParam + lParam: (sptr_t) lParam; + // Back end properties getters and setters. - (void) setGeneralProperty: (int) property parameter: (long) parameter value: (long) value; - (long) getGeneralProperty: (int) property parameter: (long) parameter; +- (long) getGeneralProperty: (int) property parameter: (long) parameter extra: (long) extra; - (void) setColorProperty: (int) property parameter: (long) parameter value: (NSColor*) value; - (void) setColorProperty: (int) property parameter: (long) parameter fromHTML: (NSString*) fromHTML; - (NSColor*) getColorProperty: (int) property parameter: (long) parameter; @@ -84,6 +102,9 @@ - (void) setLexerProperty: (NSString*) name value: (NSString*) value; - (NSString*) getLexerProperty: (NSString*) name; +- (void) setInfoBar: (NSView <InfoBarCommunicator>*) aView top: (BOOL) top; +- (void) setStatusText: (NSString*) text; + @property Scintilla::ScintillaCocoa* backend; @end |