Files
textmate/Frameworks/OakTextView/src/OakChoiceMenu.h
2013-02-12 23:06:48 +01:00

23 lines
730 B
Objective-C

extern NSUInteger const OakChoiceMenuKeyUnused;
extern NSUInteger const OakChoiceMenuKeyReturn;
extern NSUInteger const OakChoiceMenuKeyTab;
extern NSUInteger const OakChoiceMenuKeyCancel;
extern NSUInteger const OakChoiceMenuKeyMovement;
@interface OakChoiceMenu : NSResponder <NSTableViewDataSource>
{
NSWindow* window;
NSTableView* tableView;
NSArray* choices;
NSUInteger choiceIndex;
NSUInteger keyAction;
NSPoint topLeftPosition;
}
@property (nonatomic) NSArray* choices;
@property (nonatomic) NSUInteger choiceIndex;
@property (nonatomic, readonly) NSString* selectedChoice;
- (void)showAtTopLeftPoint:(NSPoint)aPoint forView:(NSView*)aView;
- (BOOL)isVisible;
- (NSUInteger)didHandleKeyEvent:(NSEvent*)anEvent;
@end