File:  [mozdev] / chimera / SplashScreenWindow.h
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Thu Apr 18 15:40:04 2002 UTC (18 years, 1 month ago) by pinkerton
Branches: MAIN
CVS tags: HEAD
Remove the fade-in code. So gratuitous.

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

#undef DARWIN
#import <Cocoa/Cocoa.h>

@interface SplashScreenWindow : NSWindow {
    NSImage        *_splashImage;
    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 withStatusRect:(NSRect)statusRect;

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


@end

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