|
Revision 2039, 1.6 kB
(checked in by timothy, 4 years ago)
|
Latest Adium tab code. Merged our tooltip code in.
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 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; |
|---|
| 18 |
NSSize dragOffset; |
|---|
| 19 |
BOOL selectTabAfterDrag; |
|---|
| 20 |
AICustomTabsView *sourceTabBar; |
|---|
| 21 |
AICustomTabsView *destTabBar; |
|---|
| 22 |
AICustomTabsView *_destinationOfLastDrag; |
|---|
| 23 |
AICustomTabDragWindow *tabDragWindow; |
|---|
| 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 |
|---|