File:  [mozdev] / chimera / SplashScreenWindow.h
Revision 1.5: download - view: text, annotated - select for diffs - revision graph
Sat Apr 20 00:44:56 2002 UTC (18 years, 1 month ago) by macserv
Branches: MAIN
CVS tags: HEAD
A bunch of tweaks here... no changes in functionality.  Updated trilicense header on all files that were missing it.  Fixed initialization code syntax errors all over the place.  Put back fade code, and switched fading off for now...

//  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;
    id			    _fadeThreadLock;
    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;


FreeBSD-CVSweb <>