X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/dd9a7dd8dd7d77b949d2548fb763c9b968c69cea..52fa41abc9d043a31d6cc4d8b05bf899beae949d:/Showcase/Controller.m diff --git a/Showcase/Controller.m b/Showcase/Controller.m index ee2a19c..f09bdf7 100755 --- a/Showcase/Controller.m +++ b/Showcase/Controller.m @@ -20,6 +20,7 @@ { [self createStatusItem]; [testTextField setCastsShadow:YES]; + [tabView setAllowsDragging:YES]; statusWindow = [ITTransientStatusWindow sharedWindow]; // [tabView setAllowsDragging:YES]; } @@ -201,19 +202,23 @@ - (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 setFrame:NSMakeRect( SW_BORDER, SW_BORDER, NSWidth([statusWindow frame]), NSHeight([statusWindow frame]) ) display:YES animate:YES]; +*/ } - (IBAction)hideStatusWindow:(id)sender @@ -223,9 +228,43 @@ - (IBAction)setRotation:(id)sender { - [statusWindow setRotation:([sender floatValue] * (pi / 180))]; + [statusWindow setPivot:[sender floatValue]]; +} + +/*************************************************************************/ +#pragma mark - +#pragma mark ITTabView SUPPORT +/*************************************************************************/ + +- (IBAction)toggleTabDragging:(id)sender +{ + if ([sender state] == NSOnState) { + [tabView setAllowsDragging:YES]; + } else { + [tabView setAllowsDragging:NO]; + } } +- (IBAction)toggleCommandDragging:(id)sender +{ + if ([sender state] == NSOnState) { + [tabView setRequiredModifiers:NSCommandKeyMask]; + } else { + [tabView setRequiredModifiers:0]; + } +} + +- (IBAction)toggleControlDragging:(id)sender +{ +} + +- (IBAction)toggleOptionDragging:(id)sender +{ +} + +- (IBAction)toggleShiftDragging:(id)sender +{ +} /*************************************************************************/ #pragma mark -