Revision: 2577
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2577&view=rev
Author:   hofman
Date:     2007-07-28 05:43:41 -0700 (Sat, 28 Jul 2007)

Log Message:
-----------
Center page number vertically in thumbnail and note tables.

Modified Paths:
--------------
    trunk/Dutch.lproj/MainWindow.nib/classes.nib
    trunk/Dutch.lproj/MainWindow.nib/info.nib
    trunk/Dutch.lproj/MainWindow.nib/keyedobjects.nib
    trunk/English.lproj/MainWindow.nib/classes.nib
    trunk/English.lproj/MainWindow.nib/info.nib
    trunk/English.lproj/MainWindow.nib/keyedobjects.nib
    trunk/French.lproj/MainWindow.nib/classes.nib
    trunk/French.lproj/MainWindow.nib/info.nib
    trunk/French.lproj/MainWindow.nib/keyedobjects.nib
    trunk/Italian.lproj/MainWindow.nib/classes.nib
    trunk/Italian.lproj/MainWindow.nib/info.nib
    trunk/Italian.lproj/MainWindow.nib/keyedobjects.nib
    trunk/Skim.xcodeproj/project.pbxproj

Added Paths:
-----------
    trunk/SKCenteredTextFieldCell.h
    trunk/SKCenteredTextFieldCell.m

Modified: trunk/Dutch.lproj/MainWindow.nib/classes.nib
===================================================================
--- trunk/Dutch.lproj/MainWindow.nib/classes.nib        2007-07-27 18:57:08 UTC 
(rev 2576)
+++ trunk/Dutch.lproj/MainWindow.nib/classes.nib        2007-07-28 12:43:41 UTC 
(rev 2577)
@@ -31,6 +31,11 @@
             LANGUAGE = ObjC; 
             SUPERCLASS = NSImageCell; 
         }, 
+        {
+            CLASS = SKCenteredTextFieldCell; 
+            LANGUAGE = ObjC; 
+            SUPERCLASS = NSTextFieldCell; 
+        }, 
         {CLASS = SKColorSwatch; LANGUAGE = ObjC; SUPERCLASS = NSControl; }, 
         {CLASS = SKFullScreenWindow; LANGUAGE = ObjC; SUPERCLASS = NSWindow; 
}, 
         {CLASS = SKMainWindow; LANGUAGE = ObjC; SUPERCLASS = NSWindow; }, 

Modified: trunk/Dutch.lproj/MainWindow.nib/info.nib
===================================================================
--- trunk/Dutch.lproj/MainWindow.nib/info.nib   2007-07-27 18:57:08 UTC (rev 
2576)
+++ trunk/Dutch.lproj/MainWindow.nib/info.nib   2007-07-28 12:43:41 UTC (rev 
2577)
@@ -31,9 +31,10 @@
        </array>
        <key>IBOpenObjects</key>
        <array>
+               <integer>5</integer>
                <integer>511</integer>
                <integer>168</integer>
-               <integer>5</integer>
+               <integer>256</integer>
        </array>
        <key>IBSystem Version</key>
        <string>8R218</string>

Modified: trunk/Dutch.lproj/MainWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)

Modified: trunk/English.lproj/MainWindow.nib/classes.nib
===================================================================
--- trunk/English.lproj/MainWindow.nib/classes.nib      2007-07-27 18:57:08 UTC 
(rev 2576)
+++ trunk/English.lproj/MainWindow.nib/classes.nib      2007-07-28 12:43:41 UTC 
(rev 2577)
@@ -31,6 +31,11 @@
             LANGUAGE = ObjC; 
             SUPERCLASS = NSImageCell; 
         }, 
+        {
+            CLASS = SKCenteredTextFieldCell; 
+            LANGUAGE = ObjC; 
+            SUPERCLASS = NSTextFieldCell; 
+        }, 
         {CLASS = SKColorSwatch; LANGUAGE = ObjC; SUPERCLASS = NSControl; }, 
         {CLASS = SKFullScreenWindow; LANGUAGE = ObjC; SUPERCLASS = NSWindow; 
}, 
         {CLASS = SKMainWindow; LANGUAGE = ObjC; SUPERCLASS = NSWindow; }, 

Modified: trunk/English.lproj/MainWindow.nib/info.nib
===================================================================
--- trunk/English.lproj/MainWindow.nib/info.nib 2007-07-27 18:57:08 UTC (rev 
2576)
+++ trunk/English.lproj/MainWindow.nib/info.nib 2007-07-28 12:43:41 UTC (rev 
2577)
@@ -31,20 +31,20 @@
        </array>
        <key>IBOpenObjects</key>
        <array>
+               <integer>256</integer>
+               <integer>687</integer>
+               <integer>224</integer>
                <integer>585</integer>
-               <integer>5</integer>
-               <integer>633</integer>
-               <integer>687</integer>
+               <integer>208</integer>
+               <integer>502</integer>
                <integer>694</integer>
                <integer>539</integer>
                <integer>553</integer>
                <integer>511</integer>
-               <integer>208</integer>
+               <integer>5</integer>
+               <integer>633</integer>
                <integer>168</integer>
                <integer>314</integer>
-               <integer>502</integer>
-               <integer>224</integer>
-               <integer>256</integer>
        </array>
        <key>IBSystem Version</key>
        <string>8R218</string>

Modified: trunk/English.lproj/MainWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)

Modified: trunk/French.lproj/MainWindow.nib/classes.nib
===================================================================
--- trunk/French.lproj/MainWindow.nib/classes.nib       2007-07-27 18:57:08 UTC 
(rev 2576)
+++ trunk/French.lproj/MainWindow.nib/classes.nib       2007-07-28 12:43:41 UTC 
(rev 2577)
@@ -31,6 +31,11 @@
             LANGUAGE = ObjC; 
             SUPERCLASS = NSImageCell; 
         }, 
+        {
+            CLASS = SKCenteredTextFieldCell; 
+            LANGUAGE = ObjC; 
+            SUPERCLASS = NSTextFieldCell; 
+        }, 
         {CLASS = SKColorSwatch; LANGUAGE = ObjC; SUPERCLASS = NSControl; }, 
         {CLASS = SKFullScreenWindow; LANGUAGE = ObjC; SUPERCLASS = NSWindow; 
}, 
         {CLASS = SKMainWindow; LANGUAGE = ObjC; SUPERCLASS = NSWindow; }, 

Modified: trunk/French.lproj/MainWindow.nib/info.nib
===================================================================
--- trunk/French.lproj/MainWindow.nib/info.nib  2007-07-27 18:57:08 UTC (rev 
2576)
+++ trunk/French.lproj/MainWindow.nib/info.nib  2007-07-28 12:43:41 UTC (rev 
2577)
@@ -11,7 +11,7 @@
                <key>224</key>
                <string>690 564 220 442 0 0 1600 1178 </string>
                <key>256</key>
-               <string>690 564 220 442 0 0 1600 1178 </string>
+               <string>610 420 220 442 0 0 1440 938 </string>
                <key>314</key>
                <string>610 420 220 442 0 0 1440 938 </string>
                <key>502</key>
@@ -31,14 +31,15 @@
        </array>
        <key>IBOpenObjects</key>
        <array>
+               <integer>314</integer>
+               <integer>660</integer>
+               <integer>168</integer>
+               <integer>633</integer>
+               <integer>511</integer>
+               <integer>661</integer>
                <integer>502</integer>
-               <integer>661</integer>
+               <integer>256</integer>
                <integer>5</integer>
-               <integer>660</integer>
-               <integer>511</integer>
-               <integer>314</integer>
-               <integer>633</integer>
-               <integer>168</integer>
        </array>
        <key>IBSystem Version</key>
        <string>8R218</string>

Modified: trunk/French.lproj/MainWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)

Modified: trunk/Italian.lproj/MainWindow.nib/classes.nib
===================================================================
--- trunk/Italian.lproj/MainWindow.nib/classes.nib      2007-07-27 18:57:08 UTC 
(rev 2576)
+++ trunk/Italian.lproj/MainWindow.nib/classes.nib      2007-07-28 12:43:41 UTC 
(rev 2577)
@@ -31,6 +31,11 @@
             LANGUAGE = ObjC; 
             SUPERCLASS = NSImageCell; 
         }, 
+        {
+            CLASS = SKCenteredTextFieldCell; 
+            LANGUAGE = ObjC; 
+            SUPERCLASS = NSTextFieldCell; 
+        }, 
         {CLASS = SKColorSwatch; LANGUAGE = ObjC; SUPERCLASS = NSControl; }, 
         {CLASS = SKFullScreenWindow; LANGUAGE = ObjC; SUPERCLASS = NSWindow; 
}, 
         {CLASS = SKMainWindow; LANGUAGE = ObjC; SUPERCLASS = NSWindow; }, 

Modified: trunk/Italian.lproj/MainWindow.nib/info.nib
===================================================================
--- trunk/Italian.lproj/MainWindow.nib/info.nib 2007-07-27 18:57:08 UTC (rev 
2576)
+++ trunk/Italian.lproj/MainWindow.nib/info.nib 2007-07-28 12:43:41 UTC (rev 
2577)
@@ -11,7 +11,7 @@
                <key>224</key>
                <string>610 420 220 442 0 0 1440 938 </string>
                <key>256</key>
-               <string>402 294 220 442 0 0 1024 746 </string>
+               <string>610 420 220 442 0 0 1440 938 </string>
                <key>314</key>
                <string>610 420 220 442 0 0 1440 938 </string>
                <key>502</key>
@@ -31,18 +31,19 @@
        </array>
        <key>IBOpenObjects</key>
        <array>
-               <integer>5</integer>
+               <integer>553</integer>
+               <integer>676</integer>
+               <integer>539</integer>
                <integer>677</integer>
-               <integer>676</integer>
-               <integer>208</integer>
-               <integer>553</integer>
+               <integer>224</integer>
                <integer>502</integer>
-               <integer>539</integer>
                <integer>628</integer>
                <integer>314</integer>
+               <integer>5</integer>
+               <integer>256</integer>
+               <integer>208</integer>
+               <integer>168</integer>
                <integer>511</integer>
-               <integer>224</integer>
-               <integer>168</integer>
        </array>
        <key>IBSystem Version</key>
        <string>8R218</string>

Modified: trunk/Italian.lproj/MainWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)

Added: trunk/SKCenteredTextFieldCell.h
===================================================================
--- trunk/SKCenteredTextFieldCell.h                             (rev 0)
+++ trunk/SKCenteredTextFieldCell.h     2007-07-28 12:43:41 UTC (rev 2577)
@@ -0,0 +1,43 @@
+//
+//  SKCenteredTextFieldCell.h
+//  Skim
+//
+//  Created by Christiaan Hofman on 7/28/07.
+/*
+ This software is Copyright (c) 2007
+ 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] SKCenteredTextFieldCell : NSTextFieldCell
[EMAIL PROTECTED]

Added: trunk/SKCenteredTextFieldCell.m
===================================================================
--- trunk/SKCenteredTextFieldCell.m                             (rev 0)
+++ trunk/SKCenteredTextFieldCell.m     2007-07-28 12:43:41 UTC (rev 2577)
@@ -0,0 +1,53 @@
+//
+//  SKCenteredTextFieldCell.m
+//  Skim
+//
+//  Created by Christiaan Hofman on 7/28/07.
+/*
+ This software is Copyright (c) 2007
+ 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 "SKCenteredTextFieldCell.h"
+
+#define TEXT_OFFSET 1.0
+
[EMAIL PROTECTED] SKCenteredTextFieldCell
+
+- (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
+    float height = [self cellSize].height;
+    cellFrame.origin.y += floorf(0.5 * (NSHeight(cellFrame) - height));
+    cellFrame.origin.y += [controlView isFlipped] ? TEXT_OFFSET : -TEXT_OFFSET;
+    cellFrame.size.height = height;
+    [super drawInteriorWithFrame:cellFrame inView:controlView];
+}
+
[EMAIL PROTECTED]

Modified: trunk/Skim.xcodeproj/project.pbxproj
===================================================================
--- trunk/Skim.xcodeproj/project.pbxproj        2007-07-27 18:57:08 UTC (rev 
2576)
+++ trunk/Skim.xcodeproj/project.pbxproj        2007-07-28 12:43:41 UTC (rev 
2577)
@@ -158,6 +158,7 @@
                CEB7359C0C4A8C1C000350F9 /* TransitionMask.jpg in Resources */ 
= {isa = PBXBuildFile; fileRef = CEB7359A0C4A8C1B000350F9 /* TransitionMask.jpg 
*/; };
                CEB735A20C4A8CD6000350F9 /* TransitionShading.tiff in Resources 
*/ = {isa = PBXBuildFile; fileRef = CEB735A10C4A8CD6000350F9 /* 
TransitionShading.tiff */; };
                CECDC4FF0C5966A80026AAEC /* NSImage_BDSKExtensions.m in Sources 
*/ = {isa = PBXBuildFile; fileRef = CECDC4FD0C5966A80026AAEC /* 
NSImage_BDSKExtensions.m */; };
+               CECDD2990C5B68580026AAEC /* SKCenteredTextFieldCell.m in 
Sources */ = {isa = PBXBuildFile; fileRef = CECDD2970C5B68580026AAEC /* 
SKCenteredTextFieldCell.m */; };
                CEE106150BCBB72C00BF2D3E /* SKNotesDocument.m in Sources */ = 
{isa = PBXBuildFile; fileRef = CEE106140BCBB72C00BF2D3E /* SKNotesDocument.m 
*/; };
                CEE1065E0BCBBE1300BF2D3E /* NotesDocument.nib in Resources */ = 
{isa = PBXBuildFile; fileRef = CEE106580BCBBE1200BF2D3E /* NotesDocument.nib 
*/; };
                CEE229390BFB7CE9002B746B /* ReleaseNotes.rtf in Resources */ = 
{isa = PBXBuildFile; fileRef = CE54AA8E0BBC037400008750 /* ReleaseNotes.rtf */; 
};
@@ -538,6 +539,8 @@
                CECD97590C57A3E30026AAEC /* French */ = {isa = 
PBXFileReference; lastKnownFileType = folder; name = French; path = 
"French.lproj/Skim Help"; sourceTree = "<group>"; };
                CECDC4FC0C5966A80026AAEC /* NSImage_BDSKExtensions.h */ = {isa 
= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path 
= NSImage_BDSKExtensions.h; sourceTree = "<group>"; };
                CECDC4FD0C5966A80026AAEC /* NSImage_BDSKExtensions.m */ = {isa 
= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; 
path = NSImage_BDSKExtensions.m; sourceTree = "<group>"; };
+               CECDD2960C5B68580026AAEC /* SKCenteredTextFieldCell.h */ = {isa 
= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path 
= SKCenteredTextFieldCell.h; sourceTree = "<group>"; };
+               CECDD2970C5B68580026AAEC /* SKCenteredTextFieldCell.m */ = {isa 
= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; 
path = SKCenteredTextFieldCell.m; sourceTree = "<group>"; };
                CEE106130BCBB72C00BF2D3E /* SKNotesDocument.h */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = 
SKNotesDocument.h; sourceTree = "<group>"; };
                CEE106140BCBB72C00BF2D3E /* SKNotesDocument.m */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path 
= SKNotesDocument.m; sourceTree = "<group>"; };
                CEE106590BCBBE1200BF2D3E /* English */ = {isa = 
PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = 
English.lproj/NotesDocument.nib; sourceTree = "<group>"; };
@@ -874,6 +877,8 @@
                                CEAF079B0C4139EB00C3ECBB /* SKStatusBar.m */,
                                CEA575E30B9207B80003D2E7 /* 
SKThumbnailTableView.h */,
                                CEA575E40B9207B80003D2E7 /* 
SKThumbnailTableView.m */,
+                               CECDD2960C5B68580026AAEC /* 
SKCenteredTextFieldCell.h */,
+                               CECDD2970C5B68580026AAEC /* 
SKCenteredTextFieldCell.m */,
                                CE0710110B89BDD600733CC8 /* 
BDSKCollapsibleView.h */,
                                CE0710120B89BDD600733CC8 /* 
BDSKCollapsibleView.m */,
                                CE0710130B89BDD600733CC8 /* BDSKContainerView.h 
*/,
@@ -1367,6 +1372,7 @@
                                CEAF2E5A0C45414100C3ECBB /* SKLine.m in Sources 
*/,
                                CE1ADEBF0C4C341100071840 /* 
SKTransitionController.m in Sources */,
                                CECDC4FF0C5966A80026AAEC /* 
NSImage_BDSKExtensions.m in Sources */,
+                               CECDD2990C5B68580026AAEC /* 
SKCenteredTextFieldCell.m in Sources */,
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                };


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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to