From b33c30cfe726454a1ddbbbdf5f425021b060682c Mon Sep 17 00:00:00 2001 From: Matthew Judy Date: Wed, 1 Oct 2003 17:36:24 +0000 Subject: [PATCH] Hooked up the setup query window --- StatusWindow.m | 5 ++++- StatusWindowController.h | 1 + StatusWindowController.m | 18 ++++++++++++++++++ libValidate.a | Bin 8032 -> 8032 bytes 4 files changed, 23 insertions(+), 1 deletion(-) diff --git a/StatusWindow.m b/StatusWindow.m index aa78cf1..ca229ee 100755 --- a/StatusWindow.m +++ b/StatusWindow.m @@ -292,6 +292,10 @@ // 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]; @@ -359,7 +363,6 @@ 24.0)]; [[self contentView] addSubview:okButton]; [[self contentView] addSubview:cancelButton]; - NSLog(@"%@", [[self contentView] description]); [self setIgnoresMouseEvents:NO]; diff --git a/StatusWindowController.h b/StatusWindowController.h index 01f36f3..a6633a8 100755 --- a/StatusWindowController.h +++ b/StatusWindowController.h @@ -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 diff --git a/StatusWindowController.m b/StatusWindowController.m index e8b1eef..10d6eee 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 @@ -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 diff --git a/libValidate.a b/libValidate.a index 58347788810a00b57edbe9977d2ecf49c599d9fc..f06af690d8d18f6ae26ec0ef1ea351f5bdcad968 100755 GIT binary patch delta 16 XcmaE0_rPv~EUS^FnT63tB|CWlG+YHL delta 16 XcmaE0_rPv~EUTfViMho_B|CWlG+hNO -- 2.20.1