Revision: 14813
          http://sourceforge.net/p/skim-app/code/14813
Author:   hofman
Date:     2024-12-10 17:01:44 +0000 (Tue, 10 Dec 2024)
Log Message:
-----------
only update pdfview including loupe for readingbar changes, rename method 
accordingly

Modified Paths:
--------------
    trunk/SKMainWindowController.m
    trunk/SKPDFView.h
    trunk/SKPDFView.m

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2024-12-10 15:34:38 UTC (rev 14812)
+++ trunk/SKMainWindowController.m      2024-12-10 17:01:44 UTC (rev 14813)
@@ -2055,7 +2055,7 @@
             }
         }
         placeholderPdfDocument = nil;
-        [pdfView requiresDisplay];
+        [pdfView setNeedsDisplay:YES];
         [rightSideController.noteArrayController rearrangeObjects];
         if ([[savedNormalSetup objectForKey:LOCKED_KEY] boolValue] == NO) {
             [rightSideController.noteOutlineView reloadData];
@@ -2571,7 +2571,7 @@
         } else if ([keyPath isEqualToString:SKInterpolationQualityKey]) {
             [pdfView setInterpolationQuality:[[NSUserDefaults 
standardUserDefaults] integerForKey:SKInterpolationQualityKey]];
             [secondaryPdfView setInterpolationQuality:[[NSUserDefaults 
standardUserDefaults] integerForKey:SKInterpolationQualityKey]];
-            [pdfView requiresDisplay];
+            [pdfView setNeedsDisplay:YES];
             [secondaryPdfView setNeedsDisplay:YES];
             [self allThumbnailsNeedUpdate];
         } else if ([keyPath isEqualToString:SKTableFontSizeKey]) {

Modified: trunk/SKPDFView.h
===================================================================
--- trunk/SKPDFView.h   2024-12-10 15:34:38 UTC (rev 14812)
+++ trunk/SKPDFView.h   2024-12-10 17:01:44 UTC (rev 14813)
@@ -258,7 +258,6 @@
 
 - (void)updatedAnnotation:(PDFAnnotation *)annotation forKey:(nullable 
NSString *)key fromValue:(nullable id)oldValue;
 
-- (void)requiresDisplay;
 - (void)setNeedsDisplayInRect:(NSRect)rect ofPage:(PDFPage *)page;
 
 @end

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2024-12-10 15:34:38 UTC (rev 14812)
+++ trunk/SKPDFView.m   2024-12-10 17:01:44 UTC (rev 14813)
@@ -196,6 +196,7 @@
 - (void)updatePacer;
 
 - (void)setNeedsDisplayForReadingBarBounds:(NSRect)rect onPage:(PDFPage *)page;
+- (void)setNeedsDisplayForReadingBar;
 
 - (void)doMoveCurrentAnnotationForKey:(unichar)eventChar 
byAmount:(CGFloat)delta;
 - (void)doResizeCurrentAnnotationForKey:(unichar)eventChar 
byAmount:(CGFloat)delta;
@@ -968,7 +969,7 @@
     }
     [self updatePacer];
     if ([[NSUserDefaults standardUserDefaults] 
boolForKey:SKReadingBarInvertKey])
-        [self requiresDisplay];
+        [self setNeedsDisplayForReadingBar];
     else
         [self setNeedsDisplayForReadingBarBounds:bounds onPage:page];
     [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewReadingBarDidChangeNotification object:self 
userInfo:userInfo];
@@ -2857,7 +2858,7 @@
     [self setNeedsDisplayInRect:[SKReadingBar bounds:rect forBox:[self 
displayBox] onPage:page] ofPage:page];
 }
 
-- (void)requiresDisplay {
+- (void)setNeedsDisplayForReadingBar {
     [self setNeedsDisplay:YES];
     [loupeController updateContents];
 }
@@ -2900,7 +2901,7 @@
                 SKReadingBar *aReadingBar = [[SKReadingBar alloc] 
initWithPage:page line:line delegate:self];
                 [self setReadingBar:aReadingBar];
                 if (invert)
-                    [self requiresDisplay];
+                    [self setNeedsDisplayForReadingBar];
                 else
                     [self setNeedsDisplayForReadingBarBounds:[readingBar 
currentBounds] onPage:[readingBar page]];
                 NSDictionary *userInfo = [NSDictionary 
dictionaryWithObjectsAndKeys:[readingBar page], SKPDFViewNewPageKey, nil];
@@ -3247,7 +3248,7 @@
             if (readingBar) {
                 PDFPage *page = [readingBar page];
                 if ([keyPath isEqualToString:SKReadingBarInvertKey] || 
[[NSUserDefaults standardUserDefaults] boolForKey:SKReadingBarInvertKey])
-                    [self requiresDisplay];
+                    [self setNeedsDisplayForReadingBar];
                 else
                     [self setNeedsDisplayForReadingBarBounds:[readingBar 
currentBounds] onPage:page];
                 [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewReadingBarDidChangeNotification

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