1 /* vi:set ts=8 sts=4 sw=4 ft=objc:
3 * VIM - Vi IMproved by Bram Moolenaar
4 * MacVim GUI port by Bjorn Winckler
6 * Do ":help uganda" in Vim to read copying and usage conditions.
7 * Do ":help credits" in Vim to see a list of people who contributed.
8 * See README.txt for an overview of the Vim source code.
11 #import <Cocoa/Cocoa.h>
15 @
class PSMTabBarControl
;
18 @
class MMVimController
;
21 @interface MMVimView
: NSView
{
22 PSMTabBarControl
*tabBarControl
;
24 MMVimController
*vimController
;
25 BOOL vimTaskSelectedTab
;
27 NSMutableArray
*scrollbars
;
30 - (MMVimView
*)initWithFrame
:(NSRect
)frame vimController
:(MMVimController
*)c
;
32 - (MMTextView
*)textView
;
35 - (NSSize
)desiredSize
;
37 - (NSSize
)constrainRows
:(int *)r columns
:(int *)c toSize
:(NSSize
)size
;
38 - (void)setDesiredRows
:(int)r columns
:(int)c
;
40 - (PSMTabBarControl
*)tabBarControl
;
41 - (IBAction
)addNewTab
:(id
)sender
;
42 - (void)updateTabsWithData
:(NSData
*)data
;
43 - (void)selectTabWithIndex
:(int)idx
;
44 - (NSTabViewItem
*)addNewTabViewItem
;
46 - (void)createScrollbarWithIdentifier
:(long)ident type
:(int)type
;
47 - (BOOL
)destroyScrollbarWithIdentifier
:(long)ident
;
48 - (BOOL
)showScrollbarWithIdentifier
:(long)ident state
:(BOOL
)visible
;
49 - (void)setScrollbarThumbValue
:(float)val proportion
:(float)prop
50 identifier
:(long)ident
;
51 - (void)setScrollbarPosition
:(int)pos length
:(int)len identifier
:(long)ident
;
53 - (void)setDefaultColorsBackground
:(NSColor
*)back foreground
:(NSColor
*)fore
;
55 - (void)viewWillStartLiveResize
;
56 - (void)viewDidEndLiveResize
;
57 - (void)setFrameSize
:(NSSize
)size
;
58 - (void)setFrame
:(NSRect
)frame
;