ITKit For MenuTunes
[ITKit.git] / ITTabView.h
1 /*
2  *      ITKit
3  *  ITTabView
4  *    NSTabView subclass which includes convenience features
5  *
6  *  Original Author : Kent Sutherland <kent.sutherland@ithinksw.com>
7  *   Responsibility : Matt Judy <mjudy@ithinksw.com>
8  *   Responsibility : Kent Sutherland <kent.sutherland@ithinksw.com>
9  *
10  *  Copyright (c) 2002 - 2003 iThink Software.
11  *  All Rights Reserved
12  *
13  */
14
15 /*
16  *      This subclass enables drag-and-drop for tab view items.
17  */
18
19
20 #import <Cocoa/Cocoa.h>
21
22
23 @interface ITTabView : NSTabView
24 {
25     NSTabViewItem *_draggedTab;
26     bool _allowsDragging;
27 }
28
29 - (void)setAllowsDragging:(bool)flag;
30 - (bool)allowsDragging;
31
32 - (void)moveTab:(NSTabViewItem *)tab toIndex:(int)index;
33
34
35 @end