Annotation of chimera/SplashScreenWindow.h, revision 1.3

1.1       macserv     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 {
1.3     ! macserv    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;
1.1       macserv    21: }
                     22: 
1.3     ! macserv    23: // This method inits the window and displays it, slightly proud of center,
        !            24: // and at the size of the image it displays.
        !            25: //
1.1       macserv    26: // The splash method should be used in your main controller's init method
1.3     ! macserv    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: //
1.1       macserv    32: // The window will release itself whenever you send it the close message.
1.3     ! macserv    33: -(id)splashImage:(NSImage *)splashImage withFade:(BOOL)shouldFade withStatusRect:(NSRect)statusRect;
1.2       macserv    34: 
1.3     ! macserv    35: -(NSString *)statusText;
1.2       macserv    36: -(void)setStatusText:(NSString *)newText;
1.1       macserv    37: 
                     38: 
                     39: @end

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