root/tags/2C11/AICustomTabDragging.h

Revision 2039, 1.6 kB (checked in by timothy, 4 years ago)

Latest Adium tab code. Merged our tooltip code in.

Line 
1 //
2 //  AICustomTabDragging.h
3 //  Adium
4 //
5 //  Created by Adam Iser on Sat Mar 06 2004.
6 //  Copyright (c) 2004 __MyCompanyName__. All rights reserved.
7 //
8
9 #define TAB_CELL_IDENTIFIER                     @"Tab Cell Identifier"
10
11 #define AICustomTabDragWillBegin        @"AICustomTabDragWillBegin"
12 #define AICustomTabDragDidComplete      @"AICustomTabDragDidComplete"
13
14 @class AICustomTabCell,AICustomTabDragWindow, AICustomTabsView;
15
16 @interface AICustomTabDragging : NSObject {
17         AICustomTabCell         *dragTabCell;                   //Custom tab cell being dragged
18         NSSize                  dragOffset;                             //Offset of cursor on dragged image
19         BOOL                                    selectTabAfterDrag;             //Drag is occuring in the background, do not select after dropping
20         AICustomTabsView        *sourceTabBar;                  //source tabBar of the drag
21         AICustomTabsView        *destTabBar;                    //tabBar currently being hovered by the drag
22         AICustomTabsView                *_destinationOfLastDrag;//last tabbar to be dragged into (used to fix a cursor tracking issue)
23         AICustomTabDragWindow   *tabDragWindow;                 //drag window used for custom drag animations
24 }
25
26 + (AICustomTabDragging *)sharedInstance;
27 - (void)dragTabCell:(AICustomTabCell *)inTabCell fromCustomTabsView:(AICustomTabsView *)sourceView withEvent:(NSEvent *)inEvent selectTab:(BOOL)shouldSelect;
28 - (void)setDestinationTabView:(AICustomTabsView *)inDest;
29
30 - (AICustomTabsView *)destinationTabView;
31 - (AICustomTabsView *)sourceTabView;
32
33 - (void)setDestinationHoverPoint:(NSPoint)inPoint;
34 - (NSSize)sizeOfDraggedCell;
35 - (void)acceptDragIntoTabView:(AICustomTabsView *)destTabView atIndex:(int)destIndex;
36 - (NSTabViewItem *)draggedTabViewItem;
37
38 @end
Note: See TracBrowser for help on using the browser.