Implementing Registration checks and final touches.
[MenuTunes.git] / StatusWindowController.m
index e8b1eef..573aac8 100755 (executable)
@@ -1,6 +1,7 @@
 #import "StatusWindowController.h"
 #import "StatusWindow.h"
 #import "PreferencesController.h"
+#import "MainController.h"
 
 #import <ITKit/ITWindowEffect.h>
 #import <ITKit/ITCutWindowEffect.h>
@@ -225,4 +226,21 @@ 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];
+}
+
+
 @end
\ No newline at end of file