root/tags/2D16/AICustomTabCell.h

Revision 2558, 3.0 kB (checked in by eridius, 3 years ago)

Remove all trailing whitespace from lines
Remove indentation on blank lines

Line 
1 /*-------------------------------------------------------------------------------------------------------*\
2 | Adium, Copyright (C) 2001-2004, Adam Iser  (adamiser@mac.com | http://www.adiumx.com)                   |
3 \---------------------------------------------------------------------------------------------------------/
4  | This program is free software; you can redistribute it and/or modify it under the terms of the GNU
5  | General Public License as published by the Free Software Foundation; either version 2 of the License,
6  | or (at your option) any later version.
7  |
8  | This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
9  | the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
10  | Public License for more details.
11  |
12  | You should have received a copy of the GNU General Public License along with this program; if not,
13  | write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
14  \------------------------------------------------------------------------------------------------------ */
15
16 @protocol AICustomTabViewItem
17 - (NSString *)label;
18 - (NSImage *)icon;
19 - (BOOL) isEnabled;
20 @end
21
22 @class AICustomTabsView;
23
24 @interface AICustomTabCell : NSCell {
25         BOOL                                                            wasEnabled;
26     BOOL                                                                selected;
27     BOOL                                                                highlighted;
28     BOOL                                                                allowsInactiveTabClosing;
29
30     BOOL                                                                trackingClose;
31     BOOL                                                                hoveringClose;
32
33     NSTrackingRectTag                                   trackingTag;
34     NSTrackingRectTag                                   closeTrackingTag;
35     NSTrackingRectTag                                   toolTipTag;
36
37         NSAttributedString                                      *attributedLabel;
38     NSTabViewItem<AICustomTabViewItem>  *tabViewItem;
39     NSRect                                                              frame;
40
41         AICustomTabsView                                        *view;
42 }
43
44 + (id)customTabForTabViewItem:(NSTabViewItem<AICustomTabViewItem> *)inTabViewItem customTabsView:(AICustomTabsView *)inView;
45 - (void)setAllowsInactiveTabClosing:(BOOL)inValue;
46 - (BOOL)allowsInactiveTabClosing;
47 - (void)setSelected:(BOOL)inSelected;
48 - (BOOL)isSelected;
49 - (void)setHoveringClose:(BOOL)hovering;
50 - (void)setHighlighted:(BOOL)inHighlight;
51 - (BOOL)isHighlighted;
52 - (void)setFrame:(NSRect)inFrame;
53 - (NSRect)frame;
54 - (NSSize)size;
55 - (NSComparisonResult)compareWidth:(AICustomTabCell *)tab;
56 - (NSTabViewItem *)tabViewItem;
57 - (void)drawWithFrame:(NSRect)rect inView:(NSView *)controlView;
58 - (void)drawWithFrame:(NSRect)rect inView:(NSView *)controlView ignoreSelection:(BOOL)ignoreSelection;
59 - (void)addTrackingRectsWithFrame:(NSRect)trackRect cursorLocation:(NSPoint)cursorLocation;
60 - (void)removeTrackingRects;
61 - (void)mouseEntered:(NSEvent *)theEvent;
62 - (void)mouseExited:(NSEvent *)theEvent;
63 - (BOOL)willTrackMouse:(NSEvent *)theEvent inRect:(NSRect)cellFrame ofView:(NSView *)controlView;
64 - (BOOL)startTrackingAt:(NSPoint)startPoint inView:(NSView *)controlView;
65 - (BOOL)continueTracking:(NSPoint)lastPoint at:(NSPoint)currentPoint inView:(NSView *)controlView;
66 - (void)stopTracking:(NSPoint)lastPoint at:(NSPoint)stopPoint inView:(NSView *)controlView mouseIsUp:(BOOL)flag;
67 - (NSAttributedString *)attributedLabel;
68
69 @end
Note: See TracBrowser for help on using the browser.