Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 68 lines (55 sloc) 2.058 kB
9ed9a9f @b4winckler Initial import
authored
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>
2bb270f @b4winckler - Added support for Distributed Objects, as an alternative to NSPortM…
authored
12 #import "MacVim.h"
9ed9a9f @b4winckler Initial import
authored
13
14
ddc4ed0 @b4winckler - First window autosaves its position - Safari-like window cascading …
authored
15 @class MMWindowController;
523982b @vatic42 Basic plugin architecture
vatic42 authored
16 @class MMVimController;
9ed9a9f @b4winckler Initial import
authored
17
ddc4ed0 @b4winckler - First window autosaves its position - Safari-like window cascading …
authored
18
19 @interface MMAppController : NSObject <MMAppProtocol> {
0430474 @b4winckler Coerce MacVim to work with LCC
authored
20 NSConnection *connection;
891c4e6 @b4winckler - Default font is now DejaVu (copyright in About box) - Fall back on …
authored
21 NSMutableArray *vimControllers;
22 NSString *openSelectionString;
23 ATSFontContainerRef fontContainerRef;
f99ce72 @b4winckler ODB Editor protocol (aka 'external editor') support
authored
24 NSMutableDictionary *pidArguments;
f6ab5cb @b4winckler Use default menu when no window open, fix 'Recent Files' menu
authored
25 NSMenu *defaultMainMenu;
7752431 @b4winckler Ensure "Services" menu is empty when creating new main menu
authored
26 NSMenuItem *appMenuItemTemplate;
862da53 @nico Add "Recent Files" menu
nico authored
27 NSMenuItem *recentFilesMenuItem;
5c2795b @b4winckler More file opening options (plus quickstart feature)
authored
28 NSMutableArray *cachedVimControllers;
29 int preloadPid;
85c6b71 @b4winckler "New Window" item on Dock menu activates MacVim
authored
30 BOOL shouldActivateWhenNextWindowOpens;
523982b @vatic42 Basic plugin architecture
vatic42 authored
31
4c615b9 @b4winckler Fix compilation problems on OS X 10.4
authored
32 #if (MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_4)
1b68724 @b4winckler Use FS Streams to watch modifications in ~/.vim
authored
33 FSEventStreamRef fsEventStream;
34 #endif
35
523982b @vatic42 Basic plugin architecture
vatic42 authored
36 #ifdef MM_ENABLE_PLUGINS
d363012 @b4winckler Add support for a global "Plug-In" menu
authored
37 NSMenuItem *plugInMenuItem;
523982b @vatic42 Basic plugin architecture
vatic42 authored
38 #endif
9ed9a9f @b4winckler Initial import
authored
39 }
40
f6ab5cb @b4winckler Use default menu when no window open, fix 'Recent Files' menu
authored
41 + (MMAppController *)sharedInstance;
42 - (NSMenu *)defaultMainMenu;
7752431 @b4winckler Ensure "Services" menu is empty when creating new main menu
authored
43 - (NSMenuItem *)appMenuItemTemplate;
523982b @vatic42 Basic plugin architecture
vatic42 authored
44 - (MMVimController *)keyVimController;
9ed9a9f @b4winckler Initial import
authored
45 - (void)removeVimController:(id)controller;
ddc4ed0 @b4winckler - First window autosaves its position - Safari-like window cascading …
authored
46 - (void)windowControllerWillOpen:(MMWindowController *)windowController;
f6ab5cb @b4winckler Use default menu when no window open, fix 'Recent Files' menu
authored
47 - (void)setMainMenu:(NSMenu *)mainMenu;
5c2795b @b4winckler More file opening options (plus quickstart feature)
authored
48 - (NSArray *)filterOpenFiles:(NSArray *)filenames;
325a3db @b4winckler Add "line" and "column" support to mvim:// URL handler
authored
49 - (BOOL)openFiles:(NSArray *)filenames withArguments:(NSDictionary *)args;
50
d363012 @b4winckler Add support for a global "Plug-In" menu
authored
51
523982b @vatic42 Basic plugin architecture
vatic42 authored
52 #ifdef MM_ENABLE_PLUGINS
d363012 @b4winckler Add support for a global "Plug-In" menu
authored
53 - (void)addItemToPlugInMenu:(NSMenuItem *)item;
54 - (void)removeItemFromPlugInMenu:(NSMenuItem *)item;
523982b @vatic42 Basic plugin architecture
vatic42 authored
55 #endif
d363012 @b4winckler Add support for a global "Plug-In" menu
authored
56
f4f647e @b4winckler Renamed newVimWindow: action to newWindow:
authored
57 - (IBAction)newWindow:(id)sender;
85c6b71 @b4winckler "New Window" item on Dock menu activates MacVim
authored
58 - (IBAction)newWindowAndActivate:(id)sender;
2d45730 @b4winckler File->Open pops up a modal 'open files' dialog
authored
59 - (IBAction)fileOpen:(id)sender;
13808e7 @b4winckler - Added ex_action command (uses support file Actions.plist which defi…
authored
60 - (IBAction)selectNextWindow:(id)sender;
61 - (IBAction)selectPreviousWindow:(id)sender;
b8e9844 @b4winckler Added preference panel
authored
62 - (IBAction)orderFrontPreferencePanel:(id)sender;
472eda5 @b4winckler Update Help menu
authored
63 - (IBAction)openWebsite:(id)sender;
c0159b8 @b4winckler Default menu "MacVim Help" item opens help window maximized
authored
64 - (IBAction)showVimHelp:(id)sender;
11ec93a @b4winckler Add "Minimize All" and "Zoom All" items to "Windows" menu
authored
65 - (IBAction)zoomAll:(id)sender;
9ed9a9f @b4winckler Initial import
authored
66
67 @end
Something went wrong with that request. Please try again.