Fixing the effects so they work on multiple monitors where the screen
[ITKit.git] / ITTransientStatusWindow.h
index 9fbd1fc..c93f0a6 100755 (executable)
@@ -4,10 +4,10 @@
  *    NSWindow subclass for quick display of status information.
  *    Similar to volume/brightness/eject bezel key windows.
  *
- *  Original Author : Matt Judy <mjudy@ithinksw.com>
- *   Responsibility : Matt Judy <mjudy@ithinksw.com>
+ *  Original Author : Matthew Judy <mjudy@ithinksw.com>
+ *   Responsibility : Matthew Judy <mjudy@ithinksw.com>
  *   Responsibility : Joseph Spiros <joseph.spiros@ithinksw.com>
- *      Contributor : Kent Sutherland <joseph.spiros@ithinksw.com>
+ *      Contributor : Kent Sutherland <kent.sutherland@ithinksw.com>
  *
  *  Copyright (c) 2002 - 2003 iThink Software.
  *  All Rights Reserved
@@ -42,6 +42,11 @@ typedef enum {
     ITTransientStatusWindowAquaUtility
 } ITTransientStatusWindowBackgroundType;
 
+typedef enum {
+    ITTransientStatusWindowRegular,
+    ITTransientStatusWindowSmall,
+    ITTransientStatusWindowMini
+} ITTransientStatusWindowSizing;
 
 @interface ITTransientStatusWindow : NSWindow <ITWindowPositioning , ITWindowMotility> {
 
@@ -54,14 +59,16 @@ typedef enum {
     double                                 _effectProgress;
     ITVerticalWindowPosition               _verticalPosition;
     ITHorizontalWindowPosition             _horizontalPosition;
+    ITTransientStatusWindowSizing          _sizing;
     float                                  _screenPadding;
-    int                                    _screenNumber;
+//    int                                    _screenNumber;
+       NSScreen *_screen;
 
     BOOL _reallyIgnoresEvents;
     
     NSTimer *_exitTimer;
 
-//  NSView *_contentSubView;           
+    NSView *_contentSubView;           
 }
 
 + (id)sharedWindow;
@@ -73,6 +80,11 @@ typedef enum {
 - (void)appear:(id)sender;
 - (void)vanish:(id)sender;
 
+- (void)setScreen:(NSScreen *)newScreen;
+
+- (void)setSizing:(ITTransientStatusWindowSizing)newSizing;
+- (ITTransientStatusWindowSizing)sizing;
+
 - (ITWindowVisibilityState)visibilityState;
 - (void)setVisibilityState:(ITWindowVisibilityState)newState;