#import "Controller.h"
#import "ITTransientStatusWindow.h"
#import "ITTextField.h"
+#import "ITPivotWindowEffect.h"
#define SW_PAD 24.0
#define SW_SPACE 24.0
{
[self createStatusItem];
[testTextField setCastsShadow:YES];
+ [tabView setAllowsDragging:YES];
statusWindow = [ITTransientStatusWindow sharedWindow];
// [tabView setAllowsDragging:YES];
}
[[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 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 -