- // Add 4.0 to the final textHeight to accomodate the shadow.
- textHeight += 4.0;
-
- // Set the content height to the greater of the text and image heights.
- contentHeight = ( ( imageHeight > textHeight ) ? imageHeight : textHeight );
-
- // Setup the Window, and remove all its contentview's subviews.
- windowWidth = ( SW_PAD + imageWidth + SW_SPACE + textWidth + SW_PAD );
- windowHeight = ( SW_PAD + contentHeight + SW_PAD );
- [statusWindow setFrame:NSMakeRect(SW_BORDER, SW_BORDER, windowWidth, windowHeight) display:YES];
- [[[statusWindow contentView] subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
-
- // Setup, position, fill, and add the image view to the content view.
- imageRect = NSMakeRect( SW_PAD,
- (SW_PAD + ((contentHeight - imageHeight) / 2)),
- imageWidth,
- imageHeight );
- imageView = [[[NSImageView alloc] initWithFrame:imageRect] autorelease];
- [imageView setImage:image];
- [[statusWindow contentView] addSubview:imageView];
+ if ( [sender indexOfSelectedItem] == 0 ) {
+ [statusWindow setEntryEffect:[[[ITCutWindowEffect alloc] initWithWindow:statusWindow] autorelease]];
+ } else if ( [sender indexOfSelectedItem] == 1 ) {
+ [statusWindow setEntryEffect:[[[ITDissolveWindowEffect alloc] initWithWindow:statusWindow] autorelease]];
+ } else if ( [sender indexOfSelectedItem] == 2 ) {
+ [statusWindow setEntryEffect:[[[ITSlideVerticallyWindowEffect alloc] initWithWindow:statusWindow] autorelease]];
+ } else if ( [sender indexOfSelectedItem] == 3 ) {
+ [statusWindow setEntryEffect:[[[ITSlideHorizontallyWindowEffect alloc] initWithWindow:statusWindow] autorelease]];
+ } else if ( [sender indexOfSelectedItem] == 4 ) {
+ [statusWindow setEntryEffect:[[[ITPivotWindowEffect alloc] initWithWindow:statusWindow] autorelease]];
+ }
+
+ [[statusWindow entryEffect] setEffectTime:[swEntrySpeedSlider floatValue]];
+
+ } else if ( [sender tag] == 3080 ) {
+
+ if ( [sender indexOfSelectedItem] == 0 ) {
+ [statusWindow setExitEffect:[[ITCutWindowEffect alloc] initWithWindow:statusWindow]];
+ } else if ( [sender indexOfSelectedItem] == 1 ) {
+ [statusWindow setExitEffect:[[ITDissolveWindowEffect alloc] initWithWindow:statusWindow]];
+ } else if ( [sender indexOfSelectedItem] == 2 ) {
+ [statusWindow setExitEffect:[[ITSlideVerticallyWindowEffect alloc] initWithWindow:statusWindow]];
+ } else if ( [sender indexOfSelectedItem] == 3 ) {
+ [statusWindow setExitEffect:[[ITSlideHorizontallyWindowEffect alloc] initWithWindow:statusWindow]];
+ } else if ( [sender indexOfSelectedItem] == 4 ) {
+ [statusWindow setExitEffect:[[ITPivotWindowEffect alloc] initWithWindow:statusWindow]];
+ }
+
+ [[statusWindow exitEffect] setEffectTime:[swExitSpeedSlider floatValue]];
+
+ } else if ( [sender tag] == 3090 ) {