Skip to content

Commit

Permalink
Can now use the close window command with the bezel as key. Also some…
Browse files Browse the repository at this point in the history
… copyright notices were added.
  • Loading branch information
Alexander Rauchfuss committed Jan 16, 2010
1 parent c2e7777 commit ff633a9
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Custom Controls/TSSTFullscreenProgressBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion Custom Windows/Bezel/TSSTBezelWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
25 changes: 19 additions & 6 deletions Custom Windows/Bezel/TSSTBezelWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//


Expand All @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion Custom Windows/DTSessionWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion Custom Windows/DTSessionWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion Managed Objects/TSSTManagedGroup.m
Original file line number Diff line number Diff line change
Expand Up @@ -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.



Expand Down
2 changes: 1 addition & 1 deletion Managed Objects/TSSTManagedSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion Managed Objects/TSSTManagedSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion Preferences/TSSTPagePreview.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion Preferences/TSSTPagePreview.m
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion Session/DTToolbarItems.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit ff633a9

Please sign in to comment.