| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
@protocol AICustomTabViewItem |
|---|
| 17 |
- (NSString *)label; |
|---|
| 18 |
- (NSImage *)icon; |
|---|
| 19 |
- (BOOL) isEnabled; |
|---|
| 20 |
@end |
|---|
| 21 |
|
|---|
| 22 |
@class AICustomTabsView; |
|---|
| 23 |
|
|---|
| 24 |
@interface AICustomTabCell : NSCell { |
|---|
| 25 |
BOOL wasEnabled; |
|---|
| 26 |
BOOL selected; |
|---|
| 27 |
BOOL highlighted; |
|---|
| 28 |
BOOL allowsInactiveTabClosing; |
|---|
| 29 |
|
|---|
| 30 |
BOOL trackingClose; |
|---|
| 31 |
BOOL hoveringClose; |
|---|
| 32 |
|
|---|
| 33 |
NSTrackingRectTag trackingTag; |
|---|
| 34 |
NSTrackingRectTag closeTrackingTag; |
|---|
| 35 |
NSTrackingRectTag toolTipTag; |
|---|
| 36 |
|
|---|
| 37 |
NSAttributedString *attributedLabel; |
|---|
| 38 |
NSTabViewItem<AICustomTabViewItem> *tabViewItem; |
|---|
| 39 |
NSRect frame; |
|---|
| 40 |
|
|---|
| 41 |
AICustomTabsView *view; |
|---|
| 42 |
} |
|---|
| 43 |
|
|---|
| 44 |
+ (id)customTabForTabViewItem:(NSTabViewItem<AICustomTabViewItem> *)inTabViewItem customTabsView:(AICustomTabsView *)inView; |
|---|
| 45 |
- (void)setAllowsInactiveTabClosing:(BOOL)inValue; |
|---|
| 46 |
- (BOOL)allowsInactiveTabClosing; |
|---|
| 47 |
- (void)setSelected:(BOOL)inSelected; |
|---|
| 48 |
- (BOOL)isSelected; |
|---|
| 49 |
- (void)setHoveringClose:(BOOL)hovering; |
|---|
| 50 |
- (void)setHighlighted:(BOOL)inHighlight; |
|---|
| 51 |
- (BOOL)isHighlighted; |
|---|
| 52 |
- (void)setFrame:(NSRect)inFrame; |
|---|
| 53 |
- (NSRect)frame; |
|---|
| 54 |
- (NSSize)size; |
|---|
| 55 |
- (NSComparisonResult)compareWidth:(AICustomTabCell *)tab; |
|---|
| 56 |
- (NSTabViewItem *)tabViewItem; |
|---|
| 57 |
- (void)drawWithFrame:(NSRect)rect inView:(NSView *)controlView; |
|---|
| 58 |
- (void)drawWithFrame:(NSRect)rect inView:(NSView *)controlView ignoreSelection:(BOOL)ignoreSelection; |
|---|
| 59 |
- (void)addTrackingRectsWithFrame:(NSRect)trackRect cursorLocation:(NSPoint)cursorLocation; |
|---|
| 60 |
- (void)removeTrackingRects; |
|---|
| 61 |
- (void)mouseEntered:(NSEvent *)theEvent; |
|---|
| 62 |
- (void)mouseExited:(NSEvent *)theEvent; |
|---|
| 63 |
- (BOOL)willTrackMouse:(NSEvent *)theEvent inRect:(NSRect)cellFrame ofView:(NSView *)controlView; |
|---|
| 64 |
- (BOOL)startTrackingAt:(NSPoint)startPoint inView:(NSView *)controlView; |
|---|
| 65 |
- (BOOL)continueTracking:(NSPoint)lastPoint at:(NSPoint)currentPoint inView:(NSView *)controlView; |
|---|
| 66 |
- (void)stopTracking:(NSPoint)lastPoint at:(NSPoint)stopPoint inView:(NSView *)controlView mouseIsUp:(BOOL)flag; |
|---|
| 67 |
- (NSAttributedString *)attributedLabel; |
|---|
| 68 |
|
|---|
| 69 |
@end |
|---|