Browse Source

【偏好设置】展示模块,缩略图大小设置功能补充

tangchao 1 year ago
parent
commit
63352d983b

+ 8 - 0
PDF Office/PDF Master.xcodeproj/project.pbxproj

@@ -3233,6 +3233,9 @@
 		BB52372A29C313CA00663BD7 /* KMAnnotationPropertyBaseController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BB52372629C313CA00663BD7 /* KMAnnotationPropertyBaseController.xib */; };
 		BB52372B29C313CA00663BD7 /* KMAnnotationPropertyBaseController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BB52372629C313CA00663BD7 /* KMAnnotationPropertyBaseController.xib */; };
 		BB52372C29C313CA00663BD7 /* KMAnnotationPropertyBaseController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BB52372629C313CA00663BD7 /* KMAnnotationPropertyBaseController.xib */; };
+		BB570ADB2B512C90005E7E4A /* KMLeftSideViewController+Thumbnail.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB570ADA2B512C90005E7E4A /* KMLeftSideViewController+Thumbnail.swift */; };
+		BB570ADC2B512C90005E7E4A /* KMLeftSideViewController+Thumbnail.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB570ADA2B512C90005E7E4A /* KMLeftSideViewController+Thumbnail.swift */; };
+		BB570ADD2B512C90005E7E4A /* KMLeftSideViewController+Thumbnail.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB570ADA2B512C90005E7E4A /* KMLeftSideViewController+Thumbnail.swift */; };
 		BB5726F02B20707D0089D283 /* CPDFMarkupAnnotation+PDFListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB5726EF2B20707C0089D283 /* CPDFMarkupAnnotation+PDFListView.swift */; };
 		BB5726F12B20707D0089D283 /* CPDFMarkupAnnotation+PDFListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB5726EF2B20707C0089D283 /* CPDFMarkupAnnotation+PDFListView.swift */; };
 		BB5726F22B20707D0089D283 /* CPDFMarkupAnnotation+PDFListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB5726EF2B20707C0089D283 /* CPDFMarkupAnnotation+PDFListView.swift */; };
@@ -5982,6 +5985,7 @@
 		BB4F7E982B0C858D0077EC8C /* KMNoteTypeCollectionViewItem.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KMNoteTypeCollectionViewItem.xib; sourceTree = "<group>"; };
 		BB51073E29A61B4000978662 /* ProgressSheet.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ProgressSheet.xib; sourceTree = "<group>"; };
 		BB52372629C313CA00663BD7 /* KMAnnotationPropertyBaseController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KMAnnotationPropertyBaseController.xib; sourceTree = "<group>"; };
+		BB570ADA2B512C90005E7E4A /* KMLeftSideViewController+Thumbnail.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "KMLeftSideViewController+Thumbnail.swift"; sourceTree = "<group>"; };
 		BB5726EF2B20707C0089D283 /* CPDFMarkupAnnotation+PDFListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "CPDFMarkupAnnotation+PDFListView.swift"; sourceTree = "<group>"; };
 		BB5BE4EC2B060E2100D51BF2 /* KMLanguageViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMLanguageViewController.swift; sourceTree = "<group>"; };
 		BB5BE4F02B060EB400D51BF2 /* KMLanguageViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KMLanguageViewController.xib; sourceTree = "<group>"; };
@@ -6850,6 +6854,7 @@
 				BB8B9A002B355EFB00A066EC /* KMLeftSideViewController+Outline.swift */,
 				BBE78F1A2B36F69F0071AC1A /* KMLeftSideViewController+Note.swift */,
 				BBE78F1E2B3875B50071AC1A /* KMLeftSideViewController+Search.swift */,
+				BB570ADA2B512C90005E7E4A /* KMLeftSideViewController+Thumbnail.swift */,
 				BB0B2CD72B04AE560088FFD8 /* LeftSideView.xib */,
 				8997011E28F41AB8009AF911 /* KMLeftSideViewController.xib */,
 				8942F7E82925E1C400389627 /* KMLiftSideCellView.swift */,
@@ -14259,6 +14264,7 @@
 				ADAFDA422AE8F3C400F084BC /* KMAdvertisementTimeStampConversion.swift in Sources */,
 				9F0CB4E92986559400007028 /* KMDesignToken+PaddingBottom.swift in Sources */,
 				ADDDCE272B43A32A005B4AB5 /* AppSandboxFileAccessOpenSavePanelDelegate.m in Sources */,
+				BB570ADB2B512C90005E7E4A /* KMLeftSideViewController+Thumbnail.swift in Sources */,
 				ADD1B6E82946C02600C3FFF7 /* KMPrintChoosePageSizeMultipageView.swift in Sources */,
 				AD58F40E2B1DAAA800299EE0 /* KMPrintDefaultView.swift in Sources */,
 				9F1FE4ED29406E4700E952CA /* ThrobberView.m in Sources */,
@@ -14922,6 +14928,7 @@
 				AD85D1B62AF0CCFC000F4D28 /* KMHomeHistoryListViewModel.swift in Sources */,
 				9F080B24298FCB0D00FC27DA /* KMDesignToken+Action.swift in Sources */,
 				BB1BFF932AEA6352003EB179 /* KMImageToPDFMethod.swift in Sources */,
+				BB570ADC2B512C90005E7E4A /* KMLeftSideViewController+Thumbnail.swift in Sources */,
 				F37322F4292DF9410013862C /* CSelfSignAnnotationFreeText.m in Sources */,
 				899700E028F3A9F2009AF911 /* KMHomeWindowController.swift in Sources */,
 				AD59993F2AD7E88600412F8B /* KMStampManager.swift in Sources */,
@@ -16454,6 +16461,7 @@
 				BB2A98542B270B3300647AF3 /* KMBatchAddBackgroundOperation.swift in Sources */,
 				BBBF68862A3C3AF10058E14E /* NSDocumentController+KMExtension.swift in Sources */,
 				BBEC00AA295BDECF00A26C98 /* KMHeaderFooterContentInfoView.swift in Sources */,
+				BB570ADD2B512C90005E7E4A /* KMLeftSideViewController+Thumbnail.swift in Sources */,
 				BBB14A552978DD5400936EDB /* KMRedactTools.swift in Sources */,
 				ADCFFC0429C004AD007D3657 /* KMBookMarkTableRowView.swift in Sources */,
 				BBEC00CE295C31F900A26C98 /* KMBatesModel.swift in Sources */,

+ 1 - 415
PDF Office/PDF Master.xcodeproj/xcuserdata/kdanmobile.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -1,420 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Bucket
-   uuid = "1CCF492B-C35D-4676-9A6F-6C1FA4C62FF1"
+   uuid = "25669649-3D95-4773-928D-C3D391DCBBDC"
    type = "1"
    version = "2.0">
-<<<<<<< HEAD
-=======
-   <Breakpoints>
-      <BreakpointProxy
-         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
-         <BreakpointContent
-            uuid = "8A50A9B0-05C6-4F44-90A0-BB7EDAD9B880"
-            shouldBeEnabled = "Yes"
-            ignoreCount = "0"
-            continueAfterRunningActions = "No"
-            filePath = "PDF Master/Class/Preference/Controller/KMDisplayPreferences.swift"
-            startingColumnNumber = "9223372036854775807"
-            endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "197"
-            endingLineNumber = "197"
-            landmarkName = "comboBoxSelectionDidChange(_:)"
-            landmarkType = "7">
-         </BreakpointContent>
-      </BreakpointProxy>
-      <BreakpointProxy
-         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
-         <BreakpointContent
-            uuid = "3D86A5D4-2323-4A07-958E-ECB922C37944"
-            shouldBeEnabled = "Yes"
-            ignoreCount = "0"
-            continueAfterRunningActions = "No"
-            filePath = "PDF Master/Class/Preference/Controller/KMDisplayPreferences.swift"
-            startingColumnNumber = "9223372036854775807"
-            endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "205"
-            endingLineNumber = "205"
-            landmarkName = "controlTextDidChange(_:)"
-            landmarkType = "7">
-<<<<<<< HEAD
-            <Locations>
-               <Location
-                  uuid = "770E4A49-AE8B-4D16-BE6A-9C03F79E1C27 - 7f6d6c511fd317b4"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "function signature specialization &lt;Arg[0] = Dead, Arg[1] = Dead, Arg[3] = Dead&gt; of PDF_Master_DMG.KMMainViewController.mainToolDidClicked(PDF_Master_DMG.KMToolbarController, PDF_Master_DMG.KMToolbarViewType, PDF_Master_DMG.KMToolbarViewType, PDF_Master_DMG.KMToolbarItemView, Swift.Array&lt;Swift.Int&gt;) -&gt; ()"
-                  moduleName = "PDF Master DMG"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "953"
-                  endingLineNumber = "953"
-                  offsetFromSymbolStart = "52">
-               </Location>
-               <Location
-                  uuid = "770E4A49-AE8B-4D16-BE6A-9C03F79E1C27 - 7f6d6c511fd317b4"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "function signature specialization &lt;Arg[0] = Dead, Arg[1] = Dead, Arg[3] = Dead&gt; of PDF_Master_DMG.KMMainViewController.mainToolDidClicked(PDF_Master_DMG.KMToolbarController, PDF_Master_DMG.KMToolbarViewType, PDF_Master_DMG.KMToolbarViewType, PDF_Master_DMG.KMToolbarItemView, Swift.Array&lt;Swift.Int&gt;) -&gt; ()"
-                  moduleName = "PDF Master DMG"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "953"
-                  endingLineNumber = "953"
-                  offsetFromSymbolStart = "116">
-               </Location>
-               <Location
-                  uuid = "770E4A49-AE8B-4D16-BE6A-9C03F79E1C27 - 1c095f84a4a7372d"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "closure #5 @Swift.MainActor () -&gt; () in PDF_Master_DMG.KMMainViewController.loadOpenFileFunctionGuide(PDF_Master_DMG.KMGuideInfoType) -&gt; ()"
-                  moduleName = "PDF Master DMG"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "729"
-                  endingLineNumber = "729"
-                  offsetFromSymbolStart = "296">
-               </Location>
-               <Location
-                  uuid = "770E4A49-AE8B-4D16-BE6A-9C03F79E1C27 - 7f6d6c511fd316ac"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "function signature specialization &lt;Arg[0] = Dead, Arg[1] = Dead, Arg[3] = Dead&gt; of PDF_Master_DMG.KMMainViewController.mainToolDidClicked(PDF_Master_DMG.KMToolbarController, PDF_Master_DMG.KMToolbarViewType, PDF_Master_DMG.KMToolbarViewType, PDF_Master_DMG.KMToolbarItemView, Swift.Array&lt;Swift.Int&gt;) -&gt; ()"
-                  moduleName = "PDF Master DMG"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "961"
-                  endingLineNumber = "961"
-                  offsetFromSymbolStart = "52">
-               </Location>
-               <Location
-                  uuid = "770E4A49-AE8B-4D16-BE6A-9C03F79E1C27 - 7f6d6c511fd316ac"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "function signature specialization &lt;Arg[0] = Dead, Arg[1] = Dead, Arg[3] = Dead&gt; of PDF_Master_DMG.KMMainViewController.mainToolDidClicked(PDF_Master_DMG.KMToolbarController, PDF_Master_DMG.KMToolbarViewType, PDF_Master_DMG.KMToolbarViewType, PDF_Master_DMG.KMToolbarItemView, Swift.Array&lt;Swift.Int&gt;) -&gt; ()"
-                  moduleName = "PDF Master DMG"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "961"
-                  endingLineNumber = "961"
-                  offsetFromSymbolStart = "116">
-               </Location>
-               <Location
-                  uuid = "770E4A49-AE8B-4D16-BE6A-9C03F79E1C27 - c7c9950d5bad6aa"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "PDF_Master.KMMainViewController.loadOpenFileFunctionGuide(PDF_Master.KMGuideInfoType) -&gt; ()"
-                  moduleName = "PDF Master"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "727"
-                  endingLineNumber = "727"
-                  offsetFromSymbolStart = "5360">
-               </Location>
-               <Location
-                  uuid = "770E4A49-AE8B-4D16-BE6A-9C03F79E1C27 - 5eaa69c29cebb394"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "PDF_Master_DMG.KMMainViewController.loadOpenFileFunctionGuide(PDF_Master_DMG.KMGuideInfoType) -&gt; ()"
-                  moduleName = "PDF Master DMG"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "727"
-                  endingLineNumber = "727"
-                  offsetFromSymbolStart = "1720">
-               </Location>
-            </Locations>
-         </BreakpointContent>
-      </BreakpointProxy>
-      <BreakpointProxy
-         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
-         <BreakpointContent
-            uuid = "903D6DDB-4B0A-46CE-AC26-BED5BBAC004A"
-            shouldBeEnabled = "Yes"
-            ignoreCount = "0"
-            continueAfterRunningActions = "No"
-            filePath = "PDF Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-            startingColumnNumber = "9223372036854775807"
-            endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "651"
-            endingLineNumber = "651"
-            landmarkName = "exitRedact()"
-            landmarkType = "7">
-            <Locations>
-               <Location
-                  uuid = "903D6DDB-4B0A-46CE-AC26-BED5BBAC004A - 7f6d6c511fd317b4"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "function signature specialization &lt;Arg[0] = Dead, Arg[1] = Dead, Arg[3] = Dead&gt; of PDF_Master_DMG.KMMainViewController.mainToolDidClicked(PDF_Master_DMG.KMToolbarController, PDF_Master_DMG.KMToolbarViewType, PDF_Master_DMG.KMToolbarViewType, PDF_Master_DMG.KMToolbarItemView, Swift.Array&lt;Swift.Int&gt;) -&gt; ()"
-                  moduleName = "PDF Master DMG"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "953"
-                  endingLineNumber = "953"
-                  offsetFromSymbolStart = "52">
-               </Location>
-               <Location
-                  uuid = "903D6DDB-4B0A-46CE-AC26-BED5BBAC004A - 7f6d6c511fd317b4"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "function signature specialization &lt;Arg[0] = Dead, Arg[1] = Dead, Arg[3] = Dead&gt; of PDF_Master_DMG.KMMainViewController.mainToolDidClicked(PDF_Master_DMG.KMToolbarController, PDF_Master_DMG.KMToolbarViewType, PDF_Master_DMG.KMToolbarViewType, PDF_Master_DMG.KMToolbarItemView, Swift.Array&lt;Swift.Int&gt;) -&gt; ()"
-                  moduleName = "PDF Master DMG"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "953"
-                  endingLineNumber = "953"
-                  offsetFromSymbolStart = "116">
-               </Location>
-               <Location
-                  uuid = "903D6DDB-4B0A-46CE-AC26-BED5BBAC004A - 5eaa69c29ceb85e0"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "PDF_Master_DMG.KMMainViewController.loadOpenFileFunctionGuide(PDF_Master_DMG.KMGuideInfoType) -&gt; ()"
-                  moduleName = "PDF Master DMG"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "651"
-                  endingLineNumber = "651"
-                  offsetFromSymbolStart = "248">
-               </Location>
-               <Location
-                  uuid = "903D6DDB-4B0A-46CE-AC26-BED5BBAC004A - eb56ed4accbfdf77"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "PDF_Master_DMG.KMMainViewController.exitRedact() -&gt; ()"
-                  moduleName = "PDF Master DMG"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "654"
-                  endingLineNumber = "654"
-                  offsetFromSymbolStart = "692">
-               </Location>
-               <Location
-                  uuid = "903D6DDB-4B0A-46CE-AC26-BED5BBAC004A - 94d87cfcea612845"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "PDF_Master.KMMainViewController.exitRedact() -&gt; ()"
-                  moduleName = "PDF Master"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "651"
-                  endingLineNumber = "651"
-                  offsetFromSymbolStart = "856">
-               </Location>
-            </Locations>
-         </BreakpointContent>
-      </BreakpointProxy>
-      <BreakpointProxy
-         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
-         <BreakpointContent
-            uuid = "DB0771E1-CC58-41E1-A794-02CDE3656544"
-            shouldBeEnabled = "Yes"
-            ignoreCount = "0"
-            continueAfterRunningActions = "No"
-            filePath = "PDF Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-            startingColumnNumber = "9223372036854775807"
-            endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "644"
-            endingLineNumber = "644"
-            landmarkName = "exitRedact()"
-            landmarkType = "7">
-            <Locations>
-               <Location
-                  uuid = "DB0771E1-CC58-41E1-A794-02CDE3656544 - 1a8ffc9706f3f8c2"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "closure #1 @Swift.MainActor () -&gt; () in PDF_Master_DMG.KMMainViewController.loadFunctionGuide() -&gt; ()"
-                  moduleName = "PDF Master DMG"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "646"
-                  endingLineNumber = "646"
-                  offsetFromSymbolStart = "88">
-               </Location>
-               <Location
-                  uuid = "DB0771E1-CC58-41E1-A794-02CDE3656544 - 1a8ffc9706f3f800"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "closure #1 @Swift.MainActor () -&gt; () in PDF_Master_DMG.KMMainViewController.loadFunctionGuide() -&gt; ()"
-                  moduleName = "PDF Master DMG"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "644"
-                  endingLineNumber = "644"
-                  offsetFromSymbolStart = "88">
-               </Location>
-               <Location
-                  uuid = "DB0771E1-CC58-41E1-A794-02CDE3656544 - eb56ed4accbfdebd"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "PDF_Master_DMG.KMMainViewController.exitRedact() -&gt; ()"
-                  moduleName = "PDF Master DMG"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "644"
-                  endingLineNumber = "644"
-                  offsetFromSymbolStart = "132">
-               </Location>
-               <Location
-                  uuid = "DB0771E1-CC58-41E1-A794-02CDE3656544 - 94d87cfcea61296c"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "PDF_Master.KMMainViewController.exitRedact() -&gt; ()"
-                  moduleName = "PDF Master"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/PDFWindowController/ViewController/KMMainViewController.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "644"
-                  endingLineNumber = "644"
-                  offsetFromSymbolStart = "160">
-               </Location>
-            </Locations>
-=======
->>>>>>> d5e98d061b7af55827b8f32b6e9a5d60382a44b0
-         </BreakpointContent>
-      </BreakpointProxy>
-      <BreakpointProxy
-         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
-         <BreakpointContent
-            uuid = "80629F37-8355-4489-A0B5-D2C232463B29"
-            shouldBeEnabled = "Yes"
-            ignoreCount = "0"
-            continueAfterRunningActions = "No"
-            filePath = "PDF Master/Class/Purchase/Appstore/KMPurchaseCompareWindowController.m"
-            startingColumnNumber = "9223372036854775807"
-            endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "391"
-            endingLineNumber = "391"
-            landmarkName = "-windowDidLoad"
-            landmarkType = "7">
-            <Locations>
-               <Location
-                  uuid = "80629F37-8355-4489-A0B5-D2C232463B29 - c997bf6f4a1165b6"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "-[KMPurchaseCompareWindowController windowDidLoad]"
-                  moduleName = "PDF Master DMG"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/Purchase/Appstore/KMPurchaseCompareWindowController.m"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "391"
-                  endingLineNumber = "391"
-                  offsetFromSymbolStart = "508">
-               </Location>
-               <Location
-                  uuid = "80629F37-8355-4489-A0B5-D2C232463B29 - c997bf6f4a1165b6"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "-[KMPurchaseCompareWindowController windowDidLoad]"
-                  moduleName = "PDF Master DMG"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/Purchase/Appstore/KMPurchaseCompareWindowController.m"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "391"
-                  endingLineNumber = "391"
-                  offsetFromSymbolStart = "504">
-               </Location>
-            </Locations>
-         </BreakpointContent>
-      </BreakpointProxy>
-      <BreakpointProxy
-         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
-         <BreakpointContent
-            uuid = "528221B4-8368-4C3B-8886-ADBD55DCFE61"
-            shouldBeEnabled = "Yes"
-            ignoreCount = "0"
-            continueAfterRunningActions = "No"
-            filePath = "PDF Master/Class/Purchase/DMG/KMPurchaseCompareDMGWindowController.m"
-            startingColumnNumber = "9223372036854775807"
-            endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "497"
-            endingLineNumber = "497"
-            landmarkName = "-buttonItemClicked_Buy:"
-            landmarkType = "7">
-            <Locations>
-               <Location
-                  uuid = "528221B4-8368-4C3B-8886-ADBD55DCFE61 - 37e800954b53551d"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "-[KMPurchaseCompareDMGWindowController buttonItemClicked_Buy:]"
-                  moduleName = "PDF Master DMG"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/Purchase/DMG/KMPurchaseCompareDMGWindowController.m"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "500"
-                  endingLineNumber = "500"
-                  offsetFromSymbolStart = "44">
-               </Location>
-               <Location
-                  uuid = "528221B4-8368-4C3B-8886-ADBD55DCFE61 - 37e800954b5355ba"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "-[KMPurchaseCompareDMGWindowController buttonItemClicked_Buy:]"
-                  moduleName = "PDF Master DMG"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/PDF%20Master/Class/Purchase/DMG/KMPurchaseCompareDMGWindowController.m"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "497"
-                  endingLineNumber = "497"
-                  offsetFromSymbolStart = "44">
-               </Location>
-            </Locations>
-         </BreakpointContent>
-      </BreakpointProxy>
-   </Breakpoints>
->>>>>>> cc10cd3710788ceaba40307634cc74c7868bc409
 </Bucket>

+ 59 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController+Thumbnail.swift

@@ -0,0 +1,59 @@
+//
+//  KMLeftSideViewController+Thumbnail.swift
+//  PDF Master
+//
+//  Created by tangchao on 2024/1/12.
+//
+
+import Foundation
+
+// MARK: - Actions
+
+extension KMLeftSideViewController {
+    public func refreshUIOfThumbnailIfNeed(preference: Bool = false) {
+        if self.type.methodType != .Thumbnail {
+            return
+        }
+        if preference {
+            self.reloadThumbnailSize()
+        }
+        
+        Task { @MainActor in
+            self.thumbnailTableView.reloadData()
+        }
+    }
+    
+    public func reloadThumbnailDataIfNeed() {
+        if self.type.methodType != .Thumbnail {
+            return
+        }
+        self.resetThumbnails()
+    }
+    
+    public func reloadThumbnailSize() {
+        let defaultSize = roundf(KMPreference.shared.thumbPageSize)
+//            var thumbnailSize = (defaultSize < TINY_SIZE + FUDGE_SIZE) ? TINY_SIZE : (defaultSize < SMALL_SIZE + FUDGE_SIZE) ? SMALL_SIZE : (defaultSize < LARGE_SIZE + FUDGE_SIZE) ? LARGE_SIZE : HUGE_SIZE
+        var thumbnailSize = TINY_SIZE
+        if defaultSize < TINY_SIZE + FUDGE_SIZE {
+            
+        } else {
+            if defaultSize < SMALL_SIZE + FUDGE_SIZE {
+                thumbnailSize = SMALL_SIZE
+            } else {
+                if defaultSize < LARGE_SIZE + FUDGE_SIZE {
+                    thumbnailSize = LARGE_SIZE
+                } else {
+                    thumbnailSize = HUGE_SIZE
+                }
+            }
+        }
+        
+        if (abs(thumbnailSize - Float(self.thumbnailCacheSize)) > FUDGE_SIZE) {
+            self.thumbnailCacheSize = thumbnailSize.cgFloat
+        }
+        
+        Task { @MainActor in
+            self.thumbnailTableView.reloadData()
+        }
+    }
+}

+ 32 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController.swift

@@ -48,6 +48,8 @@ class KMLeftSideViewController: KMSideViewController {
     override func viewDidLoad() {
         super.viewDidLoad()
         
+        self.reloadThumbnailSize()
+        
         DistributedNotificationCenter.default().addObserver(self, selector: #selector(_themeChanged), name: NSApplication.interfaceThemeChangedNotification, object: nil)
         self.isDisplayPageSize = UserDefaults.standard.bool(forKey: "kKMThumbnailDisplayPageSizeKey")
     }
@@ -5300,6 +5302,36 @@ extension KMLeftSideViewController {
             self.leftView.segmentedControl.selectedSegment = 4
         }
     }
+    
+    var TINY_SIZE: Float {
+        get {
+            return 32.0
+        }
+    }
+    
+    var SMALL_SIZE: Float {
+        get {
+            return 64.0
+        }
+    }
+    
+    var LARGE_SIZE: Float {
+        get {
+            return 128.0
+        }
+    }
+    
+    var HUGE_SIZE: Float {
+        get {
+            return 256.0
+        }
+    }
+    
+    var FUDGE_SIZE: Float {
+        get {
+            return 0.1
+        }
+    }
 
 }
 

+ 4 - 4
PDF Office/PDF Master/Class/PDFWindowController/ViewController/KMMainViewController+UI.swift

@@ -49,14 +49,14 @@ extension KMMainViewController {
         self.updatePageIndicatoreType()
         if (info.keys.contains(KMPreference.generalAuthorNameKey)) { // 作者名称
             CPDFKitConfig.sharedInstance().setAnnotationAuthor((info[KMPreference.generalAuthorNameKey] as! String))
-        }
-        if (info.keys.contains(KMPreference.highlightLinksKey)) {
+        } else if (info.keys.contains(KMPreference.highlightLinksKey)) {
             let hlLink = info[KMPreference.highlightLinksKey] as? Bool
             CPDFKitConfig.sharedInstance().setEnableLinkFieldHighlight(hlLink == nil ? false : hlLink!)
             self.listView.setNeedsDisplayForVisiblePages()
-        }
-        if (info.keys.contains(KMPreference.autoSaveKey) || info.keys.contains(KMPreference.autoSavePerNumberMinuteKey)) {
+        } else if (info.keys.contains(KMPreference.autoSaveKey) || info.keys.contains(KMPreference.autoSavePerNumberMinuteKey)) {
             self.autoSaveTimeStartOrStopIfNeed()
+        } else if info.keys.contains(KMPreference.thumbPageSizeKey) {
+            self.leftSideViewController.refreshUIOfThumbnailIfNeed(preference: true)
         }
     }
     

+ 1 - 0
PDF Office/PDF Master/Class/Preference/Controller/KMDisplayPreferences.swift

@@ -113,6 +113,7 @@ import Cocoa
         self.invertBarButton.action = #selector(invertBarAction)
         
         // 赋值
+        // SKThumbnailSize
         self.pagesSlider.floatValue = KMPreference.shared.thumbPageSize
         self.snapshotSlider.floatValue = KMPreference.shared.thumbSnapshotSize
         self.tableFontComboBox.stringValue = String(format: "%.0f", KMPreference.shared.outlineFontSize)