Added a new method, moveTab:toIndex:
[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 iThink Software.
11  *  All Rights Reserved
12  *
13  */
14
15 /*
16  *      This subclass enables drag-and-drop for tab view items.
17  */
18
19 #import <Cocoa/Cocoa.h>
20
21 @interface ITTabView : NSTabView
22 {
23     NSTabViewItem *_draggedTab;
24     bool _allowsDragging;
25 }
26
27 - (void)setAllowsDragging:(bool)flag;
28 - (bool)allowsDragging;
29
30 - (void)moveTab:(NSTabViewItem *)tab toIndex:(int)index;
31
32 @end