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 // If sendMessage: fails, store the message and resend after a delay.
16 #define MM_RESEND_LAST_FAILURE 0
19 @
class MMWindowController
;
23 @interface MMVimController
: NSObject
<MMFrontendProtocol
>
26 MMWindowController
*windowController
;
28 BOOL inProcessCommandQueue
;
29 NSMutableArray
*sendQueue
;
30 NSMutableArray
*mainMenuItems
;
31 NSMutableArray
*popupMenuItems
;
32 BOOL shouldUpdateMainMenu
;
34 NSMutableDictionary
*toolbarItemDict
;
37 #ifdef MM_RESEND_LAST_FAILURE
42 NSMenu
*lastMenuSearched
;
45 - (id
)initWithBackend
:(id
)backend pid
:(int)processIdentifier
;
48 - (void)setServerName
:(NSString
*)name
;
49 - (NSString
*)serverName
;
50 - (MMWindowController
*)windowController
;
52 - (void)dropFiles
:(NSArray
*)filenames forceOpen
:(BOOL
)force
;
53 - (void)dropString
:(NSString
*)string
;
54 - (void)odbEdit
:(NSArray
*)filenames server
:(OSType
)theID path
:(NSString
*)path
55 token
:(NSAppleEventDescriptor
*)token
;
56 - (void)sendMessage
:(int)msgid data
:(NSData
*)data
;
57 - (BOOL
)sendMessageNow
:(int)msgid data
:(NSData
*)data
58 timeout
:(NSTimeInterval
)timeout
;
59 - (void)addVimInput
:(NSString
*)string
;
60 - (void)updateMainMenu
;