X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/875d1362ed16bfa0f85054fc7df31a4f08b9b29f..0b83e13fdd374e0ac55397663cedb94bf8df197f:/StatusWindowController.m?ds=sidebyside diff --git a/StatusWindowController.m b/StatusWindowController.m index 573aac8..9e8ffff 100755 --- a/StatusWindowController.m +++ b/StatusWindowController.m @@ -3,6 +3,7 @@ #import "PreferencesController.h" #import "MainController.h" +#import #import #import #import @@ -52,6 +53,9 @@ static StatusWindowController *sharedController; [_window setExitMode:ITTransientStatusWindowExitAfterDelay]; [_window setExitDelay:(exitDelay ? exitDelay : 4.0)]; + [_window setHorizontalPosition:[df integerForKey:@"statusWindowHorizontalPosition"]]; + [_window setVerticalPosition:[df integerForKey:@"statusWindowVerticalPosition"]]; + if ( entryTag == 2101 ) { entryEffect = [[[ITDissolveWindowEffect alloc] initWithWindow:_window] autorelease]; } else if ( entryTag == 2102 ) { @@ -82,6 +86,12 @@ static StatusWindowController *sharedController; [[_window entryEffect] setEffectTime:(entrySpeed ? entrySpeed : 0.8)]; [[_window exitEffect] setEffectTime:(exitSpeed ? exitSpeed : 0.8)]; + + [(ITTSWBackgroundView *)[_window contentView]setBackgroundMode: + (ITTSWBackgroundMode)[df integerForKey:@"statusWindowBackgroundMode"]]; + + [(ITTSWBackgroundView *)[_window contentView]setBackgroundColor: + (NSColor *)[NSUnarchiver unarchiveObjectWithData:[df dataForKey:@"statusWindowBackgroundColor"]]]; } return self; @@ -242,5 +252,20 @@ static StatusWindowController *sharedController; [_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