Diff for /chimera/SplashScreenWindow.m between versions 1.1 and 1.2

version 1.1, 2002/03/10 07:36:38 version 1.2, 2002/03/20 10:24:50
Line 14 Line 14
 -(id)splash;  -(id)splash;
 {  {
     NSRect               splashRect;      NSRect               splashRect;
       NSRect               statusFieldRect;
     NSImageView *contentImageView;      NSImageView *contentImageView;
           
     if ( ! [self splashImage] ) {      if ( ! [self splashImage] ) {
         [self setSplashImage:[NSImage imageNamed:@"splash"]];          [self setSplashImage:[NSImage imageNamed:@"splash"]];
     }      }
   
    splashRect            = NSMakeRect(0, 0, [[self splashImage] size].width, [[self splashImage] size].height);    splashRect            = NSMakeRect(0.0, 0.0, [[self splashImage] size].width, [[self splashImage] size].height);
     statusFieldRect   = NSMakeRect(0.0, 170.0, (splashRect.size.width - 5.0), 16.0);
     contentImageView  = [[NSImageView alloc] initWithFrame:splashRect];      contentImageView  = [[NSImageView alloc] initWithFrame:splashRect];
    _statusField      = [[NSTextField alloc] initWithFrame:statusFieldRect];
     
     [self initWithContentRect:splashRect      [self initWithContentRect:splashRect
                     styleMask:NSBorderlessWindowMask                      styleMask:NSBorderlessWindowMask
                       backing:NSBackingStoreBuffered                        backing:NSBackingStoreBuffered
                         defer:NO];                          defer:NO];
           
     [contentImageView setImage:[self splashImage]];      [contentImageView setImage:[self splashImage]];
    [self setContentView:contentImageView];
     [_statusField setDrawsBackground:NO];
     [_statusField setEditable:NO];
     [_statusField setSelectable:NO];
     [_statusField setBezeled:NO];
     [_statusField setBordered:NO];
     [_statusField setFont:[NSFont fontWithName:@"Monaco" size:10.0]];
     [_statusField setTextColor:[NSColor whiteColor]];
     [_statusField setAlignment:NSRightTextAlignment];
     [_statusField setStringValue:@"Loading..."];
 
     [[self contentView] addSubview:contentImageView];
     [[self contentView] addSubview:_statusField];
     [self setHasShadow:YES];      [self setHasShadow:YES];
     [self setReleasedWhenClosed:YES];      [self setReleasedWhenClosed:YES];
     [self center];      [self center];
Line 64 Line 79
     _splashImage = [newImage copy];      _splashImage = [newImage copy];
 }  }
   
   -(void)setStatusText:(NSString *)newText
   {
       [_statusField setStringValue:newText];
       [_statusField display];
   }
   
 -(void)fadeIn  -(void)fadeIn
 {  {
     [self setAlphaValue:0.5];      [self setAlphaValue:0.5];

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>