Ctrl-click is translated to right click (for people with one button mice).
[MacVim/jjgod.git] / MMBackend.h
blob1f64714b75870b5f5b87f81b9d3d48db4bbbba62
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 <Foundation/Foundation.h>
12 #import "MacVim.h"
16 @interface MMBackend : NSObject <MMBackendProtocol> {
17 NSMutableArray *queue;
18 NSMutableData *drawData;
19 NSConnection *connection;
20 id frontendProxy;
21 NSString *browseForFileString;
22 NSDictionary *colorDict;
23 BOOL inputReceived;
24 BOOL receivedKillTaskMsg;
25 BOOL tabBarVisible;
26 int backgroundColor;
27 int foregroundColor;
28 int defaultBackgroundColor;
29 int defaultForegroundColor;
32 + (MMBackend *)sharedInstance;
34 - (void)setBackgroundColor:(int)color;
35 - (void)setForegroundColor:(int)color;
36 - (void)setDefaultColorsBackground:(int)bg foreground:(int)fg;
38 - (BOOL)checkin;
39 - (BOOL)openVimWindow;
40 - (void)clearAll;
41 - (void)clearBlockFromRow:(int)row1 column:(int)col1
42 toRow:(int)row2 column:(int)col2;
43 - (void)deleteLinesFromRow:(int)row count:(int)count
44 scrollBottom:(int)bottom left:(int)left right:(int)right;
45 - (void)replaceString:(char*)s length:(int)len row:(int)row column:(int)col
46 flags:(int)flags;
47 - (void)insertLinesFromRow:(int)row count:(int)count
48 scrollBottom:(int)bottom left:(int)left right:(int)right;
49 - (void)flush;
50 - (void)flushQueue;
51 - (BOOL)waitForInput:(int)milliseconds;
52 - (void)exit;
53 - (void)selectTab:(int)index;
54 - (void)updateTabBar;
55 - (BOOL)tabBarVisible;
56 - (void)showTabBar:(BOOL)enable;
57 - (void)setRows:(int)rows columns:(int)cols;
58 - (void)setVimWindowTitle:(char *)title;
59 - (char *)browseForFileInDirectory:(char *)dir title:(char *)title
60 saving:(int)saving;
61 - (void)updateInsertionPoint;
62 - (void)addMenuWithTag:(int)tag parent:(int)parentTag name:(char *)name
63 atIndex:(int)index;
64 - (void)addMenuItemWithTag:(int)tag parent:(int)parentTag name:(char *)name
65 tip:(char *)tip icon:(char *)icon
66 keyEquivalent:(int)key modifiers:(int)mods
67 action:(NSString *)action atIndex:(int)index;
68 - (void)removeMenuItemWithTag:(int)tag;
69 - (void)enableMenuItemWithTag:(int)tag state:(int)enabled;
70 - (void)showPopupMenuWithName:(char *)name;
71 - (void)showToolbar:(int)enable flags:(int)flags;
72 - (void)createScrollbarWithIdentifier:(long)ident type:(int)type;
73 - (void)destroyScrollbarWithIdentifier:(long)ident;
74 - (void)showScrollbarWithIdentifier:(long)ident state:(int)visible;
75 - (void)setScrollbarPosition:(int)pos length:(int)len identifier:(long)ident;
76 - (void)setScrollbarThumbValue:(long)val size:(long)size max:(long)max
77 identifier:(long)ident;
78 - (BOOL)setFontWithName:(char *)name;
79 - (void)executeActionWithName:(NSString *)name;
81 - (int)lookupColorWithKey:(NSString *)key;
83 @end