Changeset 2046

Show
Ignore:
Timestamp:
10/21/04 22:11:14 (4 years ago)
Author:
timothy
Message:

Add the title to the dragged tab window.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/AICustomTabDragWindow.m

    r1823 r2046  
    3434        floaterTabImage = [[self dragTabImageForTabCell:inTabCell inCustomTabsView:inTabView] retain]; 
    3535        floaterWindowImage = [[self dragWindowImageForWindow:[inTabView window] customTabsView:inTabView tabCell:inTabCell] retain]; 
    36         useFancyAnimations = (NSAppKitVersionNumber >= 700. && floaterWindowImage); 
     36        useFancyAnimations = ( floaterWindowImage ? YES : NO ); 
    3737         
    3838        if(useFancyAnimations){ 
    3939                //Create a floating window for our tab 
    4040                dragTabFloater = [ESFloater floaterWithImage:floaterTabImage styleMask:NSBorderlessWindowMask title:nil]; 
    41                 [dragTabFloater setMaxOpacity:( transparent ? 0.75 : 1. )]; 
     41                [dragTabFloater setMaxOpacity:1.0]; 
    4242                 
    4343                //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)]; 
    4646        } 
    4747                 
  • trunk/ESFloater.h

    r2040 r2046  
    1616} 
    1717 
    18 + (id)floaterWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask
     18+ (id)floaterWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask title:(NSString *) title
    1919- (void)moveFloaterToPoint:(NSPoint)inPoint; 
    2020- (IBAction)close:(id)sender; 
  • trunk/ESFloater.m

    r2039 r2046  
    2222 
    2323// 
    24 + (id)floaterWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask 
     24+ (id)floaterWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask title:(NSString *) title 
    2525{ 
    26     return([[self alloc] initWithImage:inImage styleMask:styleMask]); 
     26    return([[self alloc] initWithImage:inImage styleMask:styleMask title:title]); 
    2727} 
    2828 
    2929// 
    30 - (id)initWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask 
     30- (id)initWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask title:(NSString *) title 
    3131{ 
    3232    NSRect  frame; 
     
    4444                                         backing:NSBackingStoreBuffered 
    4545                                           defer:NO]; 
     46        if( title) [panel setTitle:title]; 
    4647    [panel setHidesOnDeactivate:NO]; 
    4748    [panel setIgnoresMouseEvents:YES]; 
    4849    [panel setLevel:NSStatusWindowLevel]; 
    4950    [self _setWindowOpacity:WINDOW_FADE_MIN]; 
    50      
     51 
    5152    //Setup the static view 
    5253    staticView = [[NSImageView alloc] initWithFrame:frame];