Deprecate inProcessCommandQueue related code
[MacVim.git] / src / MacVim / MMWindowController.h
blob62f7aa6906041dc03ea1a528b2576baf06881a79
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 MMWindow;
16 @class MMFullscreenWindow;
17 @class MMVimController;
18 @class MMVimView;
20 @interface MMWindowController : NSWindowController {
21 MMVimController *vimController;
22 MMVimView *vimView;
23 BOOL setupDone;
24 BOOL shouldResizeVimView;
25 int updateToolbarFlag;
26 BOOL keepOnScreen;
27 BOOL fullscreenEnabled;
28 NSString *windowAutosaveKey;
29 MMFullscreenWindow *fullscreenWindow;
30 MMWindow *decoratedWindow;
31 NSString *lastSetTitle;
34 - (id)initWithVimController:(MMVimController *)controller;
35 - (MMVimController *)vimController;
36 - (MMVimView *)vimView;
37 - (NSString *)windowAutosaveKey;
38 - (void)setWindowAutosaveKey:(NSString *)key;
39 - (void)cleanup;
40 - (void)openWindow;
41 - (void)showWindow;
42 - (void)updateTabsWithData:(NSData *)data;
43 - (void)selectTabWithIndex:(int)idx;
44 - (void)setTextDimensionsWithRows:(int)rows columns:(int)cols isLive:(BOOL)live
45 isReply:(BOOL)reply;
46 - (void)setTitle:(NSString *)title;
47 - (void)setDocumentFilename:(NSString *)filename;
48 - (void)setToolbar:(NSToolbar *)toolbar;
49 - (void)createScrollbarWithIdentifier:(long)ident type:(int)type;
50 - (BOOL)destroyScrollbarWithIdentifier:(long)ident;
51 - (BOOL)showScrollbarWithIdentifier:(long)ident state:(BOOL)visible;
52 - (void)setScrollbarPosition:(int)pos length:(int)len identifier:(long)ident;
53 - (void)setScrollbarThumbValue:(float)val proportion:(float)prop
54 identifier:(long)ident;
55 - (void)setDefaultColorsBackground:(NSColor *)back foreground:(NSColor *)fore;
56 - (void)setFont:(NSFont *)font;
57 - (void)setWideFont:(NSFont *)font;
58 - (void)processInputQueueDidFinish;
59 - (void)showTabBar:(BOOL)on;
60 - (void)showToolbar:(BOOL)on size:(int)size mode:(int)mode;
61 - (void)setMouseShape:(int)shape;
62 - (void)adjustLinespace:(int)linespace;
63 - (void)liveResizeWillStart;
64 - (void)liveResizeDidEnd;
66 - (void)enterFullscreen:(int)fuoptions backgroundColor:(NSColor *)back;
67 - (void)leaveFullscreen;
68 - (void)setFullscreenBackgroundColor:(NSColor *)back;
70 - (void)setBuffersModified:(BOOL)mod;
72 - (IBAction)addNewTab:(id)sender;
73 - (IBAction)toggleToolbar:(id)sender;
74 - (IBAction)performClose:(id)sender;
75 - (IBAction)findNext:(id)sender;
76 - (IBAction)findPrevious:(id)sender;
77 - (IBAction)vimMenuItemAction:(id)sender;
78 - (IBAction)vimToolbarItemAction:(id)sender;
79 - (IBAction)fontSizeUp:(id)sender;
80 - (IBAction)fontSizeDown:(id)sender;
81 - (IBAction)findAndReplace:(id)sender;
83 @end