Skip to content
Browse files

Can now use the close window command with the bezel as key. Also some…

… copyright notices were added.
  • Loading branch information...
1 parent c2e7777 commit ff633a93090d85e546a98f53f21fb50c036215d9 Alexander Rauchfuss committed Jan 16, 2010
View
2 Custom Controls/TSSTFullscreenProgressBar.m
@@ -3,7 +3,7 @@
// SimpleComic
//
// Created by Alexander Rauchfuss on 4/19/08.
-// Copyright 2008 __MyCompanyName__. All rights reserved.
+// Copyright 2008 Dancing Tortoise Software. All rights reserved.
//
#import "TSSTFullscreenProgressBar.h"
View
2 Custom Windows/Bezel/TSSTBezelWindow.h
@@ -3,7 +3,7 @@
// SimpleComic
//
// Created by Alexander Rauchfuss on 5/30/07.
-// Copyright 2007 __MyCompanyName__. All rights reserved.
+// Copyright 2007 Dancing Tortoise Software. All rights reserved.
//
#import <Cocoa/Cocoa.h>
View
25 Custom Windows/Bezel/TSSTBezelWindow.m
@@ -3,7 +3,7 @@
// SimpleComic
//
// Created by Alexander Rauchfuss on 5/30/07.
-// Copyright 2007 __MyCompanyName__. All rights reserved.
+// Copyright 2007 Dancing Tortoise Software. All rights reserved.
//
@@ -12,36 +12,49 @@
#import "TSSTImageUtilities.h"
+
@implementation TSSTBezelWindow
+
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
{
self = [super initWithContentRect: contentRect styleMask: NSBorderlessWindowMask backing: bufferingType defer: flag];
if(self)
{
-// [self setOpaque: YES];
+
}
return self;
}
+
+
- (BOOL)canBecomeKeyWindow
{
return YES;
}
-//- (BOOL)acceptsMouseMovedEvents
-//{
-// return YES;
-//}
+
+- (void)performClose:(id)sender
+{
+ [[self delegate] windowShouldClose: self];
+}
+
+
+- (BOOL)validateMenuItem:(NSMenuItem *)anItem
+{
+ return ([anItem action] == @selector(performClose:)) ? YES : NO;
+}
@end
+
@implementation TSSTBezelView
+
- (void)drawRect:(NSRect)aRect
{
[[NSColor clearColor] set];
View
2 Custom Windows/DTSessionWindow.h
@@ -3,7 +3,7 @@
// SimpleComic
//
// Created by Alexander Rauchfuss on 7/19/09.
-// Copyright 2009 __MyCompanyName__. All rights reserved.
+// Copyright 2009 Dancing Tortoise Software. All rights reserved.
//
#import <Cocoa/Cocoa.h>
View
2 Custom Windows/DTSessionWindow.m
@@ -3,7 +3,7 @@
// SimpleComic
//
// Created by Alexander Rauchfuss on 7/19/09.
-// Copyright 2009 __MyCompanyName__. All rights reserved.
+// Copyright 2009 Dancing Tortoise Software. All rights reserved.
//
#import "DTSessionWindow.h"
View
2 Managed Objects/TSSTManagedGroup.m
@@ -3,7 +3,7 @@
// SimpleComic
//
// Created by Alexander Rauchfuss on 6/2/07.
-// Copyright 2007 __MyCompanyName__. All rights reserved.
+// Copyright 2007 Dancing Tortoise Software. All rights reserved.
View
2 Managed Objects/TSSTManagedSession.h
@@ -3,7 +3,7 @@
// SimpleComic
//
// Created by Alexander Rauchfuss on 2/9/08.
-// Copyright 2008 __MyCompanyName__. All rights reserved.
+// Copyright 2008 Dancing Tortoise Software. All rights reserved.
//
#import <Cocoa/Cocoa.h>
View
2 Managed Objects/TSSTManagedSession.m
@@ -3,7 +3,7 @@
// SimpleComic
//
// Created by Alexander Rauchfuss on 2/9/08.
-// Copyright 2008 __MyCompanyName__. All rights reserved.
+// Copyright 2008 Dancing Tortoise Software. All rights reserved.
//
#import "TSSTManagedSession.h"
View
2 Preferences/TSSTPagePreview.h
@@ -3,7 +3,7 @@
// SimpleComic
//
// Created by Alexander Rauchfuss on 6/7/08.
-// Copyright 2008 __MyCompanyName__. All rights reserved.
+// Copyright 2008 Dancing Tortoise Software. All rights reserved.
//
#import <Cocoa/Cocoa.h>
View
2 Preferences/TSSTPagePreview.m
@@ -3,7 +3,7 @@
// SimpleComic
//
// Created by Alexander Rauchfuss on 6/7/08.
-// Copyright 2008 __MyCompanyName__. All rights reserved.
+// Copyright 2008 Dancing Tortoise Software. All rights reserved.
//
#import "TSSTPagePreview.h"
View
2 Session/DTToolbarItems.h
@@ -3,7 +3,7 @@
// SimpleComic
//
// Created by Alexander Rauchfuss on 7/18/09.
-// Copyright 2009 __MyCompanyName__. All rights reserved.
+// Copyright 2009 Dancing Tortoise Software. All rights reserved.
//
#import <Cocoa/Cocoa.h>

0 comments on commit ff633a9

Please sign in to comment.
Something went wrong with that request. Please try again.