X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/97a58d16b59657d99b396a9d7e3ef2eadb357fa8..3b5e8f80a471ff88cd39e8c295276beb7c3412ec:/StatusWindowController.m diff --git a/StatusWindowController.m b/StatusWindowController.m index 146c1a8..49cbf89 100755 --- a/StatusWindowController.m +++ b/StatusWindowController.m @@ -85,43 +85,53 @@ [super dealloc]; } -- (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 - source:(ITMTRemotePlayerSource)source +- (void)showSongInfoWindowWithSource:(ITMTRemotePlayerSource)source + title: (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 { [_window setImage:[NSImage imageNamed:@"Library"]]; - [_window setText:title]; + [_window buildTextWindowWithString:title]; [_window appear:self]; } -- (void)showUpcomingSongsWithTitles:(NSArray *)titleStrings +- (void)showUpcomingSongsWindowWithTitles:(NSArray *)titleStrings { } -- (void)showVolumeWindowWithLevel:(int)level +- (void)showVolumeWindowWithLevel:(float)level +{ + [_window setImage:[NSImage imageNamed:@"Volume"]]; + [_window buildMeterWindowWithCharacter:[NSString stringWithUTF8String:"▊"] + count:10 + active:( ceil(level * 100) / 10 )]; + [_window appear:self]; +} + +- (void)showRatingWindowWithRating:(int)rating { } -- (void)showRatingWindowWithLevel:(int)level +- (void)showShuffleWindow:(BOOL)shuffle { } -- (void)showShuffleWindowWithMode:(MTStatusWindowShuffleMode)mode +- (void)showRepeatWindowWithMode:(StatusWindowRepeatMode)mode { } -- (void)showLoopWindowWithMode:(MTStatusWindowLoopMode)mode +- (void)showSetupQueryWindow { } + @end \ No newline at end of file