//
//  KSTKTagCloudView.h
//  kouMac
//
//  Created by Pierre on 15/03/10.
//  Copyright 2010 Kaiju. All rights reserved.
//

#import <Cocoa/Cocoa.h>
@protocol KSTKTagCloudViewDelegate;


@interface KSTKTagCloudView : NSView {
	NSMutableSet *tokens;
	NSMutableDictionary *tokenButtons;
	NSRect prevRect;
	NSObject  <KSTKTagCloudViewDelegate> *delegate;
	float preferredHeight;
	BOOL setup;
}

@property (assign) NSObject <KSTKTagCloudViewDelegate> *delegate;
@property (retain) NSSet *tokens;
- (BOOL)addTokenWithString:(NSString *)token;
- (void)removeTokenWithString:(NSString *)token;
- (void)tokensToHighlight:(NSArray *)tokensArray;
- (CGFloat)recalculateButtonLocations;
@property (readonly) float preferredHeight;

@end

@protocol KSTKTagCloudViewDelegate
- (void)tokenCloud:(KSTKTagCloudView *)cloud didChangePreferredHeightTo:(float)newHeight;
- (void)tokenCloud:(KSTKTagCloudView *)cloud didClickToken:(NSString *)str enabled:(BOOL)flag;

@end

@interface KSTKDetailsTagCloudView : KSTKTagCloudView{
}
@end