/* DockTileView.h created by fred on Wed 22-Sep-1999 */

#import <AppKit/AppKit.h>

@class Dock;

//	This represent one entry on the dock. This is a model, controller and view object.
@interface DockTileView : NSButton
{		//	The underlying path
	NSString *itsPath;

		//	Full path for the underlying app (either the path in the tile, or what the workspace would use to open the file in the tile)
	NSString *itsApplicationFullPath;

		//	If YES, the tile is temporary (ie: the path is not yet dropped into it)
	BOOL itsfTemporary;

		//	If YES, the application is launched
//	BOOL itsfLaunched;

		//	The icon representing the tile (it may be different from the one the workspace would use)
//	NSImage *itsImage;

		//	Index of slot in dock
	unsigned itsSlotIndex;

		//	Its current dock (non retained)
	Dock *itsDock;

		//	The message window
	NSWindow *itsMessageWindow;

		//	If YES, file exists
	BOOL itsfExists;

		//	The image in the higlighted state
	NSImage *itsHighlightedImage;

		//	A title string that can be added if the icon is not descriptive enough.
	NSString *itsTitle;

		//	Title color name
	NSString *itsTitleColorName;

		//	Title color
	NSColor *itsTitleColor;
}

	//	Indicate the position of the tile (so it is easy for the dock to manipulate this tile)
- (void)setSlotIndex:(unsigned)anIndex;

- (Dock *)dock;
- (void)setDock:(Dock *)aDoc;

- (NSDictionary *)propertyList;

- (NSString *)path;
- (void)setPath:(NSString *)aPath;

- (NSString *)title;
- (void)setTitle:(NSString *)aTitle;

- (NSString *)titleColorName;
- (void)setTitleColorName:(NSString *)aTitleColorName;

- (NSColor *)titleColor;
- (void)setTitleColor:(NSColor *)aTitleColor;

- (void)removeMessage;
- (void)putMessage:(NSString *)aMessage;

- (BOOL)isApplication;
- (BOOL)isLaunched;
- (BOOL)doesExists;

@end
