File:  [mozdev] / chimera / SplashScreenWindow.h
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Fri Apr 5 00:28:47 2002 UTC (18 years, 1 month ago) by macserv
Branches: MAIN
CVS tags: HEAD
Splash fade in effect

    1: //
    2: //  SplashScreenWindow.h
    3: //  Chimera
    4: //
    5: //  Created by Matt L.  Judy on Sat Mar 09 2002.
    6: //  Copyright (c) 2001 __MyCompanyName__. All rights reserved.
    7: //
    8: 
    9: #import <Cocoa/Cocoa.h>
   10: 
   11: @interface SplashScreenWindow : NSWindow {
   12:     NSImage        *_splashImage;
   13:     BOOL	        _fades;
   14:     BOOL           __didFadeIn;
   15:     int             _fadeIndex;
   16:     NSTimeInterval  _fadeDelay;
   17:     NSTimer        *_fadeTimer; //Eliminate!!
   18:     id			    _fadeThreadLock;
   19: //    float		   __fadeAlpha;
   20:     NSTextField    *_statusField;
   21: }
   22: 
   23: // This method inits the window and displays it, slightly proud of center,
   24: // and at the size of the image it displays.
   25: //
   26: // The splash method should be used in your main controller's init method
   27: // in this fashion:  splashWindow = [[SplashScreenWindow alloc] splashImage:nil withFade:NO withStatusRect:someRect];
   28: //
   29: // Passing nil to splashImage will attempt to load [NSImage imageNamed:@"splash"] instead.
   30: // If that fails, the app icon will be displayed.
   31: //
   32: // The window will release itself whenever you send it the close message.
   33: -(id)splashImage:(NSImage *)splashImage withFade:(BOOL)shouldFade withStatusRect:(NSRect)statusRect;
   34: 
   35: -(NSString *)statusText;
   36: -(void)setStatusText:(NSString *)newText;
   37: 
   38: 
   39: @end

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