root/Trunk/Adium.framework/Versions/A/Headers/AIListCell.h @ 2

Revision 2, 3.4 KB (checked in by jon, 16 years ago)

Initial commit of skeletal project.

Line 
1/*
2 * Adium is the legal property of its developers, whose names are listed in the copyright file included
3 * with this source distribution.
4 *
5 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
6 * General Public License as published by the Free Software Foundation; either version 2 of the License,
7 * or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
10 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
11 * Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License along with this program; if not,
14 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15 */
16
17@class AIListObject, AIListOutlineView, AIAdium;
18
19#define DROP_HIGHLIGHT_WIDTH_MARGIN 5.0
20#define DROP_HIGHLIGHT_HEIGHT_MARGIN 1.0
21
22@interface AIListCell : NSCell {
23        AIListOutlineView       *controlView;
24    AIListObject                *listObject;
25    BOOL                                isGroup;
26       
27        NSTextAlignment         textAlignment;
28        int                                     labelFontHeight;
29       
30        int                                     topSpacing;
31        int                                     bottomSpacing;
32        int                                     topPadding;
33        int                                     bottomPadding;
34
35        int                                     leftPadding;
36        int                                     rightPadding;
37        int                                     leftSpacing;
38        int                                     rightSpacing;
39       
40        int                                     indentation;
41
42        NSColor                         *textColor;
43        NSColor                         *invertedTextColor;
44       
45        NSFont                          *font;
46       
47        BOOL                            useAliasesAsRequested;
48}
49
50- (void)setListObject:(AIListObject *)inObject;
51- (BOOL)isGroup;
52- (void)setControlView:(AIListOutlineView *)inControlView;
53
54//Display options
55- (void)setFont:(NSFont *)inFont;
56- (NSFont *)font;
57- (void)setTextAlignment:(NSTextAlignment)inAlignment;
58- (NSTextAlignment)textAlignment;
59- (void)setTextColor:(NSColor *)inColor;
60- (NSColor *)textColor;
61- (void)setInvertedTextColor:(NSColor *)inColor;
62- (NSColor *)invertedTextColor;
63
64//Cell sizing and padding
65- (NSSize)cellSize;
66- (int)cellWidth;
67- (void)setSplitVerticalSpacing:(int)inSpacing;
68- (void)setTopSpacing:(int)inSpacing;
69- (int)topSpacing;
70- (void)setBottomSpacing:(int)inSpacing;
71- (int)bottomSpacing;
72- (void)setLeftSpacing:(int)inSpacing;
73- (int)leftSpacing;
74- (void)setRightSpacing:(int)inSpacing;
75- (int)rightSpacing;
76- (void)setSplitVerticalPadding:(int)inPadding;
77- (void)setTopPadding:(int)inPadding;
78- (void)setBottomPadding:(int)inPadding;
79- (int)topPadding;
80- (int)bottomPadding;
81- (void)setLeftPadding:(int)inPadding;
82- (int)leftPadding;
83- (void)setRightPadding:(int)inPadding;
84- (int)rightPadding;
85
86- (void)setIndentation:(int)inIndentation;
87- (int)indentation;
88
89//Drawing
90- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
91- (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
92- (void)_drawHighlightWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
93- (void)drawSelectionWithFrame:(NSRect)rect;
94- (void)drawBackgroundWithFrame:(NSRect)rect;
95- (void)drawContentWithFrame:(NSRect)rect;
96- (void)drawDropHighlightWithFrame:(NSRect)rect;
97- (NSAttributedString *)displayName;
98- (NSRect)drawDisplayNameWithFrame:(NSRect)inRect;
99- (NSString *)labelString;
100- (NSDictionary *)labelAttributes;
101- (NSDictionary *)additionalLabelAttributes;
102- (NSColor *)textColor;
103- (BOOL)cellIsSelected;
104- (BOOL)drawGridBehindCell;
105- (NSColor *)backgroundColor;
106
107- (BOOL)shouldShowAlias;
108
109//Control over whether the cell will respect aliases and long display names
110- (void)setUseAliasesAsRequested:(BOOL)flag;
111
112@end
Note: See TracBrowser for help on using the browser.