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.
11 #import <Foundation/Foundation.h>
16 @interface MMBackend
: NSObject
<MMBackendProtocol
> {
17 NSMutableArray
*queue
;
18 NSMutableData
*drawData
;
19 NSConnection
*connection
;
21 NSString
*browseForFileString
;
22 NSDictionary
*colorDict
;
24 BOOL receivedKillTaskMsg
;
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
;
39 - (BOOL
)openVimWindow
;
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
47 - (void)insertLinesFromRow
:(int)row count
:(int)count
48 scrollBottom
:(int)bottom left
:(int)left right
:(int)right
;
51 - (BOOL
)waitForInput
:(int)milliseconds
;
53 - (void)selectTab
:(int)index
;
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
61 - (void)updateInsertionPoint
;
62 - (void)addMenuWithTag
:(int)tag parent
:(int)parentTag name
:(char *)name
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
;