Adding API to ITStatusItem for callbacks to get dynamic menus.
[ITKit.git] / ITTabView.h
1 /*
2  *      ITKit
3  *      ITTabView.h
4  *
5  *      NSTabView subclass which allows dragging (reordering) of tab view items.
6  *
7  *      Copyright (c) 2005 by iThink Software.
8  *      All Rights Reserved.
9  *
10  *      $Id$
11  *
12  */
13
14 #import <Cocoa/Cocoa.h>
15
16 @interface ITTabView : NSTabView {
17         NSTabViewItem *_draggedTab;
18         BOOL _allowsDragging;
19         unsigned int _requiredModifiers;
20 }
21
22 - (void)setAllowsDragging:(BOOL)flag;
23 - (BOOL)allowsDragging;
24
25 - (void)setRequiredModifiers:(unsigned int)modifiers;
26 - (unsigned int)requiredModifiers;
27
28 - (void)moveTab:(NSTabViewItem *)tab toIndex:(int)index;
29
30 @end