Changeset 2046
- Timestamp:
- 10/21/04 22:11:14 (4 years ago)
- Files:
-
- trunk/AICustomTabDragWindow.m (modified) (1 diff)
- trunk/ESFloater.h (modified) (1 diff)
- trunk/ESFloater.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/AICustomTabDragWindow.m
r1823 r2046 34 34 floaterTabImage = [[self dragTabImageForTabCell:inTabCell inCustomTabsView:inTabView] retain]; 35 35 floaterWindowImage = [[self dragWindowImageForWindow:[inTabView window] customTabsView:inTabView tabCell:inTabCell] retain]; 36 useFancyAnimations = ( NSAppKitVersionNumber >= 700. && floaterWindowImage);36 useFancyAnimations = ( floaterWindowImage ? YES : NO ); 37 37 38 38 if(useFancyAnimations){ 39 39 //Create a floating window for our tab 40 40 dragTabFloater = [ESFloater floaterWithImage:floaterTabImage styleMask:NSBorderlessWindowMask title:nil]; 41 [dragTabFloater setMaxOpacity: ( transparent ? 0.75 : 1. )];41 [dragTabFloater setMaxOpacity:1.0]; 42 42 43 43 //Create a floating window for the stand-alone window our tab would produce 44 dragWindowFloater = [ESFloater floaterWithImage:floaterWindowImage styleMask: [[inTabView window] styleMask]title:[[inTabView window] title]];45 [dragWindowFloater setMaxOpacity:( transparent ? 0.75 : 1.)];44 dragWindowFloater = [ESFloater floaterWithImage:floaterWindowImage styleMask:NSTitledWindowMask title:[[inTabView window] title]]; 45 [dragWindowFloater setMaxOpacity:(transparent ? 0.75 : 1.00)]; 46 46 } 47 47 trunk/ESFloater.h
r2040 r2046 16 16 } 17 17 18 + (id)floaterWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask ;18 + (id)floaterWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask title:(NSString *) title; 19 19 - (void)moveFloaterToPoint:(NSPoint)inPoint; 20 20 - (IBAction)close:(id)sender; trunk/ESFloater.m
r2039 r2046 22 22 23 23 // 24 + (id)floaterWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask 24 + (id)floaterWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask title:(NSString *) title 25 25 { 26 return([[self alloc] initWithImage:inImage styleMask:styleMask ]);26 return([[self alloc] initWithImage:inImage styleMask:styleMask title:title]); 27 27 } 28 28 29 29 // 30 - (id)initWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask 30 - (id)initWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask title:(NSString *) title 31 31 { 32 32 NSRect frame; … … 44 44 backing:NSBackingStoreBuffered 45 45 defer:NO]; 46 if( title) [panel setTitle:title]; 46 47 [panel setHidesOnDeactivate:NO]; 47 48 [panel setIgnoresMouseEvents:YES]; 48 49 [panel setLevel:NSStatusWindowLevel]; 49 50 [self _setWindowOpacity:WINDOW_FADE_MIN]; 50 51 51 52 //Setup the static view 52 53 staticView = [[NSImageView alloc] initWithFrame:frame];
