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.
16 @
class MMFullscreenWindow
;
17 @
class MMVimController
;
20 @interface MMWindowController
: NSWindowController
21 #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)
22 // 10.6 has turned delegate messages into formal protocols
26 MMVimController
*vimController
;
29 BOOL shouldResizeVimView
;
30 int updateToolbarFlag
;
32 BOOL fullscreenEnabled
;
33 NSString
*windowAutosaveKey
;
34 MMFullscreenWindow
*fullscreenWindow
;
35 MMWindow
*decoratedWindow
;
36 NSString
*lastSetTitle
;
39 - (id
)initWithVimController
:(MMVimController
*)controller
;
40 - (MMVimController
*)vimController
;
41 - (MMVimView
*)vimView
;
42 - (NSString
*)windowAutosaveKey
;
43 - (void)setWindowAutosaveKey
:(NSString
*)key
;
47 - (void)updateTabsWithData
:(NSData
*)data
;
48 - (void)selectTabWithIndex
:(int)idx
;
49 - (void)setTextDimensionsWithRows
:(int)rows columns
:(int)cols isLive
:(BOOL
)live
51 - (void)setTitle
:(NSString
*)title
;
52 - (void)setDocumentFilename
:(NSString
*)filename
;
53 - (void)setToolbar
:(NSToolbar
*)toolbar
;
54 - (void)createScrollbarWithIdentifier
:(int32_t)ident type
:(int)type
;
55 - (BOOL
)destroyScrollbarWithIdentifier
:(int32_t)ident
;
56 - (BOOL
)showScrollbarWithIdentifier
:(int32_t)ident state
:(BOOL
)visible
;
57 - (void)setScrollbarPosition
:(int)pos length
:(int)len identifier
:(int32_t)ident
;
58 - (void)setScrollbarThumbValue
:(float)val proportion
:(float)prop
59 identifier
:(int32_t)ident
;
60 - (void)setDefaultColorsBackground
:(NSColor
*)back foreground
:(NSColor
*)fore
;
61 - (void)setFont
:(NSFont
*)font
;
62 - (void)setWideFont
:(NSFont
*)font
;
63 - (void)processInputQueueDidFinish
;
64 - (void)showTabBar
:(BOOL
)on
;
65 - (void)showToolbar
:(BOOL
)on size
:(int)size mode
:(int)mode
;
66 - (void)setMouseShape
:(int)shape
;
67 - (void)adjustLinespace
:(int)linespace
;
68 - (void)liveResizeWillStart
;
69 - (void)liveResizeDidEnd
;
71 - (void)enterFullscreen
:(int)fuoptions backgroundColor
:(NSColor
*)back
;
72 - (void)leaveFullscreen
;
73 - (void)setFullscreenBackgroundColor
:(NSColor
*)back
;
75 - (void)setBuffersModified
:(BOOL
)mod
;
77 - (IBAction
)addNewTab
:(id
)sender
;
78 - (IBAction
)toggleToolbar
:(id
)sender
;
79 - (IBAction
)performClose
:(id
)sender
;
80 - (IBAction
)findNext
:(id
)sender
;
81 - (IBAction
)findPrevious
:(id
)sender
;
82 - (IBAction
)vimMenuItemAction
:(id
)sender
;
83 - (IBAction
)vimToolbarItemAction
:(id
)sender
;
84 - (IBAction
)fontSizeUp
:(id
)sender
;
85 - (IBAction
)fontSizeDown
:(id
)sender
;
86 - (IBAction
)findAndReplace
:(id
)sender
;