//
//  REDetailsReadCell.h
//  Ehon
//
//  Created by Pierre on 06/05/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "KSTKDetailsHeader.h"

@class REDetailsComponent;

@interface REDetailsReadCell : NSView {
	REDetailsComponent * reDelegate;	
	NSString  * componentLabel, * componentKVCKey;	
	NSDictionary *customConfig;
	BOOL editableMode;

}

+(id)cellWithKey:(NSString *)aKey label:(NSString *)aLabel delegate:(REDetailsComponent *)aComponent frame:(NSRect)aFrame componentConfig:(NSDictionary *)aConfig;
-(void)drawTitle;
-(NSRect)componentDataBounds;
-(void)detailsControlHeightChanged;
-(void)bindToArrayController:(NSArrayController *)anAc;
-(CGFloat) requiredHeightForWidth:(CGFloat)aWidth;
-(NSRect)componentDataBoundsForWidth:(CGFloat)aWidth;
-(NSRect)componentTitleBounds;
-(void)updateFromConfig;
@property (copy) NSString  * componentLabel;
@property (copy) NSString * componentKVCKey;
@property (assign) REDetailsComponent * reDelegate;
@property (retain) NSDictionary *customConfig;
@property (assign) BOOL editableMode;


@end
