Permalink
Newer
Older
100644 69 lines (56 sloc) 2.05 KB
Jul 25, 2007
1
/* vi:set ts=8 sts=4 sw=4 ft=objc:
2
*
3
* VIM - Vi IMproved by Bram Moolenaar
4
* MacVim GUI port by Bjorn Winckler
5
*
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
*/
10
11
#import <Cocoa/Cocoa.h>
Jul 25, 2007
13
14
16
@class MMVimController;
Jul 25, 2007
17
18
19
@interface MMAppController : NSObject <MMAppProtocol> {
20
NSConnection *connection;
21
NSMutableArray *vimControllers;
22
NSString *openSelectionString;
23
ATSFontContainerRef fontContainerRef;
24
NSMutableDictionary *pidArguments;
26
NSMenuItem *appMenuItemTemplate;
27
NSMenuItem *recentFilesMenuItem;
28
NSMutableArray *cachedVimControllers;
29
int preloadPid;
30
BOOL shouldActivateWhenNextWindowOpens;
31
int numChildProcesses;
33
#if (MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_4)
34
FSEventStreamRef fsEventStream;
35
#endif
36
37
#ifdef MM_ENABLE_PLUGINS
38
NSMenuItem *plugInMenuItem;
39
#endif
Jul 25, 2007
40
}
41
42
+ (MMAppController *)sharedInstance;
43
- (NSMenu *)defaultMainMenu;
44
- (NSMenuItem *)appMenuItemTemplate;
45
- (MMVimController *)keyVimController;
Jul 25, 2007
46
- (void)removeVimController:(id)controller;
47
- (void)windowControllerWillOpen:(MMWindowController *)windowController;
48
- (void)setMainMenu:(NSMenu *)mainMenu;
49
- (NSArray *)filterOpenFiles:(NSArray *)filenames;
50
- (BOOL)openFiles:(NSArray *)filenames withArguments:(NSDictionary *)args;
51
53
#ifdef MM_ENABLE_PLUGINS
54
- (void)addItemToPlugInMenu:(NSMenuItem *)item;
55
- (void)removeItemFromPlugInMenu:(NSMenuItem *)item;
56
#endif
58
- (IBAction)newWindow:(id)sender;
59
- (IBAction)newWindowAndActivate:(id)sender;
60
- (IBAction)fileOpen:(id)sender;
61
- (IBAction)selectNextWindow:(id)sender;
62
- (IBAction)selectPreviousWindow:(id)sender;
63
- (IBAction)orderFrontPreferencePanel:(id)sender;
Mar 21, 2008
64
- (IBAction)openWebsite:(id)sender;
65
- (IBAction)showVimHelp:(id)sender;
66
- (IBAction)zoomAll:(id)sender;
Jul 25, 2007
67
68
@end