Window and view refactoring
[MacVim.git] / src / MacVim / MMWindowController.h
bloba2fd82e7d202c306de6b1b0fe287bfa0ad0ce11b
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 BOOL fullscreenEnabled;
26 NSString *windowAutosaveKey;
27 MMFullscreenWindow *fullscreenWindow;
28 MMWindow *decoratedWindow;
29 NSString *lastSetTitle;
32 - (id)initWithVimController:(MMVimController *)controller;
33 - (MMVimController *)vimController;
34 - (MMVimView *)vimView;
35 - (NSString *)windowAutosaveKey;
36 - (void)setWindowAutosaveKey:(NSString *)key;
37 - (void)cleanup;
38 - (void)openWindow;
39 - (void)updateTabsWithData:(NSData *)data;
40 - (void)selectTabWithIndex:(int)idx;
41 - (void)setTextDimensionsWithRows:(int)rows columns:(int)cols live:(BOOL)live;
42 - (void)setTitle:(NSString *)title;
43 - (void)setToolbar:(NSToolbar *)toolbar;
44 - (void)createScrollbarWithIdentifier:(long)ident type:(int)type;
45 - (BOOL)destroyScrollbarWithIdentifier:(long)ident;
46 - (BOOL)showScrollbarWithIdentifier:(long)ident state:(BOOL)visible;
47 - (void)setScrollbarPosition:(int)pos length:(int)len identifier:(long)ident;
48 - (void)setScrollbarThumbValue:(float)val proportion:(float)prop
49 identifier:(long)ident;
50 - (void)setDefaultColorsBackground:(NSColor *)back foreground:(NSColor *)fore;
51 - (void)setFont:(NSFont *)font;
52 - (void)setWideFont:(NSFont *)font;
53 - (void)processCommandQueueDidFinish;
54 - (void)popupMenu:(NSMenu *)menu atRow:(int)row column:(int)col;
55 - (void)showTabBar:(BOOL)on;
56 - (void)showToolbar:(BOOL)on size:(int)size mode:(int)mode;
57 - (void)setMouseShape:(int)shape;
58 - (void)adjustLinespace:(int)linespace;
59 - (void)liveResizeWillStart;
60 - (void)liveResizeDidEnd;
62 - (void)enterFullscreen;
63 - (void)leaveFullscreen;
64 - (void)setBuffersModified:(BOOL)mod;
66 - (IBAction)addNewTab:(id)sender;
67 - (IBAction)toggleToolbar:(id)sender;
69 @end