-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathQSTableView.h
38 lines (30 loc) · 1.05 KB
/
QSTableView.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
#import <AppKit/AppKit.h>
@interface NSObject (QSTableViewSeparator)
- (BOOL)tableView:(NSTableView *)aTableView shouldDrawRow:(int)rowIndex inClipRect:(NSRect)clipRect;
- (BOOL)tableView:(NSTableView *)aTableView rowIsSeparator:(int)rowIndex;
@end
@interface NSObject (QSTableViewMenu)
- (NSMenu *)tableView:(NSTableView*)tableView menuForTableColumn:(NSTableColumn *)column row:(int)row;
@end
@interface NSObject (QSTableDropEnded)
- (void)tableView:(NSTableView *)tv dropEndedWithOperation:(NSDragOperation)operation;
@end
@interface NSTableView (Separator)
- (void)drawSeparatorForRow:(int)rowIndex clipRect:(NSRect)clipRect;
@end
@interface QSTableView : NSTableView {
int drawingRowIsSelected;
NSColor *highlightColor;
id draggingDelegate;
BOOL opaque;
BOOL drawsBackground;
}
- (NSColor *)highlightColor;
- (void)setHighlightColor:(NSColor *)aHighlightColor;
- (id)draggingDelegate;
- (void)setDraggingDelegate:(id)aDraggingDelegate;
- (void)setOpaque:(BOOL)flag;
@end
@interface NSTableView (MenuExtensions)
- (NSMenu*)menuForEvent:(NSEvent*)evt;
@end