forked from atg/Ingredients
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIGKTableOfContentsView.h
53 lines (33 loc) · 1011 Bytes
/
IGKTableOfContentsView.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
48
49
50
51
52
53
//
// IGKTableOfContentsView.h
// Ingredients
//
// Created by Alex Gordon on 06/03/2010.
// Written in 2010 by Fileability.
//
#import <Cocoa/Cocoa.h>
#import "IGKEaseInOutAnimatedView.h"
typedef enum {
IGKTableOfContentsTitleColumn,
IGKTableOfContentsIconColumn,
} IGKTableOfContentsColumn;
@protocol IGKTableOfContentsDelegate <NSObject>
@required
- (NSInteger)numberOfRowsInTableOfContents;
- (id)valueForTableOfContentsColumn:(IGKTableOfContentsColumn)col row:(NSInteger)row;
@optional
- (void)tableOfContentsChangedSelection;
@end
@interface IGKTableOfContentsView : IGKEaseInOutAnimatedView {
IBOutlet id<IGKTableOfContentsDelegate> delegate;
IBOutlet NSMutableIndexSet *selectedRowIndexes;
IBOutlet id splitView;
NSInteger lastDraggedRow;
}
@property (assign) id<IGKTableOfContentsDelegate> delegate;
@property (readonly) NSMutableIndexSet *selectedRowIndexes;
- (void)reloadData;
- (NSUInteger)rowIndexForPoint:(NSPoint)p;
- (BOOL)hasNoItems;
- (float)heightToFit;
@end