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>
16 @
class MMFullscreenWindow
;
17 @
class MMVimController
;
20 @interface MMWindowController
: NSWindowController
{
21 MMVimController
*vimController
;
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
;
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)setDocumentFilename
:(NSString
*)filename
;
44 - (void)setToolbar
:(NSToolbar
*)toolbar
;
45 - (void)createScrollbarWithIdentifier
:(long)ident type
:(int)type
;
46 - (BOOL
)destroyScrollbarWithIdentifier
:(long)ident
;
47 - (BOOL
)showScrollbarWithIdentifier
:(long)ident state
:(BOOL
)visible
;
48 - (void)setScrollbarPosition
:(int)pos length
:(int)len identifier
:(long)ident
;
49 - (void)setScrollbarThumbValue
:(float)val proportion
:(float)prop
50 identifier
:(long)ident
;
51 - (void)setDefaultColorsBackground
:(NSColor
*)back foreground
:(NSColor
*)fore
;
52 - (void)setFont
:(NSFont
*)font
;
53 - (void)setWideFont
:(NSFont
*)font
;
54 - (void)processCommandQueueDidFinish
;
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
:(int)fuoptions backgroundColor
:(NSColor
*)back
;
63 - (void)leaveFullscreen
;
64 - (void)setBuffersModified
:(BOOL
)mod
;
66 - (IBAction
)addNewTab
:(id
)sender
;
67 - (IBAction
)toggleToolbar
:(id
)sender
;
68 - (IBAction
)performClose
:(id
)sender
;
69 - (IBAction
)findNext
:(id
)sender
;
70 - (IBAction
)findPrevious
:(id
)sender
;
71 - (IBAction
)vimMenuItemAction
:(id
)sender
;
72 - (IBAction
)vimToolbarItemAction
:(id
)sender
;
73 - (IBAction
)fontSizeUp
:(id
)sender
;
74 - (IBAction
)fontSizeDown
:(id
)sender
;