Hooked up the setup query window
authorMatthew Judy <mjudy@ithinksw.com>
Wed, 1 Oct 2003 17:36:24 +0000 (17:36 +0000)
committerMatthew Judy <mjudy@ithinksw.com>
Wed, 1 Oct 2003 17:36:24 +0000 (17:36 +0000)
StatusWindow.m
StatusWindowController.h
StatusWindowController.m
libValidate.a

index aa78cf1..ca229ee 100755 (executable)
 //      Make the buttons, set the titles, and size them to fit their titles
         okButton     = [[ITButton alloc] initWithFrame:NSMakeRect(0, 0, 300, 24)];
         cancelButton = [[ITButton alloc] initWithFrame:NSMakeRect(0, 0, 300, 24)];
+        [okButton     setTarget:target];
+        [cancelButton setTarget:target];
+        [okButton     setAction:okAction];
+        [cancelButton setAction:alternateAction];
         [okButton     setBezelStyle:ITGrayRoundedBezelStyle];
         [cancelButton setBezelStyle:ITGrayRoundedBezelStyle];
         [okButton     setAlignment:NSRightTextAlignment];
                                            24.0)];
         [[self contentView] addSubview:okButton];
         [[self contentView] addSubview:cancelButton];
-        NSLog(@"%@", [[self contentView] description]);
 
         [self setIgnoresMouseEvents:NO];
   
index 01f36f3..a6633a8 100755 (executable)
@@ -40,6 +40,7 @@ typedef enum {
 - (void)showShuffleWindow:(BOOL)shuffle;
 - (void)showRepeatWindowWithMode:(StatusWindowRepeatMode)mode;
 - (void)showSetupQueryWindow;
+- (void)showRegistrationQueryWindow;
 
 - (void)showSongInfoWindowWithSource:(ITMTRemotePlayerSource)source
                                title:            (NSString *)title
index e8b1eef..10d6eee 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 = @"xxjghsdkfj\nHAHA";
+
+    [_window setImage:[NSImage imageNamed:@"Register"]];
+    [_window buildDialogWindowWithMessage:message
+                            defaultButton:@"Register Now"
+                          alternateButton:@"Quit MenuPrefs"
+                                   target:[MainController sharedController]
+                            defaultAction:@selector(registerNowOK)
+                          alternateAction:@selector(registerNowCancel)];
+
+    [_window appear:self];
+    [_window setLocked:YES];
+}
+
+
 @end
\ No newline at end of file
index 5834778..f06af69 100755 (executable)
Binary files a/libValidate.a and b/libValidate.a differ