X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/7258eefd9885c903817ec277fe611aff4b0ff5c6..bbb399e28121ac71152cef5fc21e106c4b941cbc:/ITTransientStatusWindow.h diff --git a/ITTransientStatusWindow.h b/ITTransientStatusWindow.h index 52e96d7..39f637e 100755 --- a/ITTransientStatusWindow.h +++ b/ITTransientStatusWindow.h @@ -4,10 +4,10 @@ * NSWindow subclass for quick display of status information. * Similar to volume/brightness/eject bezel key windows. * - * Original Author : Kent Sutherland * Original Author : Matt Judy * Responsibility : Matt Judy * Responsibility : Joseph Spiros + * Contributor : Kent Sutherland * * Copyright (c) 2002 - 2003 iThink Software. * All Rights Reserved @@ -17,7 +17,7 @@ #import #import "ITWindowPositioning.h" - +#import "ITWindowEffect.h" #define DEFAULT_EXIT_DELAY 3.0 @@ -28,17 +28,11 @@ typedef enum { - ITTransientStatusWindowHiddenState, - ITTransientStatusWindowAppearingState, - ITTransientStatusWindowVisibleState, - ITTransientStatusWindowVanishingState -} ITTransientStatusWindowVisibilityState; - -typedef enum { - ITTransientStatusWindowExitOnOrderOut, + ITTransientStatusWindowExitOnCommand, ITTransientStatusWindowExitAfterDelay, } ITTransientStatusWindowExitMode; + typedef enum { ITTransientStatusWindowNoBackground, ITTransientStatusWindowRounded, @@ -48,24 +42,26 @@ typedef enum { ITTransientStatusWindowAquaUtility } ITTransientStatusWindowBackgroundType; -@interface ITTransientStatusWindow : NSWindow { - ITTransientStatusWindowVisibilityState _visibilityState; +@interface ITTransientStatusWindow : NSWindow { + + ITWindowVisibilityState _visibilityState; ITTransientStatusWindowExitMode _exitMode; float _exitDelay; ITTransientStatusWindowBackgroundType _backgroundType; ITWindowEffect *_entryEffect; ITWindowEffect *_exitEffect; + double _effectProgress; ITVerticalWindowPosition _verticalPosition; ITHorizontalWindowPosition _horizontalPosition; float _screenPadding; - int _screenNumber; +// int _screenNumber; BOOL _reallyIgnoresEvents; - NSTimer *_delayTimer; + NSTimer *_exitTimer; -// NSView *_contentSubView; + NSView *_contentSubView; } + (id)sharedWindow; @@ -74,7 +70,11 @@ typedef enum { exitMode:(ITTransientStatusWindowExitMode)exitMode backgroundType:(ITTransientStatusWindowBackgroundType)backgroundType; -- (ITTransientStatusWindowVisibilityState)visibilityState; +- (void)appear:(id)sender; +- (void)vanish:(id)sender; + +- (ITWindowVisibilityState)visibilityState; +- (void)setVisibilityState:(ITWindowVisibilityState)newState; - (ITTransientStatusWindowExitMode)exitMode; - (void)setExitMode:(ITTransientStatusWindowExitMode)newMode; @@ -91,6 +91,9 @@ typedef enum { - (ITHorizontalWindowPosition)horizontalPosition; - (void)setHorizontalPosition:(ITHorizontalWindowPosition)newPosition; +- (float)effectProgress; +- (void)setEffectProgress:(float)newProgress; + - (ITWindowEffect *)entryEffect; - (void)setEntryEffect:(ITWindowEffect *)newEffect;