root/Trunk/AIUtilities.framework/Versions/A/Headers/AIAlternatingRowTableView.h @ 2

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

Initial commit of skeletal project.

Line 
1/*-------------------------------------------------------------------------------------------------------*\
2| Adium, Copyright (C) 2001-2005, 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/*!
17 * @class AIAlternatingRowTableView
18 * @brief An <tt>NSTableView</tt> subclass supporting gradient selection and notificatoin of a delete keypress.
19 *
20 * The name is currently AIAlternatingRowTableView for Adium legacy regions. This class should be renamed.
21 *
22 */
23@interface AIAlternatingRowTableView : NSTableView {
24        BOOL    acceptFirstMouse;
25        BOOL    drawsGradientSelection;
26}
27/*!
28 * @brief Set the return value of -(BOOL)acceptsFirstMouse
29 *
30 * See the <tt>NSView</tt> documentation for details.
31 * @param acceptFirstMouse The new value to return for -(BOOL)acceptsFirstMouse
32 */
33- (void)setAcceptsFirstMouse:(BOOL)acceptFirstMouse;
34
35- (void)setDrawsGradientSelection:(BOOL)inDrawsGradientSelection;
36- (BOOL)drawsGradientSelection;
37
38@end
39
40@interface NSObject (AITableViewDelegateDeleteSupport)
41- (void)tableViewDeleteSelectedRows:(NSTableView *)tableView;
42@end
43
44
45@interface NSObject (AITableViewDelegateMenuSupport)
46- (NSMenu *)tableView:(NSTableView *)inTableView menuForEvent:(NSEvent *)theEvent;
47@end
Note: See TracBrowser for help on using the browser.