X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/51184d8f0f8359c82c46c079d0052cd60c3cfee1..650aa30b6ac73ecb0727ec4409f02bf90adf51f5:/ITTabView.h?ds=sidebyside diff --git a/ITTabView.h b/ITTabView.h old mode 100755 new mode 100644 index 7f86e74..36d1ca6 --- a/ITTabView.h +++ b/ITTabView.h @@ -1,25 +1,30 @@ /* * ITKit - * ITTabView - * NSTabView subclass which includes convenience features + * ITTabView.h * - * Original Author : Joseph Spiros - * Responsibility : Matt Judy - * Responsibility : Kent Sutherland + * NSTabView subclass which allows dragging (reordering) of tab view items. * - * Copyright (c) 2002 iThink Software. - * All Rights Reserved + * Copyright (c) 2005 by iThink Software. + * All Rights Reserved. + * + * $Id$ * - */ - -/* - * This subclass enables drag-and-drop for tab view items. */ #import -@interface ITTabView : NSTabView -{ - NSTabViewItem *_draggedTab; +@interface ITTabView : NSTabView { + NSTabViewItem *_draggedTab; + BOOL _allowsDragging; + unsigned int _requiredModifiers; } -@end + +- (void)setAllowsDragging:(BOOL)flag; +- (BOOL)allowsDragging; + +- (void)setRequiredModifiers:(unsigned int)modifiers; +- (unsigned int)requiredModifiers; + +- (void)moveTab:(NSTabViewItem *)tab toIndex:(int)index; + +@end \ No newline at end of file