X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/418a547d5daa457e97c3964224af5d703df5a19f..9fe0abc58552c65940750163388179a2966eb59e:/StatusWindowController.h?ds=sidebyside diff --git a/StatusWindowController.h b/StatusWindowController.h index 1b32e4a..9f474b5 100755 --- a/StatusWindowController.h +++ b/StatusWindowController.h @@ -1,12 +1,12 @@ /* * MenuTunes * StatusWindowController - * ... + * Abstraction layer between MainController and StatusWindow * - * Original Author : Kent Sutherland - * Responsibility : Kent Sutherland + * Original Author : Matthew Judy + * Responsibility : Matthew Judy * - * Copyright (c) 2002 iThink Software. + * Copyright (c) 2003 iThink Software. * All Rights Reserved * */ @@ -14,14 +14,39 @@ #import + @class StatusWindow; -@interface StatusWindowController : NSObject -{ - IBOutlet NSTextField *statusField; - IBOutlet StatusWindow *statusWindow; + +typedef enum { + MTStatusWindowLoopModeLoopNone, + MTStatusWindowLoopModeLoopOne, + MTStatusWindowLoopModeLoopAll +} MTStatusWindowLoopMode; + +typedef enum { + MTStatusWindowShuffleModeOn, + MTStatusWindowShuffleModeOff +} MTStatusWindowShuffleMode; + + +@interface StatusWindowController : NSObject { + StatusWindow *_window; } -- (void)setUpcomingSongs:(NSString *)string; -- (void)setTrackInfo:(NSString *)string; -- (void)fadeWindowOut; + +- (void)showSongWindowWithTitle:(NSString *)title + album:(NSString *)album + artist:(NSString *)artist + time:(NSString *)time // FLOW: Should probably be NSDate or something. + trackNumber: (int)trackNumber + trackTotal: (int)trackTotal + rating: (int)rating; + +- (void)showUpcomingSongsWithTitles:(NSArray *)titleStrings; + +- (void)showVolumeWindowWithLevel:(int)level; +- (void)showRatingWindowWithLevel:(int)level; +- (void)showShuffleWindowWithMode:(MTStatusWindowShuffleMode)mode; +- (void)showLoopWindowWithMode:(MTStatusWindowLoopMode)mode; + @end