X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/3a1a21d1ea3e060f88ca1d24ea881f3ccb97640c..4ceec63fa54ca0281b26107bcfc78617c9854d4c:/StatusWindow.h diff --git a/StatusWindow.h b/StatusWindow.h index 8432e05..6fb8602 100755 --- a/StatusWindow.h +++ b/StatusWindow.h @@ -1,41 +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 - -#define SW_PAD 24.00 -#define SW_SPACE 24.00 -#define SW_MINW 211.00 -#define SW_BORDER 32.00 -#define SW_METER_PAD 4.00 -#define SW_BUTTON_PAD_R 30.00 -#define SW_BUTTON_PAD_B 24.00 -#define SW_BUTTON_DIV 12.00 -#define SW_BUTTON_EXTRA_W 8.00 -#define SW_SHADOW_SAT 1.25 +#define SMALL_DIVISOR 1.33333 +#define MINI_DIVISOR 1.66667 @interface StatusWindow : ITTransientStatusWindow { - NSImage *_image; - BOOL _locked; + NSImage *_image; + BOOL _locked; + NSTextField *_textField; } - (void)setImage:(NSImage *)newImage; - (void)setLocked:(BOOL)flag; -- (void)buildTextWindowWithString:(NSString *)text; +- (void)buildImageWindowWithImage:(NSImage *)image; +- (void)buildTextWindowWithString:(id)text; - (void)buildMeterWindowWithCharacter:(NSString *)character size:(float)size count:(int)count @@ -45,6 +34,7 @@ alternateButton:(NSString *)title target:(id)target defaultAction:(SEL)okAction - alternateAction:(SEL)alternateAction; - + alternateAction:(SEL)alternateAction; + +- (void)updateTime:(NSString *)time range:(NSRange)range; @end