Annotation of chimera/SplashScreenWindow.h, revision 1.1

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: 
        !            12: @interface SplashScreenWindow : NSWindow {
        !            13:     NSImage *_splashImage;
        !            14:     BOOL        _fades;
        !            15:     NSTimer *_fadeTimer;
        !            16: }
        !            17: 
        !            18: // The splash method inits the window and displays it, centered, and at the
        !            19: // size of the image it displays.  That image, by default, is obtained by
        !            20: // [NSImage imageNamed:@"splash"] , but you can use the setSplashImage:
        !            21: // method to specify a different one.
        !            22: // The splash method should be used in your main controller's init method
        !            23: // in this fashion:  splashWindow = [[SplashScreenWindow alloc] splash];
        !            24: // The window will release itself whenever you send it the close message.
        !            25: -(id)splash;
        !            26: 
        !            27: // By default, the splash screen will appear and disappear normally.  However, you
        !            28: // can cause the window to fade in when opened and fade out when closed by setting
        !            29: // setFades:YES .  Set this after alloc, but before you call splash .
        !            30: -(BOOL)fades;
        !            31: -(void)setFades:(BOOL)fadeFlag;
        !            32: 
        !            33: // This allows you set the image to something other than [NSImage imageNamed:@"splash"];
        !            34: // Set this after alloc, but before calling splash .
        !            35: -(NSImage *)splashImage;
        !            36: -(void)setSplashImage:(NSImage *)newImage;
        !            37: 
        !            38: -(void)fadeIn;
        !            39: -(void)fadeStepUp:(NSTimer *)aTimer;
        !            40: -(void)fadeOut;
        !            41: -(void)fadeStepDown:(NSTimer *)aTimer;
        !            42: 
        !            43: 
        !            44: 
        !            45: 
        !            46: @end

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