Revision: 4599
http://skim-app.svn.sourceforge.net/skim-app/?rev=4599&view=rev
Author: hofman
Date: 2008-09-10 11:03:54 +0000 (Wed, 10 Sep 2008)
Log Message:
-----------
rename window class name
Modified Paths:
--------------
trunk/SKSnapshotWindowController.m
trunk/Skim.xcodeproj/project.pbxproj
Added Paths:
-----------
trunk/SKBorderlessImageWindow.h
trunk/SKBorderlessImageWindow.m
Removed Paths:
-------------
trunk/SKMiniaturizeWindow.h
trunk/SKMiniaturizeWindow.m
Copied: trunk/SKBorderlessImageWindow.h (from rev 4591,
trunk/SKMiniaturizeWindow.h)
===================================================================
--- trunk/SKBorderlessImageWindow.h (rev 0)
+++ trunk/SKBorderlessImageWindow.h 2008-09-10 11:03:54 UTC (rev 4599)
@@ -0,0 +1,47 @@
+//
+// SKBorderlessImageWindow.h
+// Skim
+//
+// Created by Christiaan Hofman on 2/16/07.
+/*
+ This software is Copyright (c) 2007-2008
+ Christiaan Hofman. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ - Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ - Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ - Neither the name of Christiaan Hofman nor the names of any
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <Cocoa/Cocoa.h>
+
+
[EMAIL PROTECTED] SKBorderlessImageWindow : NSWindow {
+}
+
+- (id)initWithContentRect:(NSRect)contentRect image:(NSImage *)image;
+
[EMAIL PROTECTED]
Copied: trunk/SKBorderlessImageWindow.m (from rev 4591,
trunk/SKMiniaturizeWindow.m)
===================================================================
--- trunk/SKBorderlessImageWindow.m (rev 0)
+++ trunk/SKBorderlessImageWindow.m 2008-09-10 11:03:54 UTC (rev 4599)
@@ -0,0 +1,66 @@
+//
+// SKBorderlessImageWindow.m
+// Skim
+//
+// Created by Christiaan Hofman on 2/16/07.
+/*
+ This software is Copyright (c) 2007-2008
+ Christiaan Hofman. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ - Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ - Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ - Neither the name of Christiaan Hofman nor the names of any
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "SKBorderlessImageWindow.h"
+
+
[EMAIL PROTECTED] SKBorderlessImageWindow
+
+- (id)initWithContentRect:(NSRect)contentRect image:(NSImage *)image {
+ if (self = [self initWithContentRect:contentRect
styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]) {
+ [self setReleasedWhenClosed:NO];
+ [self setLevel:NSFloatingWindowLevel];
+
+ NSImageView *imageView = [[NSImageView alloc] init];
+ [imageView setImage:image];
+ [imageView setImageFrameStyle:NSImageFrameNone];
+ [self setContentView:imageView];
+ [imageView release];
+ }
+ return self;
+}
+
+- (BOOL)canBecomeMainWindow { return NO; }
+
+- (BOOL)canBecomeKeyWindow { return NO; }
+
+- (NSTimeInterval)animationResizeTime:(NSRect)newWindowFrame {
+ return 0.6 * [super animationResizeTime:newWindowFrame];
+}
+
[EMAIL PROTECTED]
Deleted: trunk/SKMiniaturizeWindow.h
===================================================================
--- trunk/SKMiniaturizeWindow.h 2008-09-10 10:48:45 UTC (rev 4598)
+++ trunk/SKMiniaturizeWindow.h 2008-09-10 11:03:54 UTC (rev 4599)
@@ -1,47 +0,0 @@
-//
-// SKMiniaturizeWindow.h
-// Skim
-//
-// Created by Christiaan Hofman on 2/16/07.
-/*
- This software is Copyright (c) 2007-2008
- Christiaan Hofman. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
-
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- - Neither the name of Christiaan Hofman nor the names of any
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <Cocoa/Cocoa.h>
-
-
[EMAIL PROTECTED] SKMiniaturizeWindow : NSWindow {
-}
-
-- (id)initWithContentRect:(NSRect)contentRect image:(NSImage *)image;
-
[EMAIL PROTECTED]
Deleted: trunk/SKMiniaturizeWindow.m
===================================================================
--- trunk/SKMiniaturizeWindow.m 2008-09-10 10:48:45 UTC (rev 4598)
+++ trunk/SKMiniaturizeWindow.m 2008-09-10 11:03:54 UTC (rev 4599)
@@ -1,66 +0,0 @@
-//
-// SKMiniaturizeWindow.m
-// Skim
-//
-// Created by Christiaan Hofman on 2/16/07.
-/*
- This software is Copyright (c) 2007-2008
- Christiaan Hofman. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
-
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- - Neither the name of Christiaan Hofman nor the names of any
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import "SKMiniaturizeWindow.h"
-
-
[EMAIL PROTECTED] SKMiniaturizeWindow
-
-- (id)initWithContentRect:(NSRect)contentRect image:(NSImage *)image {
- if (self = [self initWithContentRect:contentRect
styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]) {
- [self setReleasedWhenClosed:NO];
- [self setLevel:NSFloatingWindowLevel];
-
- NSImageView *imageView = [[NSImageView alloc] init];
- [imageView setImage:image];
- [imageView setImageFrameStyle:NSImageFrameNone];
- [self setContentView:imageView];
- [imageView release];
- }
- return self;
-}
-
-- (BOOL)canBecomeMainWindow { return NO; }
-
-- (BOOL)canBecomeKeyWindow { return NO; }
-
-- (NSTimeInterval)animationResizeTime:(NSRect)newWindowFrame {
- return 0.6 * [super animationResizeTime:newWindowFrame];
-}
-
[EMAIL PROTECTED]
Modified: trunk/SKSnapshotWindowController.m
===================================================================
--- trunk/SKSnapshotWindowController.m 2008-09-10 10:48:45 UTC (rev 4598)
+++ trunk/SKSnapshotWindowController.m 2008-09-10 11:03:54 UTC (rev 4599)
@@ -39,7 +39,7 @@
#import "SKSnapshotWindowController.h"
#import "SKMainWindowController.h"
#import "SKPDFDocument.h"
-#import "SKMiniaturizeWindow.h"
+#import "SKBorderlessImageWindow.h"
#import <Quartz/Quartz.h>
#import "BDSKZoomablePDFView.h"
#import <SkimNotes/SkimNotes.h>
@@ -532,7 +532,7 @@
[self getMiniRect:&endRect maxiRect:&startRect
forDockingRect:dockRect];
NSImage *image = [self thumbnailWithSize:0.0 shadowBlurRadius:0.0
shadowOffset:NSZeroSize];
- SKMiniaturizeWindow *miniaturizeWindow = [[SKMiniaturizeWindow alloc]
initWithContentRect:startRect image:image];
+ SKBorderlessImageWindow *miniaturizeWindow = [[SKBorderlessImageWindow
alloc] initWithContentRect:startRect image:image];
[miniaturizeWindow orderFront:self];
[[self window] orderOut:self];
@@ -553,7 +553,7 @@
[self getMiniRect:&startRect maxiRect:&endRect
forDockingRect:dockRect];
NSImage *image = [self thumbnailWithSize:0.0 shadowBlurRadius:0.0
shadowOffset:NSZeroSize];
- SKMiniaturizeWindow *miniaturizeWindow = [[SKMiniaturizeWindow alloc]
initWithContentRect:startRect image:image];
+ SKBorderlessImageWindow *miniaturizeWindow = [[SKBorderlessImageWindow
alloc] initWithContentRect:startRect image:image];
[miniaturizeWindow orderFront:self];
[miniaturizeWindow setFrame:endRect display:YES animate:YES];
Modified: trunk/Skim.xcodeproj/project.pbxproj
===================================================================
--- trunk/Skim.xcodeproj/project.pbxproj 2008-09-10 10:48:45 UTC (rev
4598)
+++ trunk/Skim.xcodeproj/project.pbxproj 2008-09-10 11:03:54 UTC (rev
4599)
@@ -63,7 +63,7 @@
CE2A1E630CE513E400A0499B /* RemoteControl.m in Sources */ =
{isa = PBXBuildFile; fileRef = CE2A1E610CE513E300A0499B /* RemoteControl.m */;
};
CE2DE4920B85D48F00D0DA12 /* SKThumbnail.m in Sources */ = {isa
= PBXBuildFile; fileRef = CE2DE4910B85D48F00D0DA12 /* SKThumbnail.m */; };
CE2DE49D0B85D4F400D0DA12 /* SKFullScreenWindow.m in Sources */
= {isa = PBXBuildFile; fileRef = CE2DE49C0B85D4F400D0DA12 /*
SKFullScreenWindow.m */; };
- CE2DE4C60B85D78200D0DA12 /* SKMiniaturizeWindow.m in Sources */
= {isa = PBXBuildFile; fileRef = CE2DE4C50B85D78200D0DA12 /*
SKMiniaturizeWindow.m */; };
+ CE2DE4C60B85D78200D0DA12 /* SKBorderlessImageWindow.m in
Sources */ = {isa = PBXBuildFile; fileRef = CE2DE4C50B85D78200D0DA12 /*
SKBorderlessImageWindow.m */; };
CE2DE4EE0B85DB6300D0DA12 /* NSCursor_SKExtensions.m in Sources
*/ = {isa = PBXBuildFile; fileRef = CE2DE4ED0B85DB6300D0DA12 /*
NSCursor_SKExtensions.m */; };
CE2DE4FD0B85DBD400D0DA12 /* SKPDFHoverWindow.m in Sources */ =
{isa = PBXBuildFile; fileRef = CE2DE4FC0B85DBD400D0DA12 /* SKPDFHoverWindow.m
*/; };
CE2DE50D0B85DC4000D0DA12 /* PDFPage_SKExtensions.m in Sources
*/ = {isa = PBXBuildFile; fileRef = CE2DE50C0B85DC4000D0DA12 /*
PDFPage_SKExtensions.m */; };
@@ -477,8 +477,8 @@
CE2DE4910B85D48F00D0DA12 /* SKThumbnail.m */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path
= SKThumbnail.m; sourceTree = "<group>"; };
CE2DE49B0B85D4F400D0DA12 /* SKFullScreenWindow.h */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path =
SKFullScreenWindow.h; sourceTree = "<group>"; };
CE2DE49C0B85D4F400D0DA12 /* SKFullScreenWindow.m */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path
= SKFullScreenWindow.m; sourceTree = "<group>"; };
- CE2DE4C40B85D78200D0DA12 /* SKMiniaturizeWindow.h */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path =
SKMiniaturizeWindow.h; sourceTree = "<group>"; };
- CE2DE4C50B85D78200D0DA12 /* SKMiniaturizeWindow.m */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path
= SKMiniaturizeWindow.m; sourceTree = "<group>"; };
+ CE2DE4C40B85D78200D0DA12 /* SKBorderlessImageWindow.h */ = {isa
= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path
= SKBorderlessImageWindow.h; sourceTree = "<group>"; };
+ CE2DE4C50B85D78200D0DA12 /* SKBorderlessImageWindow.m */ = {isa
= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc;
path = SKBorderlessImageWindow.m; sourceTree = "<group>"; };
CE2DE4EC0B85DB6300D0DA12 /* NSCursor_SKExtensions.h */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path =
NSCursor_SKExtensions.h; sourceTree = "<group>"; };
CE2DE4ED0B85DB6300D0DA12 /* NSCursor_SKExtensions.m */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path
= NSCursor_SKExtensions.m; sourceTree = "<group>"; };
CE2DE4FB0B85DBD400D0DA12 /* SKPDFHoverWindow.h */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path =
SKPDFHoverWindow.h; sourceTree = "<group>"; };
@@ -1228,8 +1228,8 @@
CE2DE49C0B85D4F400D0DA12 /*
SKFullScreenWindow.m */,
CEA8FCD40D89C34A00E8A6F4 /*
SKAnimatedBorderlessWindow.h */,
CEA8FCD50D89C34A00E8A6F4 /*
SKAnimatedBorderlessWindow.m */,
- CE2DE4C40B85D78200D0DA12 /*
SKMiniaturizeWindow.h */,
- CE2DE4C50B85D78200D0DA12 /*
SKMiniaturizeWindow.m */,
+ CE2DE4C40B85D78200D0DA12 /*
SKBorderlessImageWindow.h */,
+ CE2DE4C50B85D78200D0DA12 /*
SKBorderlessImageWindow.m */,
CEFDF8BC0B3848C40091C61A /*
SKNavigationWindow.h */,
CEFDF8BD0B3848C40091C61A /*
SKNavigationWindow.m */,
CE9B951B0D04657A00EB1A6C /*
SKRemoteStateWindow.h */,
@@ -1979,7 +1979,7 @@
CE0463CB0B84D24300C11E4A /* SKApplication.m in
Sources */,
CE2DE4920B85D48F00D0DA12 /* SKThumbnail.m in
Sources */,
CE2DE49D0B85D4F400D0DA12 /*
SKFullScreenWindow.m in Sources */,
- CE2DE4C60B85D78200D0DA12 /*
SKMiniaturizeWindow.m in Sources */,
+ CE2DE4C60B85D78200D0DA12 /*
SKBorderlessImageWindow.m in Sources */,
CE2DE4EE0B85DB6300D0DA12 /*
NSCursor_SKExtensions.m in Sources */,
CE2DE4FD0B85DBD400D0DA12 /* SKPDFHoverWindow.m
in Sources */,
CE2DE50D0B85DC4000D0DA12 /*
PDFPage_SKExtensions.m in Sources */,
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit