X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/3a1a21d1ea3e060f88ca1d24ea881f3ccb97640c..6f6c21caaebee598943084dd66a15f21a7f65cb5:/StatusWindowController.m?ds=inline diff --git a/StatusWindowController.m b/StatusWindowController.m index e8b1eef..e28bf71 100755 --- a/StatusWindowController.m +++ b/StatusWindowController.m @@ -1,6 +1,7 @@ #import "StatusWindowController.h" #import "StatusWindow.h" #import "PreferencesController.h" +#import "MainController.h" #import #import @@ -92,6 +93,14 @@ static StatusWindowController *sharedController; [super dealloc]; } +- (void)readDefaults +{ + ITHorizontalWindowPosition horizontalPosition = [[NSUserDefaults standardUserDefaults] integerForKey:@"statusWindowHorizontalPosition"]; + ITVerticalWindowPosition verticalPosition = [[NSUserDefaults standardUserDefaults] integerForKey:@"statusWindowVerticalPosition"]; + [_window setHorizontalPosition:horizontalPosition]; + [_window setVerticalPosition:verticalPosition]; +} + - (void)showSongInfoWindowWithSource:(ITMTRemotePlayerSource)source title: (NSString *)title album: (NSString *)album @@ -225,4 +234,36 @@ static StatusWindowController *sharedController; } +- (void)showRegistrationQueryWindow +{ + NSString *message = @"Your 7-day unlimited trial period has elapsed.\nYou must register to continue using MenuTunes."; + + [_window setImage:[NSImage imageNamed:@"Register"]]; + [_window buildDialogWindowWithMessage:message + defaultButton:@"Register Now" + alternateButton:@"Quit MenuTunes" + target:[MainController sharedController] + defaultAction:@selector(registerNowOK) + alternateAction:@selector(registerNowCancel)]; + + [_window appear:self]; + [_window setLocked:YES]; +} + +- (void)showReconnectQueryWindow +{ + NSString *message = @"The selected shared player is available again.\nWould you like to reconnect to it?."; + + [_window setImage:[NSImage imageNamed:@"Register"]]; + [_window buildDialogWindowWithMessage:message + defaultButton:@"Reconnect" + alternateButton:@"Ignore" + target:[MainController sharedController] + defaultAction:@selector(reconnect) + alternateAction:@selector(cancelReconnect)]; + + [_window appear:self]; + [_window setLocked:YES]; +} + @end \ No newline at end of file