Changes for MT
[ITKit.git] / Showcase / Controller.m
index ee2a19c..f09bdf7 100755 (executable)
@@ -20,6 +20,7 @@
 {
     [self createStatusItem];
     [testTextField setCastsShadow:YES];
+    [tabView setAllowsDragging:YES];
     statusWindow = [ITTransientStatusWindow sharedWindow];
 //  [tabView setAllowsDragging:YES];
 }
 
 - (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
 
 - (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 -