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

//
//  SplashScreenWindow.h
//  Chimera
//
//  Created by Matt L.  Judy on Sat Mar 09 2002.
//  Copyright (c) 2001 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface SplashScreenWindow : NSWindow {
    NSImage        *_splashImage;
    BOOL	        _fades;
    BOOL           __didFadeIn;
    int             _fadeIndex;
    NSTimeInterval  _fadeDelay;
    NSTimer        *_fadeTimer; //Eliminate!!
    id			    _fadeThreadLock;
//    float		   __fadeAlpha;
    NSTextField    *_statusField;
}

// This method inits the window and displays it, slightly proud of center,
// and at the size of the image it displays.
//
// The splash method should be used in your main controller's init method
// in this fashion:  splashWindow = [[SplashScreenWindow alloc] splashImage:nil withFade:NO withStatusRect:someRect];
//
// Passing nil to splashImage will attempt to load [NSImage imageNamed:@"splash"] instead.
// If that fails, the app icon will be displayed.
//
// The window will release itself whenever you send it the close message.
-(id)splashImage:(NSImage *)splashImage withFade:(BOOL)shouldFade withStatusRect:(NSRect)statusRect;

-(NSString *)statusText;
-(void)setStatusText:(NSString *)newText;


@end

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