Changed default title
[MacVim/jjgod.git] / MMWindowController.h
blob5227c03273a5fbe6ea59a0ae58ef001ce9080832
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>
13 @class PSMTabBarControl;
14 @class MMTextView;
15 @class MMTextStorage;
16 @class MMVimController;
19 @interface MMWindowController : NSWindowController {
20 IBOutlet PSMTabBarControl *tabBarControl;
21 IBOutlet NSTabView *tabView;
22 IBOutlet NSTextField *statusTextField;
23 IBOutlet NSBox *statusSeparator;
24 IBOutlet NSBox *tablineSeparator;
26 MMVimController *vimController;
27 BOOL vimTaskSelectedTab;
28 NSTimer *statusTimer;
29 MMTextView *textView;
30 MMTextStorage *textStorage;
31 NSMutableArray *scrollbars;
32 BOOL setupDone;
33 BOOL shouldUpdateWindowSize;
34 NSString *windowAutosaveKey;
37 - (id)initWithVimController:(MMVimController *)controller;
38 - (MMVimController *)vimController;
39 - (MMTextView *)textView;
40 - (MMTextStorage *)textStorage;
41 - (NSString *)windowAutosaveKey;
42 - (void)setWindowAutosaveKey:(NSString *)key;
43 - (void)openWindow;
44 - (void)updateTabsWithData:(NSData *)data;
45 - (void)selectTabWithIndex:(int)idx;
46 - (void)setTextDimensionsWithRows:(int)rows columns:(int)cols;
47 - (void)setStatusText:(NSString *)text;
48 - (void)flashStatusText:(NSString *)text;
49 - (void)createScrollbarWithIdentifier:(long)ident type:(int)type;
50 - (void)destroyScrollbarWithIdentifier:(long)ident;
51 - (void)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)processCommandQueueDidFinish;
58 - (void)popupMenu:(NSMenu *)menu atRow:(int)row column:(int)col;
59 - (void)showTabBar:(BOOL)on;
60 - (void)showToolbar:(BOOL)on size:(int)size mode:(int)mode;
62 - (IBAction)addNewTab:(id)sender;
63 - (IBAction)toggleToolbar:(id)sender;
65 @end
67 // vim: set ft=objc: