No CF calls between fork() and exec()
[MacVim.git] / src / MacVim / MMVimView.h
blob676e5ab815890b449bf98b9c167557abc205bd43
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.
9 */
11 #import <Cocoa/Cocoa.h>
15 @class PSMTabBarControl;
16 @class MMTextView;
17 @class MMScroller;
18 @class MMVimController;
21 @interface MMVimView : NSView {
22 PSMTabBarControl *tabBarControl;
23 NSTabView *tabView;
24 MMVimController *vimController;
25 BOOL vimTaskSelectedTab;
26 MMTextView *textView;
27 NSMutableArray *scrollbars;
30 - (MMVimView *)initWithFrame:(NSRect)frame vimController:(MMVimController *)c;
32 - (MMTextView *)textView;
33 - (NSMutableArray *)scrollbars;
34 - (void)cleanup;
36 - (NSSize)desiredSize;
37 - (NSSize)minSize;
38 - (NSSize)constrainRows:(int *)r columns:(int *)c toSize:(NSSize)size;
39 - (void)setDesiredRows:(int)r columns:(int)c;
41 - (PSMTabBarControl *)tabBarControl;
42 - (IBAction)addNewTab:(id)sender;
43 - (void)updateTabsWithData:(NSData *)data;
44 - (void)selectTabWithIndex:(int)idx;
45 - (NSTabViewItem *)addNewTabViewItem;
47 - (void)createScrollbarWithIdentifier:(long)ident type:(int)type;
48 - (BOOL)destroyScrollbarWithIdentifier:(long)ident;
49 - (BOOL)showScrollbarWithIdentifier:(long)ident state:(BOOL)visible;
50 - (void)setScrollbarThumbValue:(float)val proportion:(float)prop
51 identifier:(long)ident;
52 - (void)setScrollbarPosition:(int)pos length:(int)len identifier:(long)ident;
54 - (void)setDefaultColorsBackground:(NSColor *)back foreground:(NSColor *)fore;
56 - (void)viewWillStartLiveResize;
57 - (void)viewDidEndLiveResize;
58 - (void)setFrameSize:(NSSize)size;
59 - (void)setFrame:(NSRect)frame;
61 @end