Explorar el Código

【UI替换】编辑工具 - 功能开启

lizhe hace 1 año
padre
commit
7abb1c4910

+ 1 - 1
PDF Office/PDF Master/Class/PDFTools/AddHeaderFooter/New/KMHeaderFooterWindowController.swift

@@ -28,7 +28,7 @@ class KMHeaderFooterWindowController: KMBaseWindowController {
         }
         
         headerFooterView.operateCallBack = { [unowned self] model in
-//            operateCallBack?(self, model)
+            operateCallBack?(self, model)
         }
     }
 }

+ 0 - 1
PDF Office/PDF Master/Class/PDFTools/AddHeaderFooter/New/View/KMHeaderFooterView.swift

@@ -1099,7 +1099,6 @@ extension KMHeaderFooterView {
     }
 
     @IBAction func apply(_ sender: Any) {
-        return
         let needSave = saveToTemplateButton.state == .on
         
         var pages = [String]()

+ 2 - 2
PDF Office/PDF Master/Class/PDFTools/AddPassword/New/KMSecurityWindowController.swift

@@ -24,11 +24,11 @@ class KMSecurityWindowController: KMBaseWindowController {
         }
         
         securityView.batchAction = { [unowned self] view, files in
-//            self.batchAction?(self, files)
+            self.batchAction?(self, files)
         }
         
         securityView.doneAction = { [unowned self] view, model, files in
-//            self.setPassword(model: model, files: files)
+            self.setPassword(model: model, files: files)
         }
     }
 }

+ 0 - 1
PDF Office/PDF Master/Class/PDFTools/Background/New/View/KMAddBackgroundView.swift

@@ -809,7 +809,6 @@ extension KMAddBackgroundView {
     }
 
     @IBAction func buttonClicked_Done(_ sender: Any) {
-        return
         guard let pdfDocument = pdfDocument else { return }
         if background.type == .color {
             background.imagePath = ""

+ 1 - 1
PDF Office/PDF Master/Class/PDFTools/Compare/KMCompareWindowController.swift

@@ -46,7 +46,7 @@ class KMCompareWindowController: KMBaseWindowController {
         }
         
         compareView.doneAction = { [unowned self] view, config in
-//            self.compareAction(config: config)
+            self.compareAction(config: config)
         }
     }
     

+ 1 - 1
PDF Office/PDF Master/Class/PDFTools/Compare/ViewController/ContentComplete/KMCompareContentWindowController.swift

@@ -43,7 +43,7 @@ class KMCompareContentWindowController: NSWindowController {
         }
         
         contentView.saveHandle = { view in
-//            self.saveHandle?(self)
+            self.saveHandle?(self)
         }
     }
     

+ 2 - 2
PDF Office/PDF Master/Class/PDFTools/Compress/Controller/KMCompressWIndowControllerNew.swift

@@ -56,11 +56,11 @@ class KMCompressWIndowControllerNew: NSWindowController {
             print("Batch 按钮点击")
             guard let callBack = batchAction else { return }
             
-//            callBack(self, [documentURL])
+            callBack(self, [documentURL])
         }
         
         self.compressView.compressAction = { [unowned self] view, value in
-//            self.compressButtonAction(value: value)
+            self.compressButtonAction(value: value)
         }
     }
     

+ 1 - 1
PDF Office/PDF Master/Class/PDFTools/Merge/MergeNew/KMMergeWindowController.swift

@@ -64,7 +64,7 @@ class KMMergeWindowController: NSWindowController {
         }
         
         mergeView.mergeAction = { [unowned self] view, files, size in
-//            self.mergeFiles(files: files, size: size)
+            self.mergeFiles(files: files, size: size)
         }
         
         mergeView.cancelAction = { [unowned self] view in

+ 1 - 1
PDF Office/PDF Master/Class/PDFTools/Watermark/New/KMWatermarkWindowController.swift

@@ -31,7 +31,7 @@ class KMWatermarkWindowController: KMBaseWindowController {
         }
         
         watermarkView.operateCallBack = { [unowned self] watermark, countType in
-//            operateCallBack?(self, watermark, countType)
+            operateCallBack?(self, watermark, countType)
         }
         watermarkView.reloadData()
     }

+ 0 - 2
PDF Office/PDF Master/Class/PDFTools/Watermark/New/View/KMWatermarkView.swift

@@ -716,8 +716,6 @@ extension KMWatermarkView {
     }
     
     @IBAction func buttonClicked_Done(_ sender: Any) {
-        return;
-        
         if checkPageRangeValidate(pageRangeComboBox.stringValue) {
             self.watermark.pagesString = pageRangeComboBox.stringValue
             updatePDFView()