Fix placement of auxiliary IM window for Core Text
[MacVim.git] / src / MacVim / MMVimController.h
blob982d2d2ae8f623f5f7680c52467a7678c8dde142
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 "MacVim.h"
13 #ifdef MM_ENABLE_PLUGINS
14 #import "PlugInImpl.h"
15 #endif
18 @class MMWindowController;
22 @interface MMVimController : NSObject
23 #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)
24 // 10.6 has turned delegate messages into formal protocols
25 <NSToolbarDelegate, NSOpenSavePanelDelegate>
26 #endif
28 unsigned identifier;
29 BOOL isInitialized;
30 MMWindowController *windowController;
31 id backendProxy;
32 NSMenu *mainMenu;
33 NSMutableArray *popupMenuItems;
34 NSToolbar *toolbar;
35 NSMutableDictionary *toolbarItemDict;
36 int pid;
37 NSString *serverName;
38 NSDictionary *vimState;
39 #ifdef MM_ENABLE_PLUGINS
40 MMPlugInInstanceMediator *instanceMediator;
41 #endif
42 BOOL isPreloading;
43 NSDate *creationDate;
46 - (id)initWithBackend:(id)backend pid:(int)processIdentifier;
47 - (unsigned)vimControllerId;
48 - (id)backendProxy;
49 - (int)pid;
50 - (void)setServerName:(NSString *)name;
51 - (NSString *)serverName;
52 - (MMWindowController *)windowController;
53 - (NSDictionary *)vimState;
54 - (id)objectForVimStateKey:(NSString *)key;
55 - (NSMenu *)mainMenu;
56 - (BOOL)isPreloading;
57 - (void)setIsPreloading:(BOOL)yn;
58 - (NSDate *)creationDate;
59 - (void)cleanup;
60 - (void)dropFiles:(NSArray *)filenames forceOpen:(BOOL)force;
61 - (void)file:(NSString *)filename draggedToTabAtIndex:(NSUInteger)tabIndex;
62 - (void)filesDraggedToTabBar:(NSArray *)filenames;
63 - (void)dropString:(NSString *)string;
64 - (void)passArguments:(NSDictionary *)args;
65 - (void)sendMessage:(int)msgid data:(NSData *)data;
66 - (BOOL)sendMessageNow:(int)msgid data:(NSData *)data
67 timeout:(NSTimeInterval)timeout;
68 - (void)addVimInput:(NSString *)string;
69 - (NSString *)evaluateVimExpression:(NSString *)expr;
70 - (id)evaluateVimExpressionCocoa:(NSString *)expr
71 errorString:(NSString **)errstr;
72 - (void)processInputQueue:(NSArray *)queue;
73 #ifdef MM_ENABLE_PLUGINS
74 - (MMPlugInInstanceMediator *)instanceMediator;
75 #endif
76 @end