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>
14 #define MM_USE_EMPTY_WINDOW 1
17 @
class PSMTabBarControl
;
20 @
class MMVimController
;
23 @interface MMWindowController
: NSWindowController
{
24 IBOutlet PSMTabBarControl
*tabBarControl
;
25 IBOutlet NSTabView
*tabView
;
26 IBOutlet NSTextField
*statusTextField
;
27 IBOutlet NSBox
*statusSeparator
;
28 IBOutlet NSBox
*tablineSeparator
;
30 MMVimController
*vimController
;
31 BOOL vimTaskSelectedTab
;
34 MMTextStorage
*textStorage
;
35 NSMutableArray
*scrollbars
;
37 BOOL shouldUpdateWindowSize
;
38 NSString
*windowAutosaveKey
;
41 - (id
)initWithVimController
:(MMVimController
*)controller
;
42 - (MMVimController
*)vimController
;
43 - (MMTextView
*)textView
;
44 - (MMTextStorage
*)textStorage
;
45 - (NSString
*)windowAutosaveKey
;
46 - (void)setWindowAutosaveKey
:(NSString
*)key
;
49 - (void)updateTabsWithData
:(NSData
*)data
;
50 - (void)selectTabWithIndex
:(int)idx
;
51 - (void)setTextDimensionsWithRows
:(int)rows columns
:(int)cols
;
52 - (void)setStatusText
:(NSString
*)text
;
53 - (void)flashStatusText
:(NSString
*)text
;
54 - (void)createScrollbarWithIdentifier
:(long)ident type
:(int)type
;
55 - (void)destroyScrollbarWithIdentifier
:(long)ident
;
56 - (void)showScrollbarWithIdentifier
:(long)ident state
:(BOOL
)visible
;
57 - (void)setScrollbarPosition
:(int)pos length
:(int)len identifier
:(long)ident
;
58 - (void)setScrollbarThumbValue
:(float)val proportion
:(float)prop
59 identifier
:(long)ident
;
60 - (void)setDefaultColorsBackground
:(NSColor
*)back foreground
:(NSColor
*)fore
;
61 - (void)setFont
:(NSFont
*)font
;
62 - (void)processCommandQueueDidFinish
;
63 - (void)popupMenu
:(NSMenu
*)menu atRow
:(int)row column
:(int)col
;
64 - (void)showTabBar
:(BOOL
)on
;
65 - (void)showToolbar
:(BOOL
)on size
:(int)size mode
:(int)mode
;
67 - (IBAction
)addNewTab
:(id
)sender
;
68 - (IBAction
)toggleToolbar
:(id
)sender
;