Cleanup
[MacVim.git] / src / MacVim / MMVimController.h
bloba0470492245fe9f9511e03bd9d640b61a02809f8
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.
9 */
11 #import <Cocoa/Cocoa.h>
12 #import "MacVim.h"
14 #ifdef MM_ENABLE_PLUGINS
15 #import "PlugInImpl.h"
16 #endif
19 @class MMWindowController;
23 @interface MMVimController : NSObject
25 BOOL isInitialized;
26 MMWindowController *windowController;
27 id backendProxy;
28 BOOL inProcessCommandQueue;
29 NSMutableArray *sendQueue;
30 NSMutableArray *receiveQueue;
31 NSMenu *mainMenu;
32 NSMutableArray *popupMenuItems;
33 NSToolbar *toolbar;
34 NSMutableDictionary *toolbarItemDict;
35 int pid;
36 NSString *serverName;
37 NSDictionary *vimState;
38 #ifdef MM_ENABLE_PLUGINS
39 MMPlugInInstanceMediator *instanceMediator;
40 #endif
41 BOOL isPreloading;
42 NSDate *creationDate;
44 unsigned identifier;
47 - (id)initWithBackend:(id)backend pid:(int)processIdentifier;
48 - (unsigned)identifier;
49 - (id)backendProxy;
50 - (int)pid;
51 - (void)setServerName:(NSString *)name;
52 - (NSString *)serverName;
53 - (MMWindowController *)windowController;
54 - (NSDictionary *)vimState;
55 - (id)objectForVimStateKey:(NSString *)key;
56 - (NSMenu *)mainMenu;
57 - (BOOL)isPreloading;
58 - (void)setIsPreloading:(BOOL)yn;
59 - (NSDate *)creationDate;
60 - (void)cleanup;
61 - (void)dropFiles:(NSArray *)filenames forceOpen:(BOOL)force;
62 - (void)file:(NSString *)filename draggedToTabAtIndex:(NSUInteger)tabIndex;
63 - (void)filesDraggedToTabBar:(NSArray *)filenames;
64 - (void)dropString:(NSString *)string;
65 - (void)passArguments:(NSDictionary *)args;
66 - (void)sendMessage:(int)msgid data:(NSData *)data;
67 - (BOOL)sendMessageNow:(int)msgid data:(NSData *)data
68 timeout:(NSTimeInterval)timeout;
69 - (void)addVimInput:(NSString *)string;
70 - (NSString *)evaluateVimExpression:(NSString *)expr;
71 - (id)evaluateVimExpressionCocoa:(NSString *)expr errorString:(NSString **)errstr;
72 - (void)processInputQueue:(NSArray *)queue;
73 #ifdef MM_ENABLE_PLUGINS
74 - (MMPlugInInstanceMediator *)instanceMediator;
75 #endif
76 @end