From 6927398d4cafaae8c6977280433be86431272986 Mon Sep 17 00:00:00 2001 From: Matthew Judy Date: Sun, 23 Nov 2003 15:08:31 +0000 Subject: [PATCH] Checking in improvements to the effect availability heuristic. --- ITCutWindowEffect.m | 5 +++++ ITDissolveWindowEffect.m | 5 +++++ ITPivotWindowEffect.m | 6 ++++++ ITSlideHorizontallyWindowEffect.m | 6 ++++++ ITSlideVerticallyWindowEffect.m | 6 ++++++ ITWindowEffect.h | 1 + ITWindowEffect.m | 14 ++++++++++---- 7 files changed, 39 insertions(+), 4 deletions(-) diff --git a/ITCutWindowEffect.m b/ITCutWindowEffect.m index 2340dbf..a33bac3 100755 --- a/ITCutWindowEffect.m +++ b/ITCutWindowEffect.m @@ -27,6 +27,11 @@ [NSNumber numberWithBool:YES], @"Right", nil] , @"Bottom" , nil]; } ++ (unsigned int)listOrder +{ + return 100; +} + /*************************************************************************/ #pragma mark - diff --git a/ITDissolveWindowEffect.m b/ITDissolveWindowEffect.m index 180f80e..6e5011a 100755 --- a/ITDissolveWindowEffect.m +++ b/ITDissolveWindowEffect.m @@ -37,6 +37,11 @@ [NSNumber numberWithBool:YES], @"Right", nil] , @"Bottom" , nil]; } ++ (unsigned int)listOrder +{ + return 200; +} + /*************************************************************************/ #pragma mark - diff --git a/ITPivotWindowEffect.m b/ITPivotWindowEffect.m index bcf4f54..b5fe7c9 100755 --- a/ITPivotWindowEffect.m +++ b/ITPivotWindowEffect.m @@ -40,6 +40,12 @@ } ++ (unsigned int)listOrder +{ + return 500; +} + + /*************************************************************************/ #pragma mark - #pragma mark APPEAR METHODS diff --git a/ITSlideHorizontallyWindowEffect.m b/ITSlideHorizontallyWindowEffect.m index 26f8db7..e1b3066 100755 --- a/ITSlideHorizontallyWindowEffect.m +++ b/ITSlideHorizontallyWindowEffect.m @@ -40,6 +40,12 @@ } ++ (unsigned int)listOrder +{ + return 400; +} + + /*************************************************************************/ #pragma mark - #pragma mark APPEAR METHODS diff --git a/ITSlideVerticallyWindowEffect.m b/ITSlideVerticallyWindowEffect.m index d930373..6f2f47a 100755 --- a/ITSlideVerticallyWindowEffect.m +++ b/ITSlideVerticallyWindowEffect.m @@ -40,6 +40,12 @@ } ++ (unsigned int)listOrder +{ + return 300; +} + + /*************************************************************************/ #pragma mark - #pragma mark APPEAR METHODS diff --git a/ITWindowEffect.h b/ITWindowEffect.h index 23fe4ad..8663331 100755 --- a/ITWindowEffect.h +++ b/ITWindowEffect.h @@ -32,6 +32,7 @@ typedef enum { @protocol ITWindowEffect + (NSString *)effectName; + (NSDictionary *)supportedPositions; ++ (unsigned int)listOrder; - (void)performAppear; - (void)performVanish; - (void)cancelAppear; diff --git a/ITWindowEffect.m b/ITWindowEffect.m index 1e2e750..5745bd7 100755 --- a/ITWindowEffect.m +++ b/ITWindowEffect.m @@ -96,24 +96,30 @@ [NSNumber numberWithBool:NO], @"Right", nil] , @"Bottom" , nil]; } ++ (unsigned int)listOrder +{ + NSLog(@"ITWindowEffect does not implement +listOrder."); + return 0; +} + - (void)performAppear { - NSLog(@"ITWindowEffect does not implement performAppear."); + NSLog(@"ITWindowEffect does not implement -performAppear."); } - (void)performVanish { - NSLog(@"ITWindowEffect does not implement performVanish."); + NSLog(@"ITWindowEffect does not implement -performVanish."); } - (void)cancelAppear { - NSLog(@"ITWindowEffect does not implement cancelAppear."); + NSLog(@"ITWindowEffect does not implement -cancelAppear."); } - (void)cancelVanish { - NSLog(@"ITWindowEffect does not implement cancelVanish."); + NSLog(@"ITWindowEffect does not implement -cancelVanish."); } - (void)releaseWhenIdle; -- 2.20.1