//
//  KSTKHeadersBarButton.h
//  Eliott
//
//  Created by pierre on 05/05/08.
//  Copyright 2008 Id-Box. All rights reserved.
//

#import <Cocoa/Cocoa.h>
@class KSTKTabHeadersBar;

@interface KSTKHeadersBarButton : NSActionCell {
	BOOL _isSelected;
	float _calculatedWidth;
    NSTrackingRectTag   _closeButtonTrackingTag;	
	NSImage *_smallIcon;
}

-(IBAction)select:(id)sender;
-(IBAction)minimize:(id)sender;
- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView selected:(BOOL)aFlag;
- (float)calculatedWidth;
- (void)setCalculatedWidth:(float)a_calculatedWidth;

- (id)initWithControlView:(KSTKTabHeadersBar *)aControlView;
- (NSImage *)smallIcon;
- (void)setSmallIcon:(NSImage *)a_smallIcon;

-(NSRect)smallIconRectForFrame:(NSRect)aRect;


@end

