DAMN YOU PROJECT BUILDER FOR IMPORTING ONLY FOUNDATION!!!
[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     unsigned int _requiredModifiers;
28 }
29
30 - (void)setAllowsDragging:(bool)flag;
31 - (bool)allowsDragging;
32
33 - (void)setRequiredModifiers:(unsigned int)modifiers;
34 - (unsigned int)requiredModifiers;
35
36 - (void)moveTab:(NSTabViewItem *)tab toIndex:(int)index;
37
38
39 @end