git.ithinksw.org
/
ITKit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Positioning Fixes. The window might still do some weirdness if you change its positi...
[ITKit.git]
/
ITTransientStatusWindow.m
diff --git
a/ITTransientStatusWindow.m
b/ITTransientStatusWindow.m
index
bae7b53
..
4f03f53
100755
(executable)
--- a/
ITTransientStatusWindow.m
+++ b/
ITTransientStatusWindow.m
@@
-1,9
+1,9
@@
#import "ITTransientStatusWindow.h"
#import "ITWindowEffect.h"
#import "ITTransientStatusWindow.h"
#import "ITWindowEffect.h"
-#import <
CoreGraphics/CoreGraphic
s.h>
+#import <
ApplicationServices/ApplicationService
s.h>
#import "ITCoreGraphicsHacks.h"
#import "ITTextField.h"
#import "ITCoreGraphicsHacks.h"
#import "ITTextField.h"
-#import "IT
GrayRounde
dView.h"
+#import "IT
TSWBackgroun
dView.h"
#define EFFECT_FPS 30.0
#define EFFECT_FPS 30.0
@@
-81,7
+81,7
@@
static ITTransientStatusWindow *staticWindow = nil;
_verticalPosition = ITWindowPositionBottom;
_horizontalPosition = ITWindowPositionLeft;
_screenPadding = 32.0;
_verticalPosition = ITWindowPositionBottom;
_horizontalPosition = ITWindowPositionLeft;
_screenPadding = 32.0;
- _screenNumber = 0;
+
//
_screenNumber = 0;
_entryEffect = nil;
_exitEffect = nil;
_reallyIgnoresEvents = YES;
_entryEffect = nil;
_exitEffect = nil;
_reallyIgnoresEvents = YES;
@@
-126,7
+126,6
@@
static ITTransientStatusWindow *staticWindow = nil;
_reallyIgnoresEvents = flag;
}
_reallyIgnoresEvents = flag;
}
-
/*
- (id)contentView
/*
- (id)contentView
@@
-195,6
+194,8
@@
static ITTransientStatusWindow *staticWindow = nil;
if ( _visibilityState == ITWindowVisibleState ) {
[self startVanishTimer];
if ( _visibilityState == ITWindowVisibleState ) {
[self startVanishTimer];
+ } else if ( (_visibilityState == ITWindowVanishingState) || (_visibilityState == ITWindowHiddenState) ) {
+ [self stopVanishTimer];
}
}
}
}
@@
-279,7
+280,7
@@
static ITTransientStatusWindow *staticWindow = nil;
_screenPadding = newPadding;
}
_screenPadding = newPadding;
}
-- (int)screenNumber
+
/*
- (int)screenNumber
{
return _screenNumber;
}
{
return _screenNumber;
}
@@
-287,7
+288,7
@@
static ITTransientStatusWindow *staticWindow = nil;
- (void)setScreenNumber:(int)newNumber
{
_screenNumber = newNumber;
- (void)setScreenNumber:(int)newNumber
{
_screenNumber = newNumber;
-}
+}
*/
- (ITWindowEffect *)entryEffect
{
- (ITWindowEffect *)entryEffect
{
@@
-320,7
+321,7
@@
static ITTransientStatusWindow *staticWindow = nil;
- (void)rebuildWindow;
{
if ( _backgroundType == ITTransientStatusWindowRounded ) {
- (void)rebuildWindow;
{
if ( _backgroundType == ITTransientStatusWindowRounded ) {
- IT
GrayRoundedView *roundedView = [[[ITGrayRounde
dView alloc] initWithFrame:[self frame]] autorelease];
+ IT
TSWBackgroundView *roundedView = [[[ITTSWBackgroun
dView alloc] initWithFrame:[self frame]] autorelease];
[self setBackgroundColor:[NSColor clearColor]];
[self setHasShadow:NO];
[self setBackgroundColor:[NSColor clearColor]];
[self setHasShadow:NO];