Annotation of chimera/SplashScreenWindow.h, revision 1.2

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

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