File: programming/cocoa/UKDistributedView.zip/UKDistributedView/UKFinderIconCell/UKFinderIconCell.h


/* =============================================================================
	FILE:		UKFinderIconCell.h
	PROJECT:	UKDistributedView
 
    COPYRIGHT:  (c) 2003 M. Uli Kusterer, all rights reserved.
    
	AUTHORS:	M. Uli Kusterer - UK
    
    LICENSES:   GPL, Commercial (ask for pricing)
 
	REVISIONS:
		2003-12-19	UK	Created.
   ========================================================================== */
 
// -----------------------------------------------------------------------------
//  Headers:
// -----------------------------------------------------------------------------
 
#import <Cocoa/Cocoa.h>
 
 
// -----------------------------------------------------------------------------
//  Constants:
// -----------------------------------------------------------------------------
 
#define UKFIC_TEXT_VERTMARGIN		1		// How many pixels is selection supposed to extend above and below the title?
#define UKFIC_TEXT_HORZMARGIN		3		// How many pixels is selection supposed to extend to the left and right of the title?
#define UKFIC_SELBOX_VERTMARGIN		1		// How much distance do you want between top of cell/title and icon's highlight box?
#define UKFIC_SELBOX_HORZMARGIN		1		// How much distance do you want between right/left edges of cell and icon's highlight box?
#define UKFIC_SELBOX_OUTLINE_WIDTH  2		// Width of outline of selection box around icon.
#define UKFIC_IMAGE_VERTMARGIN		2		// Distance between maximum top/bottom edges of image and highlight box.
#define UKFIC_IMAGE_HORZMARGIN		2		// Distance between maximum left/right edges of image and highlight box.
 
 
// -----------------------------------------------------------------------------
//  Data Structures:
// -----------------------------------------------------------------------------
// Is this cell currently selected?
// Cached isFlipped from the view we're drawn in.
// Currently being inline-edited?
// Draw a separator line at the top of this cell?
// -----------------------------------------------------------------------------
//  Class declaration:
// -----------------------------------------------------------------------------
// Description text to display under image. (NYI)
// Icon to display for this item.
// Color to use for name. Defaults to white.
// Color to use for the box around the icon (when highlighted). Defaults to grey.
// Color to use for background of the highlighted name. Defaults to blue.
// Color to use for background of the cell. Defaults to none.
// Image position relative to title.
// Truncate string left, middle or right if it's wider than cell?
// Opacity.
	UKFICFlags          flags;          // Boolean flags and properties of this cell.
//-(id)		initImageCell: (NSImage*)img;	// Designated initializer.
// Accessing image:
//setImage: and image are inherited from NSCell.
// Currently, only "above" and "below" work.
// -----------------------------------------------------------------------------
//  Functions:
// -----------------------------------------------------------------------------
 
// Truncate a string by inserting an ellipsis ("..."). truncateMode can be NSLineBreakByTruncatingHead, NSLineBreakByTruncatingMiddle or NSLineBreakByTruncatingTail.
 

This code uses the PclZip Zip File reading code, which is subject to the GNU LGPL. It also uses the GeSHi syntax highlighter, subject to the GPL. Ask if you want this for your own web site, it's free.