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 MMWindowController
;
19 @interface MMVimController
: NSObject
<MMFrontendProtocol
>
22 MMWindowController
*windowController
;
24 BOOL inProcessCommandQueue
;
25 NSMutableArray
*sendQueue
;
26 NSMutableArray
*receiveQueue
;
28 NSMutableArray
*popupMenuItems
;
30 NSMutableDictionary
*toolbarItemDict
;
33 NSDictionary
*vimState
;
36 - (id
)initWithBackend
:(id
)backend pid
:(int)processIdentifier
;
39 - (void)setServerName
:(NSString
*)name
;
40 - (NSString
*)serverName
;
41 - (MMWindowController
*)windowController
;
42 - (NSDictionary
*)vimState
;
45 - (void)dropFiles
:(NSArray
*)filenames forceOpen
:(BOOL
)force
;
46 - (void)dropString
:(NSString
*)string
;
47 - (void)odbEdit
:(NSArray
*)filenames server
:(OSType
)theID path
:(NSString
*)path
48 token
:(NSAppleEventDescriptor
*)token
;
49 - (void)sendMessage
:(int)msgid data
:(NSData
*)data
;
50 - (BOOL
)sendMessageNow
:(int)msgid data
:(NSData
*)data
51 timeout
:(NSTimeInterval
)timeout
;
52 - (void)addVimInput
:(NSString
*)string
;
53 - (NSString
*)evaluateVimExpression
:(NSString
*)expr
;