Revision: 3759
http://skim-app.svn.sourceforge.net/skim-app/?rev=3759&view=rev
Author: hofman
Date: 2008-04-18 10:36:52 -0700 (Fri, 18 Apr 2008)
Log Message:
-----------
Change accessibility hierarchy for snapshot window to make zoom popup
accessible.
Modified Paths:
--------------
trunk/BDSKZoomablePDFView.h
trunk/BDSKZoomablePDFView.m
trunk/Dutch.lproj/SnapshotWindow.nib/classes.nib
trunk/Dutch.lproj/SnapshotWindow.nib/data.dependency
trunk/Dutch.lproj/SnapshotWindow.nib/info.nib
trunk/Dutch.lproj/SnapshotWindow.nib/keyedobjects.nib
trunk/English.lproj/SnapshotWindow.nib/classes.nib
trunk/English.lproj/SnapshotWindow.nib/data.dependency
trunk/English.lproj/SnapshotWindow.nib/info.nib
trunk/English.lproj/SnapshotWindow.nib/keyedobjects.nib
trunk/French.lproj/SnapshotWindow.nib/classes.nib
trunk/French.lproj/SnapshotWindow.nib/keyedobjects.nib
trunk/German.lproj/SnapshotWindow.nib/classes.nib
trunk/German.lproj/SnapshotWindow.nib/data.dependency
trunk/German.lproj/SnapshotWindow.nib/info.nib
trunk/German.lproj/SnapshotWindow.nib/keyedobjects.nib
trunk/Italian.lproj/SnapshotWindow.nib/classes.nib
trunk/Italian.lproj/SnapshotWindow.nib/data.dependency
trunk/Italian.lproj/SnapshotWindow.nib/info.nib
trunk/Italian.lproj/SnapshotWindow.nib/keyedobjects.nib
trunk/Skim.xcodeproj/project.pbxproj
trunk/Spanish.lproj/SnapshotWindow.nib/classes.nib
trunk/Spanish.lproj/SnapshotWindow.nib/info.nib
trunk/Spanish.lproj/SnapshotWindow.nib/keyedobjects.nib
trunk/cs.lproj/SnapshotWindow.nib/classes.nib
trunk/cs.lproj/SnapshotWindow.nib/data.dependency
trunk/cs.lproj/SnapshotWindow.nib/info.nib
trunk/cs.lproj/SnapshotWindow.nib/keyedobjects.nib
trunk/ru.lproj/SnapshotWindow.nib/classes.nib
trunk/ru.lproj/SnapshotWindow.nib/data.dependency
trunk/ru.lproj/SnapshotWindow.nib/info.nib
trunk/ru.lproj/SnapshotWindow.nib/keyedobjects.nib
Added Paths:
-----------
trunk/SKSnapshotContentView.h
trunk/SKSnapshotContentView.m
Modified: trunk/BDSKZoomablePDFView.h
===================================================================
--- trunk/BDSKZoomablePDFView.h 2008-04-18 15:27:47 UTC (rev 3758)
+++ trunk/BDSKZoomablePDFView.h 2008-04-18 17:36:52 UTC (rev 3759)
@@ -58,5 +58,6 @@
- (void)handlePDFViewFrameChangedNotification:(NSNotification *)notification;
- (void)resetAutoFitRectIfNeeded;
- (void)makeScalePopUpButton;
+- (NSPopUpButton *)scalePopUpButton;
@end
Modified: trunk/BDSKZoomablePDFView.m
===================================================================
--- trunk/BDSKZoomablePDFView.m 2008-04-18 15:27:47 UTC (rev 3758)
+++ trunk/BDSKZoomablePDFView.m 2008-04-18 17:36:52 UTC (rev 3759)
@@ -157,6 +157,10 @@
}
}
+- (NSPopUpButton *)scalePopUpButton {
+ return scalePopUpButton;
+}
+
- (void)handlePDFViewFrameChangedNotification:(NSNotification *)notification {
if ([self autoFits]) {
NSView *clipView = [[[self documentView] enclosingScrollView]
contentView];
Modified: trunk/Dutch.lproj/SnapshotWindow.nib/classes.nib
===================================================================
--- trunk/Dutch.lproj/SnapshotWindow.nib/classes.nib 2008-04-18 15:27:47 UTC
(rev 3758)
+++ trunk/Dutch.lproj/SnapshotWindow.nib/classes.nib 2008-04-18 17:36:52 UTC
(rev 3759)
@@ -1,19 +1,39 @@
{
- IBClasses = (
- {
- ACTIONS = {scalePopUpAction = id; };
- CLASS = BDSKZoomablePDFView;
- LANGUAGE = ObjC;
- SUPERCLASS = PDFView;
- },
- {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
- {CLASS = SKSnapshotWindow; LANGUAGE = ObjC; SUPERCLASS = NSWindow; },
- {
- CLASS = SKSnapshotWindowController;
- LANGUAGE = ObjC;
- OUTLETS = {pdfView = PDFView; };
- SUPERCLASS = NSWindowController;
+ IBClasses = (
+ {
+ ACTIONS = {
+ scalePopUpAction = id;
+ };
+ CLASS = BDSKZoomablePDFView;
+ LANGUAGE = ObjC;
+ SUPERCLASS = PDFView;
+ },
+ {
+ CLASS = FirstResponder;
+ LANGUAGE = ObjC;
+ SUPERCLASS = NSObject;
+ },
+ {
+ CLASS = SKSnapshotContentView;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ pdfView = BDSKZoomablePDFView;
+ };
+ SUPERCLASS = NSView;
+ },
+ {
+ CLASS = SKSnapshotWindow;
+ LANGUAGE = ObjC;
+ SUPERCLASS = NSWindow;
+ },
+ {
+ CLASS = SKSnapshotWindowController;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ pdfView = PDFView;
+ };
+ SUPERCLASS = NSWindowController;
}
- );
- IBVersion = 1;
+ );
+ IBVersion = 1;
}
\ No newline at end of file
Modified: trunk/Dutch.lproj/SnapshotWindow.nib/data.dependency
===================================================================
--- trunk/Dutch.lproj/SnapshotWindow.nib/data.dependency 2008-04-18
15:27:47 UTC (rev 3758)
+++ trunk/Dutch.lproj/SnapshotWindow.nib/data.dependency 2008-04-18
17:36:52 UTC (rev 3759)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IBPaletteDependency</key>
Modified: trunk/Dutch.lproj/SnapshotWindow.nib/info.nib
===================================================================
--- trunk/Dutch.lproj/SnapshotWindow.nib/info.nib 2008-04-18 15:27:47 UTC
(rev 3758)
+++ trunk/Dutch.lproj/SnapshotWindow.nib/info.nib 2008-04-18 17:36:52 UTC
(rev 3759)
@@ -1,12 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
<string>128 106 356 240 0 0 1440 938 </string>
<key>IBFramework Version</key>
- <string>446.1</string>
+ <string>489.0</string>
+ <key>IBOpenObjects</key>
+ <array>
+ <integer>5</integer>
+ </array>
<key>IBSystem Version</key>
- <string>8R218</string>
+ <string>9C7010</string>
</dict>
</plist>
Modified: trunk/Dutch.lproj/SnapshotWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Modified: trunk/English.lproj/SnapshotWindow.nib/classes.nib
===================================================================
--- trunk/English.lproj/SnapshotWindow.nib/classes.nib 2008-04-18 15:27:47 UTC
(rev 3758)
+++ trunk/English.lproj/SnapshotWindow.nib/classes.nib 2008-04-18 17:36:52 UTC
(rev 3759)
@@ -1,19 +1,39 @@
{
- IBClasses = (
- {
- ACTIONS = {scalePopUpAction = id; };
- CLASS = BDSKZoomablePDFView;
- LANGUAGE = ObjC;
- SUPERCLASS = PDFView;
- },
- {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
- {CLASS = SKSnapshotWindow; LANGUAGE = ObjC; SUPERCLASS = NSWindow; },
- {
- CLASS = SKSnapshotWindowController;
- LANGUAGE = ObjC;
- OUTLETS = {pdfView = PDFView; };
- SUPERCLASS = NSWindowController;
+ IBClasses = (
+ {
+ ACTIONS = {
+ scalePopUpAction = id;
+ };
+ CLASS = BDSKZoomablePDFView;
+ LANGUAGE = ObjC;
+ SUPERCLASS = PDFView;
+ },
+ {
+ CLASS = FirstResponder;
+ LANGUAGE = ObjC;
+ SUPERCLASS = NSObject;
+ },
+ {
+ CLASS = SKSnapshotContentView;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ pdfView = BDSKZoomablePDFView;
+ };
+ SUPERCLASS = NSView;
+ },
+ {
+ CLASS = SKSnapshotWindow;
+ LANGUAGE = ObjC;
+ SUPERCLASS = NSWindow;
+ },
+ {
+ CLASS = SKSnapshotWindowController;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ pdfView = PDFView;
+ };
+ SUPERCLASS = NSWindowController;
}
- );
- IBVersion = 1;
+ );
+ IBVersion = 1;
}
\ No newline at end of file
Modified: trunk/English.lproj/SnapshotWindow.nib/data.dependency
===================================================================
--- trunk/English.lproj/SnapshotWindow.nib/data.dependency 2008-04-18
15:27:47 UTC (rev 3758)
+++ trunk/English.lproj/SnapshotWindow.nib/data.dependency 2008-04-18
17:36:52 UTC (rev 3759)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IBPaletteDependency</key>
Modified: trunk/English.lproj/SnapshotWindow.nib/info.nib
===================================================================
--- trunk/English.lproj/SnapshotWindow.nib/info.nib 2008-04-18 15:27:47 UTC
(rev 3758)
+++ trunk/English.lproj/SnapshotWindow.nib/info.nib 2008-04-18 17:36:52 UTC
(rev 3759)
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
- <string>128 106 356 240 0 0 1440 938 </string>
+ <string>325 124 356 240 0 0 1440 938 </string>
<key>IBFramework Version</key>
- <string>446.1</string>
+ <string>489.0</string>
<key>IBOpenObjects</key>
<array>
<integer>5</integer>
</array>
<key>IBSystem Version</key>
- <string>8R218</string>
+ <string>9C7010</string>
</dict>
</plist>
Modified: trunk/English.lproj/SnapshotWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Modified: trunk/French.lproj/SnapshotWindow.nib/classes.nib
===================================================================
--- trunk/French.lproj/SnapshotWindow.nib/classes.nib 2008-04-18 15:27:47 UTC
(rev 3758)
+++ trunk/French.lproj/SnapshotWindow.nib/classes.nib 2008-04-18 17:36:52 UTC
(rev 3759)
@@ -14,6 +14,14 @@
SUPERCLASS = NSObject;
},
{
+ CLASS = SKSnapshotContentView;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ pdfView = BDSKZoomablePDFView;
+ };
+ SUPERCLASS = NSView;
+ },
+ {
CLASS = SKSnapshotWindow;
LANGUAGE = ObjC;
SUPERCLASS = NSWindow;
Modified: trunk/French.lproj/SnapshotWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Modified: trunk/German.lproj/SnapshotWindow.nib/classes.nib
===================================================================
--- trunk/German.lproj/SnapshotWindow.nib/classes.nib 2008-04-18 15:27:47 UTC
(rev 3758)
+++ trunk/German.lproj/SnapshotWindow.nib/classes.nib 2008-04-18 17:36:52 UTC
(rev 3759)
@@ -1,19 +1,39 @@
{
- IBClasses = (
- {
- ACTIONS = {scalePopUpAction = id; };
- CLASS = BDSKZoomablePDFView;
- LANGUAGE = ObjC;
- SUPERCLASS = PDFView;
- },
- {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
- {CLASS = SKSnapshotWindow; LANGUAGE = ObjC; SUPERCLASS = NSWindow; },
- {
- CLASS = SKSnapshotWindowController;
- LANGUAGE = ObjC;
- OUTLETS = {pdfView = PDFView; };
- SUPERCLASS = NSWindowController;
+ IBClasses = (
+ {
+ ACTIONS = {
+ scalePopUpAction = id;
+ };
+ CLASS = BDSKZoomablePDFView;
+ LANGUAGE = ObjC;
+ SUPERCLASS = PDFView;
+ },
+ {
+ CLASS = FirstResponder;
+ LANGUAGE = ObjC;
+ SUPERCLASS = NSObject;
+ },
+ {
+ CLASS = SKSnapshotContentView;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ pdfView = BDSKZoomablePDFView;
+ };
+ SUPERCLASS = NSView;
+ },
+ {
+ CLASS = SKSnapshotWindow;
+ LANGUAGE = ObjC;
+ SUPERCLASS = NSWindow;
+ },
+ {
+ CLASS = SKSnapshotWindowController;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ pdfView = PDFView;
+ };
+ SUPERCLASS = NSWindowController;
}
- );
- IBVersion = 1;
+ );
+ IBVersion = 1;
}
\ No newline at end of file
Modified: trunk/German.lproj/SnapshotWindow.nib/data.dependency
===================================================================
--- trunk/German.lproj/SnapshotWindow.nib/data.dependency 2008-04-18
15:27:47 UTC (rev 3758)
+++ trunk/German.lproj/SnapshotWindow.nib/data.dependency 2008-04-18
17:36:52 UTC (rev 3759)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IBPaletteDependency</key>
Modified: trunk/German.lproj/SnapshotWindow.nib/info.nib
===================================================================
--- trunk/German.lproj/SnapshotWindow.nib/info.nib 2008-04-18 15:27:47 UTC
(rev 3758)
+++ trunk/German.lproj/SnapshotWindow.nib/info.nib 2008-04-18 17:36:52 UTC
(rev 3759)
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
<string>128 106 356 240 0 0 1440 938 </string>
<key>IBFramework Version</key>
- <string>446.1</string>
+ <string>489.0</string>
<key>IBOpenObjects</key>
<array>
<integer>5</integer>
</array>
<key>IBSystem Version</key>
- <string>8R218</string>
+ <string>9C7010</string>
</dict>
</plist>
Modified: trunk/German.lproj/SnapshotWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Modified: trunk/Italian.lproj/SnapshotWindow.nib/classes.nib
===================================================================
--- trunk/Italian.lproj/SnapshotWindow.nib/classes.nib 2008-04-18 15:27:47 UTC
(rev 3758)
+++ trunk/Italian.lproj/SnapshotWindow.nib/classes.nib 2008-04-18 17:36:52 UTC
(rev 3759)
@@ -1,19 +1,39 @@
{
- IBClasses = (
- {
- ACTIONS = {scalePopUpAction = id; };
- CLASS = BDSKZoomablePDFView;
- LANGUAGE = ObjC;
- SUPERCLASS = PDFView;
- },
- {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
- {CLASS = SKSnapshotWindow; LANGUAGE = ObjC; SUPERCLASS = NSWindow; },
- {
- CLASS = SKSnapshotWindowController;
- LANGUAGE = ObjC;
- OUTLETS = {pdfView = PDFView; };
- SUPERCLASS = NSWindowController;
+ IBClasses = (
+ {
+ ACTIONS = {
+ scalePopUpAction = id;
+ };
+ CLASS = BDSKZoomablePDFView;
+ LANGUAGE = ObjC;
+ SUPERCLASS = PDFView;
+ },
+ {
+ CLASS = FirstResponder;
+ LANGUAGE = ObjC;
+ SUPERCLASS = NSObject;
+ },
+ {
+ CLASS = SKSnapshotContentView;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ pdfView = BDSKZoomablePDFView;
+ };
+ SUPERCLASS = NSView;
+ },
+ {
+ CLASS = SKSnapshotWindow;
+ LANGUAGE = ObjC;
+ SUPERCLASS = NSWindow;
+ },
+ {
+ CLASS = SKSnapshotWindowController;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ pdfView = PDFView;
+ };
+ SUPERCLASS = NSWindowController;
}
- );
- IBVersion = 1;
+ );
+ IBVersion = 1;
}
\ No newline at end of file
Modified: trunk/Italian.lproj/SnapshotWindow.nib/data.dependency
===================================================================
--- trunk/Italian.lproj/SnapshotWindow.nib/data.dependency 2008-04-18
15:27:47 UTC (rev 3758)
+++ trunk/Italian.lproj/SnapshotWindow.nib/data.dependency 2008-04-18
17:36:52 UTC (rev 3759)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IBPaletteDependency</key>
Modified: trunk/Italian.lproj/SnapshotWindow.nib/info.nib
===================================================================
--- trunk/Italian.lproj/SnapshotWindow.nib/info.nib 2008-04-18 15:27:47 UTC
(rev 3758)
+++ trunk/Italian.lproj/SnapshotWindow.nib/info.nib 2008-04-18 17:36:52 UTC
(rev 3759)
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
<string>128 106 356 240 0 0 1440 938 </string>
<key>IBFramework Version</key>
- <string>446.1</string>
+ <string>489.0</string>
<key>IBOpenObjects</key>
<array>
<integer>5</integer>
</array>
<key>IBSystem Version</key>
- <string>8R218</string>
+ <string>9C7010</string>
</dict>
</plist>
Modified: trunk/Italian.lproj/SnapshotWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Added: trunk/SKSnapshotContentView.h
===================================================================
--- trunk/SKSnapshotContentView.h (rev 0)
+++ trunk/SKSnapshotContentView.h 2008-04-18 17:36:52 UTC (rev 3759)
@@ -0,0 +1,46 @@
+//
+// SKSnapshotContentView.h
+// Skim
+//
+// Created by Christiaan Hofman on 4/18/08.
+/*
+ This software is Copyright (c) 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] BDSKZoomablePDFView;
+
[EMAIL PROTECTED] SKSnapshotContentView : NSView {
+ IBOutlet BDSKZoomablePDFView *pdfView;
+}
[EMAIL PROTECTED]
Added: trunk/SKSnapshotContentView.m
===================================================================
--- trunk/SKSnapshotContentView.m (rev 0)
+++ trunk/SKSnapshotContentView.m 2008-04-18 17:36:52 UTC (rev 3759)
@@ -0,0 +1,60 @@
+//
+// SKSnapshotContentView.m
+// Skim
+//
+// Created by Christiaan Hofman on 4/18/08.
+/*
+ This software is Copyright (c) 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 "SKSnapshotContentView.h"
+#import "BDSKZoomablePDFView.h"
+
+
[EMAIL PROTECTED] SKSnapshotContentView
+
+- (void)awakeFromNib {
+ // Overrides the parent attribute of the placard so that it belongs to
the window.
+ NSView *popup = [pdfView scalePopUpButton];
+ [NSAccessibilityUnignoredDescendant(popup)
accessibilitySetOverrideValue:[self
accessibilityAttributeValue:NSAccessibilityParentAttribute]
forAttribute:NSAccessibilityParentAttribute];
+ [NSAccessibilityUnignoredDescendant(popup)
accessibilitySetOverrideValue:NSLocalizedString(@"Zoom", @"Zoom pop-up menu
description") forAttribute:NSAccessibilityDescriptionAttribute];
+}
+
+- (id)accessibilityAttributeValue:(NSString *)attribute {
+ // Overrides the children attribute to add the placard to the children
of the window.
+ if([attribute isEqualToString:NSAccessibilityChildrenAttribute])
+ return [[super accessibilityAttributeValue:attribute]
arrayByAddingObject:NSAccessibilityUnignoredDescendant([pdfView
scalePopUpButton])];
+ else
+ return [super accessibilityAttributeValue:attribute];
+}
+
[EMAIL PROTECTED]
Modified: trunk/Skim.xcodeproj/project.pbxproj
===================================================================
--- trunk/Skim.xcodeproj/project.pbxproj 2008-04-18 15:27:47 UTC (rev
3758)
+++ trunk/Skim.xcodeproj/project.pbxproj 2008-04-18 17:36:52 UTC (rev
3759)
@@ -138,6 +138,7 @@
CE7469180B7F40B700CBF969 /* Skim.icns in Resources */ = {isa =
PBXBuildFile; fileRef = CE7469170B7F40B600CBF969 /* Skim.icns */; };
CE7B85FD0CCF4AA800793F46 /* SmallMenu.tiff in Resources */ =
{isa = PBXBuildFile; fileRef = CE7B85FC0CCF4AA800793F46 /* SmallMenu.tiff */; };
CE7C20500C259A5D0059E08C /* NSColor_SKExtensions.m in Sources
*/ = {isa = PBXBuildFile; fileRef = CE7C204E0C259A5D0059E08C /*
NSColor_SKExtensions.m */; };
+ CE80666F0DB910610078D118 /* SKSnapshotContentView.m in Sources
*/ = {isa = PBXBuildFile; fileRef = CE80666E0DB910610078D118 /*
SKSnapshotContentView.m */; };
CE816A060D70F9A7008D807D /* Skim.qlgenerator in CopyFiles */ =
{isa = PBXBuildFile; fileRef = CEC7B4EE0CF607CA008CCD63 /* Skim.qlgenerator */;
};
CE816AB00D7195B7008D807D /* SKPrintAccessoryController.m in
Sources */ = {isa = PBXBuildFile; fileRef = CE816AA30D718C8C008D807D /*
SKPrintAccessoryController.m */; };
CE816B030D71963B008D807D /* Cocoa.framework in Frameworks */ =
{isa = PBXBuildFile; fileRef = 1058C7A7FEA54F5311CA2CBB /* Cocoa.framework */;
};
@@ -647,6 +648,8 @@
CE7B85FC0CCF4AA800793F46 /* SmallMenu.tiff */ = {isa =
PBXFileReference; lastKnownFileType = image.tiff; name = SmallMenu.tiff; path =
Images/SmallMenu.tiff; sourceTree = "<group>"; };
CE7C204D0C259A5D0059E08C /* NSColor_SKExtensions.h */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path =
NSColor_SKExtensions.h; sourceTree = "<group>"; };
CE7C204E0C259A5D0059E08C /* NSColor_SKExtensions.m */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path
= NSColor_SKExtensions.m; sourceTree = "<group>"; };
+ CE80666D0DB910610078D118 /* SKSnapshotContentView.h */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path =
SKSnapshotContentView.h; sourceTree = "<group>"; };
+ CE80666E0DB910610078D118 /* SKSnapshotContentView.m */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path
= SKSnapshotContentView.m; sourceTree = "<group>"; };
CE816AA20D718C8C008D807D /* SKPrintAccessoryController.h */ =
{isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h;
path = SKPrintAccessoryController.h; sourceTree = "<group>"; };
CE816AA30D718C8C008D807D /* SKPrintAccessoryController.m */ =
{isa = PBXFileReference; fileEncoding = 4; lastKnownFileType =
sourcecode.c.objc; path = SKPrintAccessoryController.m; sourceTree = "<group>";
};
CE816AAB0D71958F008D807D /* Skim-Leopard.bundle */ = {isa =
PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path
= "Skim-Leopard.bundle"; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -1289,6 +1292,8 @@
F92DB5A90B36FE1F002A26E9 /*
BDSKHeaderPopUpButtonCell.m */,
F92DB5AA0B36FE1F002A26E9 /*
BDSKZoomablePDFView.h */,
F92DB5AB0B36FE1F002A26E9 /*
BDSKZoomablePDFView.m */,
+ CE80666D0DB910610078D118 /*
SKSnapshotContentView.h */,
+ CE80666E0DB910610078D118 /*
SKSnapshotContentView.m */,
);
name = Views;
sourceTree = "<group>";
@@ -2007,6 +2012,7 @@
CEE54F900DA3FE9A0037169F /*
SKUnarchiveFromDataArrayTransformer.m in Sources */,
CE0859D20DAE912500760AFC /*
SKSnapshotPageCell.m in Sources */,
CECF61FF0DB258D600587D96 /* SKFontPicker.m in
Sources */,
+ CE80666F0DB910610078D118 /*
SKSnapshotContentView.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Modified: trunk/Spanish.lproj/SnapshotWindow.nib/classes.nib
===================================================================
--- trunk/Spanish.lproj/SnapshotWindow.nib/classes.nib 2008-04-18 15:27:47 UTC
(rev 3758)
+++ trunk/Spanish.lproj/SnapshotWindow.nib/classes.nib 2008-04-18 17:36:52 UTC
(rev 3759)
@@ -14,6 +14,14 @@
SUPERCLASS = NSObject;
},
{
+ CLASS = SKSnapshotContentView;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ pdfView = BDSKZoomablePDFView;
+ };
+ SUPERCLASS = NSView;
+ },
+ {
CLASS = SKSnapshotWindow;
LANGUAGE = ObjC;
SUPERCLASS = NSWindow;
Modified: trunk/Spanish.lproj/SnapshotWindow.nib/info.nib
===================================================================
--- trunk/Spanish.lproj/SnapshotWindow.nib/info.nib 2008-04-18 15:27:47 UTC
(rev 3758)
+++ trunk/Spanish.lproj/SnapshotWindow.nib/info.nib 2008-04-18 17:36:52 UTC
(rev 3759)
@@ -7,6 +7,6 @@
<key>IBFramework Version</key>
<string>489.0</string>
<key>IBSystem Version</key>
- <string>9C31</string>
+ <string>9C7010</string>
</dict>
</plist>
Modified: trunk/Spanish.lproj/SnapshotWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Modified: trunk/cs.lproj/SnapshotWindow.nib/classes.nib
===================================================================
--- trunk/cs.lproj/SnapshotWindow.nib/classes.nib 2008-04-18 15:27:47 UTC
(rev 3758)
+++ trunk/cs.lproj/SnapshotWindow.nib/classes.nib 2008-04-18 17:36:52 UTC
(rev 3759)
@@ -1,19 +1,39 @@
{
- IBClasses = (
- {
- ACTIONS = {scalePopUpAction = id; };
- CLASS = BDSKZoomablePDFView;
- LANGUAGE = ObjC;
- SUPERCLASS = PDFView;
- },
- {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
- {CLASS = SKSnapshotWindow; LANGUAGE = ObjC; SUPERCLASS = NSWindow; },
- {
- CLASS = SKSnapshotWindowController;
- LANGUAGE = ObjC;
- OUTLETS = {pdfView = PDFView; };
- SUPERCLASS = NSWindowController;
+ IBClasses = (
+ {
+ ACTIONS = {
+ scalePopUpAction = id;
+ };
+ CLASS = BDSKZoomablePDFView;
+ LANGUAGE = ObjC;
+ SUPERCLASS = PDFView;
+ },
+ {
+ CLASS = FirstResponder;
+ LANGUAGE = ObjC;
+ SUPERCLASS = NSObject;
+ },
+ {
+ CLASS = SKSnapshotContentView;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ pdfView = BDSKZoomablePDFView;
+ };
+ SUPERCLASS = NSView;
+ },
+ {
+ CLASS = SKSnapshotWindow;
+ LANGUAGE = ObjC;
+ SUPERCLASS = NSWindow;
+ },
+ {
+ CLASS = SKSnapshotWindowController;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ pdfView = PDFView;
+ };
+ SUPERCLASS = NSWindowController;
}
- );
- IBVersion = 1;
+ );
+ IBVersion = 1;
}
\ No newline at end of file
Modified: trunk/cs.lproj/SnapshotWindow.nib/data.dependency
===================================================================
--- trunk/cs.lproj/SnapshotWindow.nib/data.dependency 2008-04-18 15:27:47 UTC
(rev 3758)
+++ trunk/cs.lproj/SnapshotWindow.nib/data.dependency 2008-04-18 17:36:52 UTC
(rev 3759)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IBPaletteDependency</key>
Modified: trunk/cs.lproj/SnapshotWindow.nib/info.nib
===================================================================
--- trunk/cs.lproj/SnapshotWindow.nib/info.nib 2008-04-18 15:27:47 UTC (rev
3758)
+++ trunk/cs.lproj/SnapshotWindow.nib/info.nib 2008-04-18 17:36:52 UTC (rev
3759)
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
<string>128 106 356 240 0 0 1440 938 </string>
<key>IBFramework Version</key>
- <string>446.1</string>
+ <string>489.0</string>
<key>IBOpenObjects</key>
<array>
<integer>5</integer>
</array>
<key>IBSystem Version</key>
- <string>8R218</string>
+ <string>9C7010</string>
</dict>
</plist>
Modified: trunk/cs.lproj/SnapshotWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Modified: trunk/ru.lproj/SnapshotWindow.nib/classes.nib
===================================================================
--- trunk/ru.lproj/SnapshotWindow.nib/classes.nib 2008-04-18 15:27:47 UTC
(rev 3758)
+++ trunk/ru.lproj/SnapshotWindow.nib/classes.nib 2008-04-18 17:36:52 UTC
(rev 3759)
@@ -1,19 +1,39 @@
{
- IBClasses = (
- {
- ACTIONS = {scalePopUpAction = id; };
- CLASS = BDSKZoomablePDFView;
- LANGUAGE = ObjC;
- SUPERCLASS = PDFView;
- },
- {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
- {CLASS = SKSnapshotWindow; LANGUAGE = ObjC; SUPERCLASS = NSWindow; },
- {
- CLASS = SKSnapshotWindowController;
- LANGUAGE = ObjC;
- OUTLETS = {pdfView = PDFView; };
- SUPERCLASS = NSWindowController;
+ IBClasses = (
+ {
+ ACTIONS = {
+ scalePopUpAction = id;
+ };
+ CLASS = BDSKZoomablePDFView;
+ LANGUAGE = ObjC;
+ SUPERCLASS = PDFView;
+ },
+ {
+ CLASS = FirstResponder;
+ LANGUAGE = ObjC;
+ SUPERCLASS = NSObject;
+ },
+ {
+ CLASS = SKSnapshotContentView;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ pdfView = BDSKZoomablePDFView;
+ };
+ SUPERCLASS = NSView;
+ },
+ {
+ CLASS = SKSnapshotWindow;
+ LANGUAGE = ObjC;
+ SUPERCLASS = NSWindow;
+ },
+ {
+ CLASS = SKSnapshotWindowController;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ pdfView = PDFView;
+ };
+ SUPERCLASS = NSWindowController;
}
- );
- IBVersion = 1;
+ );
+ IBVersion = 1;
}
\ No newline at end of file
Modified: trunk/ru.lproj/SnapshotWindow.nib/data.dependency
===================================================================
--- trunk/ru.lproj/SnapshotWindow.nib/data.dependency 2008-04-18 15:27:47 UTC
(rev 3758)
+++ trunk/ru.lproj/SnapshotWindow.nib/data.dependency 2008-04-18 17:36:52 UTC
(rev 3759)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IBPaletteDependency</key>
Modified: trunk/ru.lproj/SnapshotWindow.nib/info.nib
===================================================================
--- trunk/ru.lproj/SnapshotWindow.nib/info.nib 2008-04-18 15:27:47 UTC (rev
3758)
+++ trunk/ru.lproj/SnapshotWindow.nib/info.nib 2008-04-18 17:36:52 UTC (rev
3759)
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
<string>128 106 356 240 0 0 1440 938 </string>
<key>IBFramework Version</key>
- <string>446.1</string>
+ <string>489.0</string>
<key>IBSystem Version</key>
- <string>8S165</string>
+ <string>9C7010</string>
</dict>
</plist>
Modified: trunk/ru.lproj/SnapshotWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)
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 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit