Frameworks/Adium Framework/Source/AIListCell.h
author Evan Schoenberg
Thu, 14 Nov 2019 21:09:06 -0500
changeset 6016 325e2ab3406f
parent 4161 8de0a4e32e42
child 6017 489d1e762237
permissions -rw-r--r--
Fixed a bunch of warnings
 * Adium is the legal property of its developers, whose names are listed in the copyright file included
 * with this source distribution.
 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
 * General Public License as published by the Free Software Foundation; either version 2 of the License,
 * or (at your option) any later version.
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
 * Public License for more details.
 * You should have received a copy of the GNU General Public License along with this program; if not,
 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

#import "AIProxyListObject.h"

@class AIListObject, AIListOutlineView, AIAdium;


@interface AIListCell : NSCell {
	AIListOutlineView	*outlineControlView;
    AIProxyListObject	*proxyObject;
    BOOL				isGroup;
	NSTextAlignment		textAlignment;
	CGFloat					labelFontHeight;
	CGFloat					topSpacing;
	CGFloat					bottomSpacing;
	CGFloat					topPadding;
	CGFloat					bottomPadding;

	CGFloat					leftPadding;
	CGFloat					rightPadding;
	CGFloat					leftSpacing;
	CGFloat					rightSpacing;
	CGFloat					indentation;

	NSColor				*textColor;
	NSColor				*invertedTextColor;
	NSFont				*font;
	BOOL				useAliasesAsRequested;
	NSMutableDictionary *labelAttributes;

- (void)setProxyListObject:(AIProxyListObject *)inObject;
@property (readonly, nonatomic) BOOL isGroup;
@property (readwrite, assign, nonatomic) AIListOutlineView *outlineControlView;

//Display options
@property (readwrite, retain, nonatomic) NSFont *font;
@property (readwrite, nonatomic) NSTextAlignment textAlignment;
@property (readwrite, retain, nonatomic) NSColor *textColor;
@property (readwrite, retain, nonatomic) NSColor *invertedTextColor;

//Cell sizing and padding
- (void) setSplitVerticalSpacing:(int) inSpacing;
- (void) setSplitVerticalPadding:(int) inPadding;
@property (readonly, nonatomic) NSSize cellSize;
@property (readonly, nonatomic) CGFloat cellWidth;
@property (readwrite, nonatomic) CGFloat rightSpacing;
@property (readwrite, nonatomic) CGFloat leftSpacing;
@property (readwrite, nonatomic) CGFloat topSpacing;
@property (readwrite, nonatomic) CGFloat bottomSpacing;
@property (readwrite, nonatomic) CGFloat rightPadding;
@property (readwrite, nonatomic) CGFloat leftPadding;
@property (readwrite, nonatomic) CGFloat topPadding;
@property (readwrite, nonatomic) CGFloat bottomPadding;
@property (readwrite, nonatomic) CGFloat indentation;

- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
- (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
- (void)_drawHighlightWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
- (void)drawSelectionWithFrame:(NSRect)rect;
- (void)drawBackgroundWithFrame:(NSRect)rect;
- (void)drawContentWithFrame:(NSRect)rect;
- (void)drawDropHighlightWithFrame:(NSRect)rect;
@property (readonly, nonatomic) NSAttributedString *displayName;
@property (readonly, nonatomic) NSSize displayNameSize;
- (NSRect)drawDisplayNameWithFrame:(NSRect)inRect;
@property (readonly, nonatomic) NSString *labelString;
@property (readonly, nonatomic) NSMutableDictionary *labelAttributes;
@property (readonly, nonatomic) NSDictionary *additionalLabelAttributes;
@property (readonly, nonatomic) BOOL cellIsSelected;
@property (readonly, nonatomic) BOOL drawGridBehindCell;
@property (readonly, nonatomic) NSColor *backgroundColor;

@property (readwrite, nonatomic) BOOL shouldShowAlias;