- Added fontSizeUp/fontSizeDown actions
[MacVim/jjgod.git] / MMWindowController.h
blobb472f8438dcff569db2ce257cc0c910da9735c88
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;
60 - (void)adjustLinespace:(int)linespace;
61 - (void)liveResizeDidEnd;
63 - (IBAction)addNewTab:(id)sender;
64 - (IBAction)toggleToolbar:(id)sender;
66 @end
68 // vim: set ft=objc: