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 | #import <AIUtilities/AIMultiCellOutlineView.h> |
---|
18 | #import <Adium/AIAbstractListController.h> |
---|
19 | #import <Adium/AIContactControllerProtocol.h> |
---|
20 | |
---|
21 | @class AIListObject; |
---|
22 | |
---|
23 | typedef enum { |
---|
24 | AINormalBackground = 0, |
---|
25 | AITileBackground, |
---|
26 | AIFillProportionatelyBackground, |
---|
27 | AIFillStretchBackground |
---|
28 | } AIBackgroundStyle; |
---|
29 | |
---|
30 | @interface AIListOutlineView : AIMultiCellOutlineView <ContactListOutlineView> { |
---|
31 | BOOL groupsHaveBackground; |
---|
32 | BOOL updateShadowsWhileDrawing; |
---|
33 | |
---|
34 | NSImage *backgroundImage; |
---|
35 | float backgroundFade; |
---|
36 | BOOL _drawBackground; |
---|
37 | AIBackgroundStyle backgroundStyle; |
---|
38 | AIContactListWindowStyle windowStyle; |
---|
39 | |
---|
40 | NSColor *backgroundColor; |
---|
41 | NSColor *_backgroundColorWithOpacity; |
---|
42 | float backgroundOpacity; |
---|
43 | |
---|
44 | NSColor *highlightColor; |
---|
45 | |
---|
46 | NSColor *rowColor; |
---|
47 | NSColor *_rowColorWithOpacity; |
---|
48 | |
---|
49 | float minimumDesiredWidth; |
---|
50 | BOOL desiredHeightPadding; |
---|
51 | |
---|
52 | NSArray *draggedItems; |
---|
53 | } |
---|
54 | |
---|
55 | - (void)setDelegate:(id)delegate; |
---|
56 | - (int)desiredHeight; |
---|
57 | - (int)desiredWidth; |
---|
58 | - (void)setMinimumDesiredWidth:(int)inMinimumDesiredWidth; |
---|
59 | - (void)setDesiredHeightPadding:(int)inPadding; |
---|
60 | |
---|
61 | //Selection Hiding |
---|
62 | - (void)configureSelectionHidingForNewSuperview:(NSView *)newSuperview; |
---|
63 | - (void)windowBecameMain:(NSNotification *)notification; |
---|
64 | - (void)windowResignedMain:(NSNotification *)notification; |
---|
65 | |
---|
66 | //Contact menu |
---|
67 | - (AIListObject *)listObject; |
---|
68 | - (NSArray *)arrayOfListObjects; |
---|
69 | |
---|
70 | //Contacts |
---|
71 | /*! |
---|
72 | * @brief Index of the first visible list contact |
---|
73 | * |
---|
74 | * @result The index, or -1 if no list contact is visible |
---|
75 | */ |
---|
76 | - (int)indexOfFirstVisibleListContact; |
---|
77 | |
---|
78 | //Shadows |
---|
79 | - (void)setUpdateShadowsWhileDrawing:(BOOL)update; |
---|
80 | |
---|
81 | //Backgrounds |
---|
82 | - (void)setBackgroundImage:(NSImage *)inImage; |
---|
83 | - (void)setBackgroundStyle:(AIBackgroundStyle)inBackgroundStyle; |
---|
84 | - (void)setBackgroundOpacity:(float)opacity forWindowStyle:(AIContactListWindowStyle)windowStyle; |
---|
85 | - (void)setBackgroundFade:(float)fade; |
---|
86 | - (void)setBackgroundColor:(NSColor *)inColor; |
---|
87 | - (NSColor *)backgroundColor; |
---|
88 | - (void)setHighlightColor:(NSColor *)inColor; |
---|
89 | - (NSColor *)highlightColor; |
---|
90 | - (void)setAlternatingRowColor:(NSColor *)color; |
---|
91 | - (NSColor *)alternatingRowColor; |
---|
92 | @end |
---|