Revision: 13562
          http://sourceforge.net/p/skim-app/code/13562
Author:   hofman
Date:     2023-08-04 15:30:17 +0000 (Fri, 04 Aug 2023)
Log Message:
-----------
remove zoom slider for navigation window

Modified Paths:
--------------
    trunk/SKNavigationWindow.h
    trunk/SKNavigationWindow.m

Modified: trunk/SKNavigationWindow.h
===================================================================
--- trunk/SKNavigationWindow.h  2023-08-03 23:17:11 UTC (rev 13561)
+++ trunk/SKNavigationWindow.h  2023-08-04 15:30:17 UTC (rev 13562)
@@ -46,7 +46,6 @@
     SKNavigationButton *nextButton;
     SKNavigationButton *zoomButton;
     SKNavigationButton *closeButton;
-    NSSlider *zoomSlider;
 }
 - (id)initWithPDFView:(SKPDFView *)pdfView;
 - (void)handleScaleChangedNotification:(NSNotification *)notification;
@@ -99,9 +98,5 @@
 @end
 
 
-@interface SKNavigationSliderCell : NSSliderCell
-@end
-
-
 @interface SKNavigationSeparator : NSView
 @end

Modified: trunk/SKNavigationWindow.m
===================================================================
--- trunk/SKNavigationWindow.m  2023-08-03 23:17:11 UTC (rev 13561)
+++ trunk/SKNavigationWindow.m  2023-08-04 15:30:17 UTC (rev 13562)
@@ -154,7 +154,6 @@
     SKDESTROY(previousButton);
     SKDESTROY(nextButton);
     SKDESTROY(zoomButton);
-    SKDESTROY(zoomSlider);
     SKDESTROY(closeButton);
     [super dealloc];
 }
@@ -188,7 +187,6 @@
 
 - (void)handleScaleChangedNotification:(NSNotification *)notification {
     [zoomButton setState:[[notification object] autoScales] ? NSOnState : 
NSOffState];
-    [zoomSlider setDoubleValue:log([(PDFView *)[notification object] 
scaleFactor])];
 }
 
 - (void)handlePageChangedNotification:(NSNotification *)notification {
@@ -500,39 +498,6 @@
 
 #pragma mark -
 
-@implementation SKNavigationSliderCell
-
-- (void)drawBarInside:(NSRect)frame flipped:(BOOL)flipped {
-    frame = NSInsetRect(frame, 2.5, 0.0);
-    frame.origin.y = NSMidY(frame) - (flipped ? 2.0 : 3.0);
-    frame.size.height = 5.0;
-       
-    CGFloat alpha = [self isEnabled] ? 0.6 : 0.3;
-    [[NSColor colorWithDeviceWhite:0.3 alpha:alpha] setFill];
-    [[NSColor colorWithDeviceWhite:1.0 alpha:alpha] setStroke];
-    
-       NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:frame 
xRadius:2.0 yRadius:2.0];
-    [path fill];
-    [path stroke];
-}
-
-- (void)drawKnob:(NSRect)frame {
-       if ([self isEnabled]) {
-        [[NSColor colorWithDeviceWhite:1.0 alpha:[self isHighlighted] ? 0.9 : 
0.7] setFill];
-        [NSShadow setShadowWithWhite:0.0 alpha:1.0 blurRadius:2.0 yOffset:0.0];
-    } else {
-        [[NSColor colorWithDeviceWhite:1.0 alpha:0.3] setFill];
-    }
-    
-    [[NSBezierPath 
bezierPathWithOvalInRect:SKRectFromCenterAndSquareSize(SKCenterPoint(frame), 
15.0)] fill];
-}
-
-- (BOOL)_usesCustomTrackImage { return YES; }
-
-@end
-
-#pragma mark -
-
 @implementation SKNavigationSeparator
 
 - (void)drawRect:(NSRect)rect {

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



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to