X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/d8546c318b2dc71d68753ca0c0abe89f07c166b3..refs/heads/master:/StatusWindow.h diff --git a/StatusWindow.h b/StatusWindow.h index c956be7..6fb8602 100755 --- a/StatusWindow.h +++ b/StatusWindow.h @@ -1,39 +1,30 @@ /* * MenuTunes - * StatusWindow - * ITTransientStatusWindow subclass for MenuTunes + * StatusWindow.h * - * Original Author : Matthew Judy - * Responsibility : Matthew Judy + * ITTransientStatusWindow subclass for MenuTunes. * - * Copyright (c) 2003 iThink Software. - * All Rights Reserved + * Copyright (c) 2003 iThink Software * */ - #import #import - -typedef enum _StatusWindowSizing { - StatusWindowRegular, - StatusWindowSmall, - StatusWindowMini -} StatusWindowSizing; - +#define SMALL_DIVISOR 1.33333 +#define MINI_DIVISOR 1.66667 @interface StatusWindow : ITTransientStatusWindow { NSImage *_image; BOOL _locked; - StatusWindowSizing _sizing; + NSTextField *_textField; } - (void)setImage:(NSImage *)newImage; - (void)setLocked:(BOOL)flag; -- (void)setSizing:(StatusWindowSizing)newSizing; -- (void)buildTextWindowWithString:(NSString *)text; +- (void)buildImageWindowWithImage:(NSImage *)image; +- (void)buildTextWindowWithString:(id)text; - (void)buildMeterWindowWithCharacter:(NSString *)character size:(float)size count:(int)count @@ -44,5 +35,6 @@ typedef enum _StatusWindowSizing { target:(id)target defaultAction:(SEL)okAction alternateAction:(SEL)alternateAction; - + +- (void)updateTime:(NSString *)time range:(NSRange)range; @end