//
//  LCBottomToolbarItem.h
//  LCToolkit
//
//  Created by Logan Collins on 12/18/07.
//  Copyright 2010 Logan Collins. All rights reserved.
//

#import <Cocoa/Cocoa.h>


/* LCBottomToolbarItem defines an item for an LCBottomToolbar
 * It is modeled after NSToolbarItem and functions similarly
 */
@interface LCBottomToolbarItem : NSObject <NSValidatedUserInterfaceItem> {
@private
	NSString *identifier;
	NSString *label;
	NSImage *image;
	NSString *toolTip;
	id target;
	SEL action;
	NSInteger tag;
	NSView *view;
	NSMenu *menu;
	BOOL enabled;
}

- (id)initWithIdentifier:(NSString *)anIdentifier;

@property (readonly) NSString *identifier;
@property (copy) NSString *label;
@property (copy) NSImage *image;
@property (copy) NSString *toolTip;
@property (assign) id target;
@property SEL action;
@property NSInteger tag;
@property (retain) NSView *view;
@property (retain) NSMenu *menu;
@property (getter=isEnabled) BOOL enabled;

- (void)validate;

@end


@protocol LCBottomToolbarItemValidation <NSUserInterfaceValidations>
- (BOOL)validateBottomToolbarItem:(LCBottomToolbarItem *)item;
@end


extern NSString * const LCBottomToolbarSeparatorItemIdentifier;
extern NSString * const LCBottomToolbarSpaceItemIdentifier;
extern NSString * const LCBottomToolbarFlexibleSpaceItemIdentifier;

