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.
11 #import <Cocoa/Cocoa.h>
15 @
class PSMTabBarControl
;
18 @
class MMVimController
;
21 @interface MMWindowController
: NSWindowController
{
22 PSMTabBarControl
*tabBarControl
;
24 NSBox
*tablineSeparator
;
26 MMVimController
*vimController
;
27 BOOL vimTaskSelectedTab
;
29 MMTextStorage
*textStorage
;
30 NSMutableArray
*scrollbars
;
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
;
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
;
61 - (IBAction
)addNewTab
:(id
)sender
;
62 - (IBAction
)toggleToolbar
:(id
)sender
;