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, 2 months ago) by pinkerton
Branches: MAIN
CVS tags: HEAD
Remove the fade-in code. So gratuitous.

    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: #undef DARWIN
   10: #import <Cocoa/Cocoa.h>
   11: 
   12: @interface SplashScreenWindow : NSWindow {
   13:     NSImage        *_splashImage;
   14:     NSTextField    *_statusField;
   15: }
   16: 
   17: // This method inits the window and displays it, slightly proud of center,
   18: // and at the size of the image it displays.
   19: //
   20: // The splash method should be used in your main controller's init method
   21: // in this fashion:  splashWindow = [[SplashScreenWindow alloc] splashImage:nil withFade:NO withStatusRect:someRect];
   22: //
   23: // Passing nil to splashImage will attempt to load [NSImage imageNamed:@"splash"] instead.
   24: // If that fails, the app icon will be displayed.
   25: //
   26: // The window will release itself whenever you send it the close message.
   27: -(id)splashImage:(NSImage *)splashImage withStatusRect:(NSRect)statusRect;
   28: 
   29: -(NSString *)statusText;
   30: -(void)setStatusText:(NSString *)newText;
   31: 
   32: 
   33: @end

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