Use 'behave mswin' instead of setting 'keymodel' and 'selectmode'.
[MacVim/jjgod.git] / MMWindowController.h
blob7ec973be9d69196c2c9127417f63ceaa3f997fd7
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 MMTextStorage;
18 @class MMVimController;
21 @interface MMWindowController : NSWindowController {
22 PSMTabBarControl *tabBarControl;
23 NSTabView *tabView;
24 NSBox *tablineSeparator;
26 MMVimController *vimController;
27 BOOL vimTaskSelectedTab;
28 MMTextView *textView;
29 MMTextStorage *textStorage;
30 NSMutableArray *scrollbars;
31 BOOL setupDone;
32 BOOL shouldUpdateWindowSize;
33 NSString *windowAutosaveKey;
36 - (id)initWithVimController:(MMVimController *)controller;
37 - (MMVimController *)vimController;
38 - (MMTextView *)textView;
39 - (MMTextStorage *)textStorage;
40 - (NSString *)windowAutosaveKey;
41 - (void)setWindowAutosaveKey:(NSString *)key;
42 - (void)cleanup;
43 - (void)openWindow;
44 - (void)updateTabsWithData:(NSData *)data;
45 - (void)selectTabWithIndex:(int)idx;
46 - (void)setTextDimensionsWithRows:(int)rows columns:(int)cols;
47 - (void)createScrollbarWithIdentifier:(long)ident type:(int)type;
48 - (void)destroyScrollbarWithIdentifier:(long)ident;
49 - (void)showScrollbarWithIdentifier:(long)ident state:(BOOL)visible;
50 - (void)setScrollbarPosition:(int)pos length:(int)len identifier:(long)ident;
51 - (void)setScrollbarThumbValue:(float)val proportion:(float)prop
52 identifier:(long)ident;
53 - (void)setDefaultColorsBackground:(NSColor *)back foreground:(NSColor *)fore;
54 - (void)setFont:(NSFont *)font;
55 - (void)processCommandQueueDidFinish;
56 - (void)popupMenu:(NSMenu *)menu atRow:(int)row column:(int)col;
57 - (void)showTabBar:(BOOL)on;
58 - (void)showToolbar:(BOOL)on size:(int)size mode:(int)mode;
59 - (void)setMouseShape:(int)shape;
61 - (IBAction)addNewTab:(id)sender;
62 - (IBAction)toggleToolbar:(id)sender;
64 @end
66 // vim: set ft=objc: