Revision: 13403
          http://sourceforge.net/p/skim-app/code/13403
Author:   hofman
Date:     2023-03-26 09:32:26 +0000 (Sun, 26 Mar 2023)
Log Message:
-----------
show match number in status bar when selecting search result

Modified Paths:
--------------
    trunk/SKMainWindowController.m
    trunk/de.lproj/Localizable.strings
    trunk/en.lproj/Localizable.strings
    trunk/es.lproj/Localizable.strings
    trunk/fr.lproj/Localizable.strings
    trunk/it.lproj/Localizable.strings
    trunk/ja.lproj/Localizable.strings
    trunk/nl.lproj/Localizable.strings
    trunk/pl.lproj/Localizable.strings
    trunk/ru.lproj/Localizable.strings
    trunk/zh_CN.lproj/Localizable.strings
    trunk/zh_TW.lproj/Localizable.strings

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2023-03-23 10:24:47 UTC (rev 13402)
+++ trunk/SKMainWindowController.m      2023-03-26 09:32:26 UTC (rev 13403)
@@ -1996,6 +1996,7 @@
     if ([findResults count] == 0) {
         
         [pdfView setHighlightedSelections:nil];
+        [self updateRightStatus];
         
     } else {
         
@@ -2032,8 +2033,12 @@
         [pdfView setHighlightedSelections:highlights];
         [highlights release];
         
-        if ([currentSel hasCharacters])
+        if ([currentSel hasCharacters]) {
             [pdfView setCurrentSelection:currentSel animate:YES];
+            [[statusBar rightField] setStringValue:[NSString 
stringWithFormat:NSLocalizedString(@"Match %lu of %lu", @"Status message"), 
(unsigned long)[searchResults indexOfObject:currentSel] + 1, (unsigned 
long)[self countOfSearchResults]]];
+        } else {
+            [self updateRightStatus];
+        }
         if ([pdfView toolMode] == SKMoveToolMode || [pdfView toolMode] == 
SKMagnifyToolMode || [pdfView toolMode] == SKSelectToolMode)
             [pdfView setCurrentSelection:nil];
     }

Modified: trunk/de.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/en.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/es.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/fr.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/it.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/ja.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/nl.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/pl.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/ru.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/zh_CN.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/zh_TW.lproj/Localizable.strings
===================================================================
(Binary files differ)

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