2011-01-19 23:19:43 +03:00
|
|
|
//
|
|
|
|
// PSMTabBarController.h
|
|
|
|
// PSMTabBarControl
|
|
|
|
//
|
|
|
|
// Created by Kent Sutherland on 11/24/06.
|
|
|
|
// Copyright 2006 Kent Sutherland. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
@class PSMTabBarControl, PSMTabBarCell;
|
|
|
|
|
2011-01-26 13:52:13 +03:00
|
|
|
@interface PSMTabBarController : NSObject
|
|
|
|
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
|
|
|
|
<NSMenuDelegate>
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
PSMTabBarControl *_control;
|
|
|
|
NSMutableArray *_cellTrackingRects;
|
|
|
|
NSMutableArray *_closeButtonTrackingRects;
|
|
|
|
NSMutableArray *_cellFrames;
|
|
|
|
NSRect _addButtonRect;
|
|
|
|
NSMenu *_overflowMenu;
|
2011-01-19 23:19:43 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
- (id)initWithTabBarControl:(PSMTabBarControl *)control;
|
|
|
|
|
|
|
|
- (NSRect)addButtonRect;
|
|
|
|
- (NSMenu *)overflowMenu;
|
2011-01-31 11:33:16 +03:00
|
|
|
- (NSRect)cellTrackingRectAtIndex:(NSUInteger)index;
|
|
|
|
- (NSRect)closeButtonTrackingRectAtIndex:(NSUInteger)index;
|
|
|
|
- (NSRect)cellFrameAtIndex:(NSUInteger)index;
|
2011-01-19 23:19:43 +03:00
|
|
|
|
|
|
|
- (void)setSelectedCell:(PSMTabBarCell *)cell;
|
|
|
|
|
|
|
|
- (void)layoutCells;
|
|
|
|
|
|
|
|
@end
|