2011-01-19 23:19:43 +03:00
|
|
|
//
|
|
|
|
// PSMTabDragWindowController.h
|
|
|
|
// PSMTabBarControl
|
|
|
|
//
|
|
|
|
// Created by Kent Sutherland on 6/18/07.
|
|
|
|
// Copyright 2007 Kent Sutherland. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import "PSMTabBarControl.h"
|
|
|
|
|
|
|
|
#define kPSMTabDragWindowAlpha 0.75
|
|
|
|
#define kPSMTabDragAlphaInterval 0.15
|
|
|
|
|
|
|
|
@class PSMTabDragView;
|
|
|
|
|
|
|
|
@interface PSMTabDragWindowController : NSWindowController {
|
2011-01-26 13:52:13 +03:00
|
|
|
PSMTabBarTearOffStyle _tearOffStyle;
|
|
|
|
PSMTabDragView *_view;
|
|
|
|
NSAnimation *_animation;
|
|
|
|
NSTimer *_timer;
|
|
|
|
|
|
|
|
BOOL _showingAlternate;
|
|
|
|
NSRect _originalWindowFrame;
|
2011-01-19 23:19:43 +03:00
|
|
|
}
|
2011-01-26 13:52:13 +03:00
|
|
|
- (id)initWithImage:(NSImage *)image styleMask:(NSUInteger) styleMask tearOffStyle:(PSMTabBarTearOffStyle)tearOffStyle;
|
2011-01-19 23:19:43 +03:00
|
|
|
|
|
|
|
- (NSImage *)image;
|
|
|
|
- (NSImage *)alternateImage;
|
|
|
|
- (void)setAlternateImage:(NSImage *)image;
|
|
|
|
- (BOOL)isAnimating;
|
|
|
|
- (void)switchImages;
|
|
|
|
@end
|