Revision: 5400
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5400&view=rev
Author:   hofman
Date:     2009-06-06 14:26:52 +0000 (Sat, 06 Jun 2009)

Log Message:
-----------
highlight popup in scrollview

Modified Paths:
--------------
    trunk/SKSecondaryPDFView.m
    trunk/SKSnapshotPDFView.m
    trunk/Skim.xcodeproj/project.pbxproj

Added Paths:
-----------
    trunk/SKHighlightingPopUpButton.h

Added: trunk/SKHighlightingPopUpButton.h
===================================================================
--- trunk/SKHighlightingPopUpButton.h                           (rev 0)
+++ trunk/SKHighlightingPopUpButton.h   2009-06-06 14:26:52 UTC (rev 5400)
@@ -0,0 +1,47 @@
+//
+//  SKHighlightingPopUpButton.h
+//  Skim
+//
+//  Created by Christiaan Hofman on 6/6/09.
+/*
+ This software is Copyright (c) 2009
+ 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>
+
+
+...@interface SKHighlightingPopUpButton : NSPopUpButton
+...@end
+
+
+...@interface SKHighlightingPopUpButtonCell : NSPopUpButtonCell
+...@end

Modified: trunk/SKSecondaryPDFView.m
===================================================================
--- trunk/SKSecondaryPDFView.m  2009-06-06 14:25:24 UTC (rev 5399)
+++ trunk/SKSecondaryPDFView.m  2009-06-06 14:26:52 UTC (rev 5400)
@@ -43,6 +43,7 @@
 #import "SKStringConstants.h"
 #import "NSResponder_SKExtensions.h"
 #import "NSEvent_SKExtensions.h"
+#import "SKHighlightingPopUpButton.h"
 
 
 @interface NSResponder (BDSKGesturesPrivate)
@@ -213,7 +214,7 @@
     if (scalePopUpButton == nil) {
 
         // create it        
-        scalePopUpButton = [[NSPopUpButton allocWithZone:[self zone]] 
initWithFrame:NSMakeRect(0.0, 0.0, 1.0, 1.0) pullsDown:NO];
+        scalePopUpButton = [[SKHighlightingPopUpButton allocWithZone:[self 
zone]] initWithFrame:NSMakeRect(0.0, 0.0, 1.0, 1.0) pullsDown:NO];
         
         [[scalePopUpButton cell] setControlSize:controlSize];
                [scalePopUpButton setBordered:NO];
@@ -265,7 +266,7 @@
     if (pagePopUpButton == nil) {
         
         // create it        
-        pagePopUpButton = [[NSPopUpButton allocWithZone:[self zone]] 
initWithFrame:NSMakeRect(0.0, 0.0, 1.0, 1.0) pullsDown:NO];
+        pagePopUpButton = [[SKHighlightingPopUpButton allocWithZone:[self 
zone]] initWithFrame:NSMakeRect(0.0, 0.0, 1.0, 1.0) pullsDown:NO];
         
         [[pagePopUpButton cell] setControlSize:controlSize];
                [pagePopUpButton setBordered:NO];

Modified: trunk/SKSnapshotPDFView.m
===================================================================
--- trunk/SKSnapshotPDFView.m   2009-06-06 14:25:24 UTC (rev 5399)
+++ trunk/SKSnapshotPDFView.m   2009-06-06 14:26:52 UTC (rev 5400)
@@ -40,6 +40,7 @@
 #import "NSScrollView_SKExtensions.h"
 #import "NSResponder_SKExtensions.h"
 #import "NSEvent_SKExtensions.h"
+#import "SKHighlightingPopUpButton.h"
 
 
 @implementation SKSnapshotPDFView
@@ -121,7 +122,7 @@
         [scrollView setHasHorizontalScroller:YES];
         
         // create it        
-        scalePopUpButton = [[NSPopUpButton allocWithZone:[self zone]] 
initWithFrame:NSMakeRect(0.0, 0.0, 1.0, 1.0) pullsDown:NO];
+        scalePopUpButton = [[SKHighlightingPopUpButton allocWithZone:[self 
zone]] initWithFrame:NSMakeRect(0.0, 0.0, 1.0, 1.0) pullsDown:NO];
         
         NSControlSize controlSize = [[scrollView horizontalScroller] 
controlSize];
         [[scalePopUpButton cell] setControlSize:controlSize];

Modified: trunk/Skim.xcodeproj/project.pbxproj
===================================================================
--- trunk/Skim.xcodeproj/project.pbxproj        2009-06-06 14:25:24 UTC (rev 
5399)
+++ trunk/Skim.xcodeproj/project.pbxproj        2009-06-06 14:26:52 UTC (rev 
5400)
@@ -154,6 +154,7 @@
                CE7C20500C259A5D0059E08C /* NSColor_SKExtensions.m in Sources 
*/ = {isa = PBXBuildFile; fileRef = CE7C204E0C259A5D0059E08C /* 
NSColor_SKExtensions.m */; };
                CE7DC8F60E09551800D6D76D /* skimnotes in Copy Files: Shared 
Support */ = {isa = PBXBuildFile; fileRef = CE7DC7340E09286500D6D76D /* 
skimnotes */; };
                CE7F43910DE1F1980061A839 /* NSUserDefaults_SKExtensions.m in 
Sources */ = {isa = PBXBuildFile; fileRef = CE7F43900DE1F1980061A839 /* 
NSUserDefaults_SKExtensions.m */; };
+               CE80A81E0FDAB1690086A46C /* SKHighlightingPopUpButton.m in 
Sources */ = {isa = PBXBuildFile; fileRef = CE80A81D0FDAB1690086A46C /* 
SKHighlightingPopUpButton.m */; };
                CE816A060D70F9A7008D807D /* Skim.qlgenerator in Copy Files: 
QuickLook */ = {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 */; 
};
@@ -750,6 +751,8 @@
                CE7DC7440E0928A700D6D76D /* SkimNotes.framework */ = {isa = 
PBXFileReference; lastKnownFileType = wrapper.framework; path = 
SkimNotes.framework; sourceTree = BUILT_PRODUCTS_DIR; };
                CE7F438F0DE1F1980061A839 /* NSUserDefaults_SKExtensions.h */ = 
{isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; 
path = NSUserDefaults_SKExtensions.h; sourceTree = "<group>"; };
                CE7F43900DE1F1980061A839 /* NSUserDefaults_SKExtensions.m */ = 
{isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = 
sourcecode.c.objc; path = NSUserDefaults_SKExtensions.m; sourceTree = 
"<group>"; };
+               CE80A81C0FDAB1690086A46C /* SKHighlightingPopUpButton.h */ = 
{isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; 
path = SKHighlightingPopUpButton.h; sourceTree = "<group>"; };
+               CE80A81D0FDAB1690086A46C /* SKHighlightingPopUpButton.m */ = 
{isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = 
sourcecode.c.objc; path = SKHighlightingPopUpButton.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; };
@@ -1332,6 +1335,8 @@
                                CECDDBAC0C5BB95F0026AAEC /* SKFindTableView.m 
*/,
                                CECF61FD0DB258D600587D96 /* SKFontWell.h */,
                                CECF61FE0DB258D600587D96 /* SKFontWell.m */,
+                               CE80A81C0FDAB1690086A46C /* 
SKHighlightingPopUpButton.h */,
+                               CE80A81D0FDAB1690086A46C /* 
SKHighlightingPopUpButton.m */,
                                CEE0F5E90EBB3DEC000A7A8C /* 
SKLevelIndicatorCell.h */,
                                CEE0F5EA0EBB3DEC000A7A8C /* 
SKLevelIndicatorCell.m */,
                                CE4BC12D0C357A0300C2AF03 /* SKLineWell.h */,
@@ -2210,6 +2215,7 @@
                                CE17F47E0F1A17E200E741DD /* 
SKPDFSynchronizerServer.m in Sources */,
                                CEC3154F0F24AC02008D2C75 /* SKRichTextFormat.m 
in Sources */,
                                CE32531F0F4723EA0021BADD /* 
SKMainWindowController_Actions.m in Sources */,
+                               CE80A81E0FDAB1690086A46C /* 
SKHighlightingPopUpButton.m in Sources */,
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                };


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to