Bumped to version 1.7.2. First freeware release.
[MenuTunes.git] / StatusWindowController.m
index 437487b..2e4593e 100755 (executable)
@@ -199,6 +199,25 @@ static StatusWindowController *sharedController;
        [text release];
 }
 
+- (void)showAlbumArtWindowWithImage:(NSImage *)image
+{
+       if (image) {
+               _currentType = StatusWindowAlbumArtType;
+               [_window setImage:[NSImage imageNamed:@"Library"]];
+               [_window buildImageWindowWithImage:image];
+               [_window appear:self];
+       }
+}
+
+- (void)showAlbumArtWindowWithErrorText:(NSString *)string
+{
+       if (string && [string length] > 0) {
+               _currentType = StatusWindowAlbumArtType;
+               [_window buildTextWindowWithString:string];
+               [_window appear:self];
+       }
+}
+
 - (void)showUpcomingSongsWindowWithTitles:(NSArray *)titleStrings
 {
 //  NSString *bull = [NSString stringWithUTF8String:"‣ "];
@@ -290,25 +309,6 @@ static StatusWindowController *sharedController;
     [_window setLocked:YES];
 }
 
-
-- (void)showRegistrationQueryWindow
-{
-    NSString *message = NSLocalizedString(@"trialexpired_msg", @"Your 7-day unlimited trial period has elapsed.\nYou must register to continue using MenuTunes.");
-
-    [_window setImage:[NSImage imageNamed:@"Register"]];
-    [_window setSizing:(ITTransientStatusWindowSizing)[df integerForKey:@"statusWindowSizing"]];
-    [_window buildDialogWindowWithMessage:message
-                            defaultButton:NSLocalizedString(@"registernow", @"Register Now")
-                          alternateButton:NSLocalizedString(@"quitmenutunes", @"Quit MenuTunes")
-                                   target:[MainController sharedController]
-                            defaultAction:@selector(registerNowOK)
-                          alternateAction:@selector(registerNowCancel)];
-
-       _currentType = StatusWindowRegistrationType;
-    [_window appear:self];
-    [_window setLocked:YES];
-}
-
 - (void)showReconnectQueryWindow
 {
     NSString *message = NSLocalizedString(@"sharedplayeravailable_msg", @"The selected shared player is available again.\nWould you like to reconnect to it?");