X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/079b33aed3d1c849f1f46022040813d6394100f2..490cbda59abb52af3c07957ebc50f337799d6bf3:/ITTransientStatusWindow.h?ds=sidebyside diff --git a/ITTransientStatusWindow.h b/ITTransientStatusWindow.h old mode 100755 new mode 100644 index 90d74c6..da06c5c --- a/ITTransientStatusWindow.h +++ b/ITTransientStatusWindow.h @@ -1,77 +1,74 @@ /* * ITKit - * ITTransientStatusWindow - * NSWindow subclass for quick display of status information. - * Similar to volume/brightness/eject bezel key windows. + * ITTransientStatusWindow.h * - * Original Author : Matt Judy - * Responsibility : Matt Judy - * Responsibility : Joseph Spiros - * Contributor : Kent Sutherland + * NSWindow subclass for quick display of status information, similar to + * volume/brightness/eject bezel key windows. * - * Copyright (c) 2002 - 2003 iThink Software. - * All Rights Reserved + * Copyright (c) 2005 by iThink Software. + * All Rights Reserved. + * + * $Id$ * */ - #import -#import "ITWindowPositioning.h" -#import "ITWindowEffect.h" - -#define DEFAULT_EXIT_DELAY 3.0 +#import +#import +#define DEFAULT_EXIT_DELAY 3.0 @class ITTextField; @class ITGrayRoundedView; -@class ITWindowEffect; - typedef enum { - ITTransientStatusWindowExitOnCommand, - ITTransientStatusWindowExitAfterDelay, + ITTransientStatusWindowExitOnCommand, + ITTransientStatusWindowExitAfterDelay } ITTransientStatusWindowExitMode; - typedef enum { - ITTransientStatusWindowNoBackground, - ITTransientStatusWindowRounded, - ITTransientStatusWindowSquare, - ITTransientStatusWindowMetal, - ITTransientStatusWindowMetalUtility, - ITTransientStatusWindowAquaUtility + ITTransientStatusWindowNoBackground, + ITTransientStatusWindowRounded, + ITTransientStatusWindowSquare, + ITTransientStatusWindowMetal, + ITTransientStatusWindowMetalUtility, + ITTransientStatusWindowAquaUtility } ITTransientStatusWindowBackgroundType; - -@interface ITTransientStatusWindow : NSWindow { - - ITWindowVisibilityState _visibilityState; - ITTransientStatusWindowExitMode _exitMode; - float _exitDelay; - ITTransientStatusWindowBackgroundType _backgroundType; - ITWindowEffect *_entryEffect; - ITWindowEffect *_exitEffect; - ITVerticalWindowPosition _verticalPosition; - ITHorizontalWindowPosition _horizontalPosition; - float _screenPadding; - int _screenNumber; - - BOOL _reallyIgnoresEvents; - - NSTimer *_delayTimer; - -// NSView *_contentSubView; +typedef enum { + ITTransientStatusWindowRegular, + ITTransientStatusWindowSmall, + ITTransientStatusWindowMini +} ITTransientStatusWindowSizing; + +@interface ITTransientStatusWindow : NSWindow { + ITWindowVisibilityState _visibilityState; + ITTransientStatusWindowExitMode _exitMode; + float _exitDelay; + ITTransientStatusWindowBackgroundType _backgroundType; + ITWindowEffect *_entryEffect; + ITWindowEffect *_exitEffect; + double _effectProgress; + ITVerticalWindowPosition _verticalPosition; + ITHorizontalWindowPosition _horizontalPosition; + ITTransientStatusWindowSizing _sizing; + float _screenPadding; + NSScreen *_screen; + BOOL _reallyIgnoresEvents; + NSTimer *_exitTimer; + NSView *_contentSubView; } -+ (id)sharedWindow; ++ (ITTransientStatusWindow *)sharedWindow; -- (id)initWithContentView:(NSView *)contentView - exitMode:(ITTransientStatusWindowExitMode)exitMode - backgroundType:(ITTransientStatusWindowBackgroundType)backgroundType; +- (id)initWithContentView:(NSView *)contentView exitMode:(ITTransientStatusWindowExitMode)exitMode backgroundType:(ITTransientStatusWindowBackgroundType)backgroundType; - (void)appear:(id)sender; - (void)vanish:(id)sender; +- (void)setSizing:(ITTransientStatusWindowSizing)newSizing; +- (ITTransientStatusWindowSizing)sizing; + - (ITWindowVisibilityState)visibilityState; - (void)setVisibilityState:(ITWindowVisibilityState)newState; @@ -84,11 +81,8 @@ typedef enum { - (ITTransientStatusWindowBackgroundType)backgroundType; - (void)setBackgroundType:(ITTransientStatusWindowBackgroundType)newType; -- (ITVerticalWindowPosition)verticalPosition; -- (void)setVerticalPosition:(ITVerticalWindowPosition)newPosition; - -- (ITHorizontalWindowPosition)horizontalPosition; -- (void)setHorizontalPosition:(ITHorizontalWindowPosition)newPosition; +- (float)effectProgress; +- (void)setEffectProgress:(float)newProgress; - (ITWindowEffect *)entryEffect; - (void)setEntryEffect:(ITWindowEffect *)newEffect; @@ -96,5 +90,4 @@ typedef enum { - (ITWindowEffect *)exitEffect; - (void)setExitEffect:(ITWindowEffect *)newEffect; - -@end +@end \ No newline at end of file