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 #ifdef MM_ENABLE_PLUGINS
15 #import "PlugInImpl.h"
19 @
class MMWindowController
;
23 @interface MMVimController
: NSObject
26 MMWindowController
*windowController
;
29 NSMutableArray
*popupMenuItems
;
31 NSMutableDictionary
*toolbarItemDict
;
34 NSDictionary
*vimState
;
35 #ifdef MM_ENABLE_PLUGINS
36 MMPlugInInstanceMediator
*instanceMediator
;
44 - (id
)initWithBackend
:(id
)backend pid
:(int)processIdentifier
;
45 - (unsigned)identifier
;
48 - (void)setServerName
:(NSString
*)name
;
49 - (NSString
*)serverName
;
50 - (MMWindowController
*)windowController
;
51 - (NSDictionary
*)vimState
;
52 - (id
)objectForVimStateKey
:(NSString
*)key
;
55 - (void)setIsPreloading
:(BOOL
)yn
;
56 - (NSDate
*)creationDate
;
58 - (void)dropFiles
:(NSArray
*)filenames forceOpen
:(BOOL
)force
;
59 - (void)file
:(NSString
*)filename draggedToTabAtIndex
:(NSUInteger
)tabIndex
;
60 - (void)filesDraggedToTabBar
:(NSArray
*)filenames
;
61 - (void)dropString
:(NSString
*)string
;
62 - (void)passArguments
:(NSDictionary
*)args
;
63 - (void)sendMessage
:(int)msgid data
:(NSData
*)data
;
64 - (BOOL
)sendMessageNow
:(int)msgid data
:(NSData
*)data
65 timeout
:(NSTimeInterval
)timeout
;
66 - (void)addVimInput
:(NSString
*)string
;
67 - (NSString
*)evaluateVimExpression
:(NSString
*)expr
;
68 - (id
)evaluateVimExpressionCocoa
:(NSString
*)expr errorString
:(NSString
**)errstr
;
69 - (void)processInputQueue
:(NSArray
*)queue
;
70 #ifdef MM_ENABLE_PLUGINS
71 - (MMPlugInInstanceMediator
*)instanceMediator
;