Initial hookup of the new positioning into MT. The corner effects work,
[MenuTunes.git] / StatusWindowController.m
index 10d6eee..e28bf71 100755 (executable)
@@ -93,6 +93,14 @@ static StatusWindowController *sharedController;
     [super dealloc];
 }
 
     [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
 - (void)showSongInfoWindowWithSource:(ITMTRemotePlayerSource)source
                                title:            (NSString *)title
                                album:            (NSString *)album
@@ -228,12 +236,12 @@ static StatusWindowController *sharedController;
 
 - (void)showRegistrationQueryWindow
 {
 
 - (void)showRegistrationQueryWindow
 {
-    NSString *message = @"xxjghsdkfj\nHAHA";
+    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"
 
     [_window setImage:[NSImage imageNamed:@"Register"]];
     [_window buildDialogWindowWithMessage:message
                             defaultButton:@"Register Now"
-                          alternateButton:@"Quit MenuPrefs"
+                          alternateButton:@"Quit MenuTunes"
                                    target:[MainController sharedController]
                             defaultAction:@selector(registerNowOK)
                           alternateAction:@selector(registerNowCancel)];
                                    target:[MainController sharedController]
                             defaultAction:@selector(registerNowOK)
                           alternateAction:@selector(registerNowCancel)];
@@ -242,5 +250,20 @@ static StatusWindowController *sharedController;
     [_window setLocked:YES];
 }
 
     [_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
 
 @end
\ No newline at end of file