//
//  RETagsBar.h
//  Ehon
//
//  Created by Pierre on 30/04/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

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

@protocol KSTKTagsBarDelegate
-(void) tagsBarDidChangeContent:(KSTKTagsBar*)aBar;
@end


@interface KSTKTagsBar : NSView {
	NSArrayController * _listenedController;
	NSArray * _preDefinedContent;
	id selectedEntry;
	id <KSTKTagsBarDelegate> tagsBarDelegate;
	id selectedManagedObject;
}
@property (retain,nonatomic) NSArrayController *_listenedController;
@property (retain,nonatomic)	id selectedManagedObject;
@property (assign,nonatomic) 	id <KSTKTagsBarDelegate> tagsBarDelegate;
@property (retain,nonatomic) NSArray * preDefinedContent;

-(void)bindAll;
- (NSButton *)addButtonForItem:(NSManagedObject *)aRep title:(NSString *)aTitle tag:(int)aTag originX:(CGFloat)aFloat;
-(void)rebuild;
-(int)selectedTag;
@end
