/
TMDIncrementalPopUpMenu.h
47 lines (44 loc) · 1.22 KB
/
TMDIncrementalPopUpMenu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// TMDIncrementalPopUpMenu.h
//
// Created by Joachim MŒrtensson on 2007-08-10.
// Copyright (c) 2007 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#define MAX_ROWS 15
@interface TMDIncrementalPopUpMenu : NSWindowController
{
IBOutlet NSArrayController* anArrayController;
NSArray* suggestions;
NSMutableString* mutablePrefix;
NSString* staticPrefix;
NSArray* filtered;
NSString* shell;
NSMutableAttributedString* attrString;
IBOutlet id theTableView;
float stringWidth;
NSPoint caretPos;
BOOL isAbove;
NSRect mainScreen;
BOOL closeMe;
id ed;
id controllerObject;
}
- (id)initWithDictionary:(NSDictionary*)aDictionary
andEditor:(id)editor;
- (void)filter;
- (NSMutableString*)mutablePrefix;
- (id)theTableView;
- (void)keyDown:(NSEvent*)anEvent;
- (void)tab;
- (int)stringWidth;
- (void)writeToTM:(NSString*)aString asSnippet:(BOOL)snippet;
- (NSString*)executeShellCommand:(NSString*)command WithDictionary:(NSDictionary*)dict;
- (NSArray*)filtered;
- (void)setFiltered:(NSArray*)aValue;
- (void)setCaretPos:(NSPoint)aPos;
- (void)setMainScreen:(NSRect)aScreen;
- (void)setAbove:(BOOL)aBool;
- (void)completeAndInsertSnippet:(id)nothing;
- (BOOL)getCloseStatus;
@end