X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/08f7c7656d8938806db994a646bb6e2f1a7783a7..079b33aed3d1c849f1f46022040813d6394100f2:/Showcase/Controller.m diff --git a/Showcase/Controller.m b/Showcase/Controller.m index d7808c7..1a9eab2 100755 --- a/Showcase/Controller.m +++ b/Showcase/Controller.m @@ -1,6 +1,7 @@ #import "Controller.h" #import "ITTransientStatusWindow.h" #import "ITTextField.h" +#import "ITPivotWindowEffect.h" #define SW_PAD 24.0 #define SW_SPACE 24.0 @@ -198,38 +199,45 @@ [[statusWindow contentView] addSubview:textField]; [[statusWindow contentView] setNeedsDisplay:YES]; + + [statusWindow setEntryEffect:[[ITPivotWindowEffect alloc] initWithWindow:statusWindow]]; + [statusWindow setExitEffect:[[ITPivotWindowEffect alloc] initWithWindow:statusWindow]]; } - (IBAction)showStatusWindow:(id)sender { -// [[statusWindow contentView] setNeedsDisplay:YES]; + [[statusWindow contentView] setNeedsDisplay:YES]; +/* [statusWindow setFrame:NSMakeRect( (0.0 - NSWidth([statusWindow frame])), SW_BORDER, NSWidth([statusWindow frame]), NSHeight([statusWindow frame]) ) display:YES]; - [statusWindow orderFront:self]; +*/ + [statusWindow appear:self]; +/* [statusWindow setFrame:NSMakeRect( SW_BORDER, SW_BORDER, NSWidth([statusWindow frame]), NSHeight([statusWindow frame]) ) display:YES animate:YES]; +*/ } - (IBAction)hideStatusWindow:(id)sender { - [statusWindow orderOut:self]; + [statusWindow vanish:self]; } - (IBAction)setRotation:(id)sender { - [statusWindow setRotation:([sender floatValue] * (pi / 180))]; + NSLog(@"no longer supported"); } /*************************************************************************/ #pragma mark - -#pragma mark ITTransientStatusWindow SUPPORT +#pragma mark ITTabView SUPPORT /*************************************************************************/ - (IBAction)toggleTabDragging:(id)sender