//
//  REDetailsTextField.h
//  Ehon
//
//  Created by Pierre on 01/10/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#define DEFAULT_MIN_WIDTH 10.

//@class GTKFieldEditorTextView;
@interface REFieldEditorTextView : NSTextView
{
	BOOL alwaysSelectText;
}

- (void) setAlwaysSelectText:(BOOL)flag;

@end

@interface REDetailsTextFieldCell : NSTextFieldCell <NSTextViewDelegate>
{
	BOOL isEmpty;
}

- (BOOL) isEmpty;

@end

@interface REDetailsTextField : NSTextField <NSTextViewDelegate>
{
	float minWidth;
	float maxWidth;
	
	BOOL isDisplayingPlaceHolder;
	NSDictionary *attr;
	
	REFieldEditorTextView *embeddedFieldEditor;
	
}
@property (assign) float minWidth;
@property (assign) float maxWidth;
@property (retain) NSDictionary *attr;

- (void)sizeToFitWithValue:(NSString*)aValue;

@end
