git.ithinksw.org
/
ITKit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed the NSMenu category from NSMenuItem * to id <NSMenuItem>
[ITKit.git]
/
ITWindowEffect.h
diff --git
a/ITWindowEffect.h
b/ITWindowEffect.h
index
907a39a
..
9b6c0bd
100755
(executable)
--- a/
ITWindowEffect.h
+++ b/
ITWindowEffect.h
@@
-3,8
+3,8
@@
* ITWindowEffect
* Protocal and abstract superclass for performing effects on windows.
*
* ITWindowEffect
* Protocal and abstract superclass for performing effects on windows.
*
- * Original Author : Matt Judy <mjudy@ithinksw.com>
- * Responsibility : Matt Judy <mjudy@ithinksw.com>
+ * Original Author : Matt
hew
Judy <mjudy@ithinksw.com>
+ * Responsibility : Matt
hew
Judy <mjudy@ithinksw.com>
*
* Copyright (c) 2002 - 2003 iThink Software.
* All Rights Reserved
*
* Copyright (c) 2002 - 2003 iThink Software.
* All Rights Reserved
@@
-15,20
+15,24
@@
#import <Cocoa/Cocoa.h>
#import "ITWindowPositioning.h"
#import <Cocoa/Cocoa.h>
#import "ITWindowPositioning.h"
+@class ITTransientStatusWindow;
#define EFFECT_FPS 30.0
#define DEFAULT_EFFECT_TIME 0.75
typedef enum {
#define EFFECT_FPS 30.0
#define DEFAULT_EFFECT_TIME 0.75
typedef enum {
- IT
TransientStatus
WindowHiddenState,
- IT
TransientStatus
WindowAppearingState,
- IT
TransientStatus
WindowVisibleState,
- IT
TransientStatus
WindowVanishingState
+ ITWindowHiddenState,
+ ITWindowAppearingState,
+ ITWindowVisibleState,
+ ITWindowVanishingState
} ITWindowVisibilityState;
@protocol ITWindowEffect
} ITWindowVisibilityState;
@protocol ITWindowEffect
++ (NSString *)effectName;
++ (NSDictionary *)supportedPositions;
++ (unsigned int)listOrder;
- (void)performAppear;
- (void)performVanish;
- (void)cancelAppear;
- (void)performAppear;
- (void)performVanish;
- (void)cancelAppear;
@@
-36,22
+40,28
@@
typedef enum {
@end
@end
-@protocol ITWindow
Visib
ility
+@protocol ITWindow
Mot
ility
- (ITWindowVisibilityState)visibilityState;
- (void)setVisibilityState:(ITWindowVisibilityState)newState;
- (ITWindowVisibilityState)visibilityState;
- (void)setVisibilityState:(ITWindowVisibilityState)newState;
+- (float)effectProgress;
+- (void)setEffectProgress:(float)newProgress;
@end
@interface ITWindowEffect : NSObject <ITWindowEffect>
{
@end
@interface ITWindowEffect : NSObject <ITWindowEffect>
{
-
NSWindow
*_window;
+
ITTransientStatusWindow
*_window;
float _effectTime;
float _effectTime;
-
double _effectProgress
;
+
float _effectSpeed
;
ITVerticalWindowPosition _verticalPosition;
ITHorizontalWindowPosition _horizontalPosition;
NSTimer *_effectTimer;
ITVerticalWindowPosition _verticalPosition;
ITHorizontalWindowPosition _horizontalPosition;
NSTimer *_effectTimer;
+ BOOL __idle;
+ BOOL __shouldReleaseWhenIdle;
}
}
++ (NSArray *)effectClasses;
+
// Designated initializer
- (id)initWithWindow:(NSWindow *)window;
// Designated initializer
- (id)initWithWindow:(NSWindow *)window;
@@
-64,4
+74,6
@@
typedef enum {
- (float)effectTime;
- (void)setEffectTime:(float)newTime;
- (float)effectTime;
- (void)setEffectTime:(float)newTime;
+- (void)releaseWhenIdle;
+
@end
@end