X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/fcbc4baf73d5054212eb69f728ef9c303e1c62a5..e350cc5032334a724daffdf6d2016e3653efc825:/StatusWindowController.m?ds=inline diff --git a/StatusWindowController.m b/StatusWindowController.m index 807e89c..649ca9c 100755 --- a/StatusWindowController.m +++ b/StatusWindowController.m @@ -1,49 +1,48 @@ +// +// StatusWindowController.m +// MenuTunes +// +// Created by Matthew L. Judy on Thu Apr 17 2003. +// Copyright (c) 2003 NibFile.com. All rights reserved. +// + #import "StatusWindowController.h" -#import "StatusWindow.h" + @implementation StatusWindowController -- (id)init + +- (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 { - if ( (self = [super init]) ) - { - [NSBundle loadNibNamed:@"StatusWindow" owner:self]; - [statusWindow center]; - } - return self; + } -- (void)setUpcomingSongs:(NSString *)string numSongs:(int)songs +- (void)showUpcomingSongsWithTitles:(NSArray *)titleStrings { - [statusField setStringValue:string]; - [statusWindow setFrame:NSMakeRect(0, 0, 300, 40 + (songs * 17)) display:NO]; - [statusWindow center]; - [statusWindow makeKeyAndOrderFront:nil]; + } -- (void)setTrackInfo:(NSString *)string lines:(int)lines +- (void)showVolumeWindowWithLevel:(int)level { - [statusField setStringValue:string]; - [statusWindow setFrame:NSMakeRect(0, 0, 316, 40 + (lines * 17)) display:NO]; - [statusWindow center]; - [statusWindow makeKeyAndOrderFront:nil]; + } -- (void)fadeWindowOut +- (void)showShuffleWindowWithMode:(MTStatusWindowShuffleMode)mode { - [NSThread detachNewThreadSelector:@selector(fadeOutAux) toTarget:self withObject:nil]; + } -- (void)fadeOutAux +- (void)showLoopWindowWithMode:(MTStatusWindowLoopMode)mode { - NSAutoreleasePool *p00l = [[NSAutoreleasePool alloc] init]; - float i; - for (i = 1.0; i > 0; i -= .003) - { - [statusWindow setAlphaValue:i]; - } - [statusWindow close]; - [p00l release]; + } + + @end