Fixing header imports.
[ITKit.git] / ITWindowEffect.h
old mode 100755 (executable)
new mode 100644 (file)
index 71852e2..8dcd15d
@@ -1,60 +1,65 @@
 /*
  *     ITKit
 /*
  *     ITKit
- *  ITWindowEffect
- *    Protocal and abstract superclass for performing effects on windows.
+ *     ITWindowEffect.h
  *
  *
- *  Original Author : Matt Judy <mjudy@ithinksw.com>
- *   Responsibility : Matt Judy <mjudy@ithinksw.com>
+ *     Protocol and abstract superclass for performing effects on windows.
  *
  *
- *  Copyright (c) 2002 - 2003 iThink Software.
- *  All Rights Reserved
+ *     Copyright (c) 2005 by iThink Software.
+ *     All Rights Reserved.
+ *
+ *     $Id$
  *
  */
 
  *
  */
 
-
 #import <Cocoa/Cocoa.h>
 #import <Cocoa/Cocoa.h>
-#import "ITWindowPositioning.h"
+#import <ITKit/ITWindowPositioning.h>
 
 @class ITTransientStatusWindow;
 
 #define EFFECT_FPS 30.0
 #define DEFAULT_EFFECT_TIME 0.75
 
 
 @class ITTransientStatusWindow;
 
 #define EFFECT_FPS 30.0
 #define DEFAULT_EFFECT_TIME 0.75
 
-
 typedef enum {
 typedef enum {
-    ITTransientStatusWindowHiddenState,
-    ITTransientStatusWindowAppearingState,
-    ITTransientStatusWindowVisibleState,
-    ITTransientStatusWindowVanishingState
+       ITWindowHiddenState,
+       ITWindowAppearingState,
+       ITWindowVisibleState,
+       ITWindowVanishingState
 } ITWindowVisibilityState;
 
 } ITWindowVisibilityState;
 
-
 @protocol ITWindowEffect
 @protocol ITWindowEffect
+
++ (NSString *)effectName;
++ (NSDictionary *)supportedPositions;
++ (unsigned int)listOrder;
 - (void)performAppear;
 - (void)performVanish;
 - (void)cancelAppear;
 - (void)cancelVanish;
 - (void)performAppear;
 - (void)performVanish;
 - (void)cancelAppear;
 - (void)cancelVanish;
-@end
 
 
+@end
 
 @protocol ITWindowMotility
 
 @protocol ITWindowMotility
+
 - (ITWindowVisibilityState)visibilityState;
 - (void)setVisibilityState:(ITWindowVisibilityState)newState;
 - (float)effectProgress;
 - (void)setEffectProgress:(float)newProgress;
 - (ITWindowVisibilityState)visibilityState;
 - (void)setVisibilityState:(ITWindowVisibilityState)newState;
 - (float)effectProgress;
 - (void)setEffectProgress:(float)newProgress;
-@end
 
 
+@end
 
 
-@interface ITWindowEffect : NSObject <ITWindowEffect>
-{
-    ITTransientStatusWindow    *_window;
-    float                       _effectTime;
-    float                       _effectSpeed;
-    ITVerticalWindowPosition    _verticalPosition;
-    ITHorizontalWindowPosition  _horizontalPosition;
-    NSTimer                    *_effectTimer;
+@interface ITWindowEffect : NSObject <ITWindowEffect> {
+       NSWindow <ITWindowPositioning, ITWindowMotility> *_window;
+       float _effectTime;
+       float _effectSpeed;
+       ITVerticalWindowPosition _verticalPosition;
+       ITHorizontalWindowPosition _horizontalPosition;
+       NSTimer *_effectTimer;
+       BOOL __idle;
+       BOOL __shouldReleaseWhenIdle;
 }
 
 }
 
++ (NSArray *)effectClasses;
+
 // Designated initializer
 - (id)initWithWindow:(NSWindow *)window;
 
 // Designated initializer
 - (id)initWithWindow:(NSWindow *)window;
 
@@ -67,4 +72,6 @@ typedef enum {
 - (float)effectTime;
 - (void)setEffectTime:(float)newTime;
 
 - (float)effectTime;
 - (void)setEffectTime:(float)newTime;
 
-@end
+- (void)releaseWhenIdle;
+
+@end
\ No newline at end of file