From: Matthew Judy Date: Wed, 1 Oct 2003 17:36:24 +0000 (+0000) Subject: Hooked up the setup query window X-Git-Tag: v1.0~22 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/b33c30cfe726454a1ddbbbdf5f425021b060682c Hooked up the setup query window --- 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 5834778..f06af69 100755 Binary files a/libValidate.a and b/libValidate.a differ