Escape more chars (' ', '\t', '\\', '%', '#', '|' '"') in "drop files"
[MacVim/jjgod.git] / MMWindowController.h
blob9977bbe1f478b7fd5891517290c840ba1cd857da
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 MMFullscreenWindow;
16 @class MMVimController;
17 @class MMTextStorage;
18 @class MMTextView;
19 @class MMVimView;
21 @interface MMWindowController : NSWindowController {
22 NSBox *tablineSeparator;
24 MMVimController *vimController;
25 MMVimView *vimView;
26 BOOL setupDone;
27 BOOL shouldUpdateWindowSize;
28 NSString *windowAutosaveKey;
29 MMFullscreenWindow *fullscreenWindow;
32 - (id)initWithVimController:(MMVimController *)controller;
33 - (MMVimController *)vimController;
34 - (MMTextView *)textView;
35 - (MMTextStorage *)textStorage;
36 - (MMVimView *)vimView;
37 - (NSString *)windowAutosaveKey;
38 - (void)setWindowAutosaveKey:(NSString *)key;
39 - (void)cleanup;
40 - (void)openWindow;
41 - (void)updateTabsWithData:(NSData *)data;
42 - (void)selectTabWithIndex:(int)idx;
43 - (void)setTextDimensionsWithRows:(int)rows columns:(int)cols;
44 - (void)createScrollbarWithIdentifier:(long)ident type:(int)type;
45 - (void)destroyScrollbarWithIdentifier:(long)ident;
46 - (void)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)processCommandQueueDidFinish;
53 - (void)popupMenu:(NSMenu *)menu atRow:(int)row column:(int)col;
54 - (void)showTabBar:(BOOL)on;
55 - (void)showToolbar:(BOOL)on size:(int)size mode:(int)mode;
56 - (void)setMouseShape:(int)shape;
57 - (void)adjustLinespace:(int)linespace;
58 - (void)liveResizeDidEnd;
59 - (void)placeViews;
61 - (void)enterFullscreen;
62 - (void)leaveFullscreen;
64 - (IBAction)addNewTab:(id)sender;
65 - (IBAction)toggleToolbar:(id)sender;
67 @end
69 // vim: set ft=objc: